Merge pull request #452 from docker/dependabot/npm_and_yarn/tmp-0.2.7

chore(deps): Bump tmp from 0.2.5 to 0.2.7
This commit is contained in:
CrazyMax authored and GitHub committed 2026-05-28 10:15:26 +02:00
commit 8d9e8e938e
4 files changed
+149 -149

No files matched your search

Generated Vendored
+142 -142
View File
@@ -1,8 +1,8 @@
var gat=Object.create;var U6=Object.defineProperty;var yat=Object.getOwnPropertyDescriptor;var Eat=Object.getOwnPropertyNames;var bat=Object.getPrototypeOf,wat=Object.prototype.hasOwnProperty;var Cat=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),RAe=(t,e)=>{for(var r in e)U6(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&&U6(t,n,{get:()=>e[n],enumerable:!(i=yat(e,n))||i.enumerable});return t};var O=(t,e,r)=>(r=t!=null?gat(bat(t)):{},Iat(e||!t||!t.__esModule?U6(r,"default",{value:t,enumerable:!0}):r,t));var QAe=p(Sb=>{"use strict";var hRr=require("net"),Rat=require("tls"),z6=require("http"),OAe=require("https"),Tat=require("events"),dRr=require("assert"),Nat=require("util");Sb.httpOverHttp=Dat;Sb.httpsOverHttp=Oat;Sb.httpOverHttps=Pat;Sb.httpsOverHttps=kat;function Dat(t){var e=new pd(t);return e.request=z6.request,e}function Oat(t){var e=new pd(t);return e.request=z6.request,e.createSocket=PAe,e.defaultPort=443,e}function Pat(t){var e=new pd(t);return e.request=OAe.request,e}function kat(t){var e=new pd(t);return e.request=OAe.request,e.createSocket=PAe,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=kAe(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)})}Nat.inherits(pd,Tat.EventEmitter);pd.prototype.addRequest=function(e,r,i,n){var s=this,o=$6({request:e},s.options,kAe(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")),Em("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){Em("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){Em("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 Em("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),Em(`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 PAe(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=Rat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function kAe(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 Em;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Em=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)}:Em=function(){};Sb.debug=Em});var Av=p((mRr,LAe)=>{LAe.exports=QAe()});var Mr=p((ARr,MAe)=>{MAe.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((gRr,uge)=>{"use strict";var FAe=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[FAe]===!0}[FAe]=!0},UAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),W6=class extends Fr{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[UAe]===!0}[UAe]=!0},qAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),J6=class extends Fr{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[qAe]===!0}[qAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Y6=class extends Fr{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[GAe]===!0}[GAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),K6=class extends Fr{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[HAe]===!0}[HAe]=!0},jAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),X6=class extends Fr{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 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 o=i[s-1].trim();if(kut.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Xut(){return"allowed"}function Zut(){return"success"}function elt(){return"success"}function tlt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}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&&Hj(t.origin)&&!Hj(Bv(t))&&(e=null);break;case"same-origin":qD(t,Bv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Pb(t,e){return t}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:Pb(t.domainLookupStartTime,r),domainLookupEndTime:Pb(t.domainLookupEndTime,r),connectionStartTime:Pb(t.connectionStartTime,r),connectionEndTime:Pb(t.connectionEndTime,r),secureConnectionStartTime:Pb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function nlt(t){return Pb(Uut.now(),t)}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}}function Iye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function olt(t){return{referrerPolicy:t.referrerPolicy}}function alt(t){let e=t.referrerPolicy;Jg(e);let r=null;if(t.referrer==="client"){let a=gye();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=Sv(i)&&!Sv(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=Bv(t);return qD(i,a)?i:Sv(i)&&!Sv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Gj(t,e){return Jg(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 Sv(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 clt(t,e){if(UD===void 0)return!0;let r=Sye(e);if(r==="no metadata"||r.length===0)return!0;let i=llt(r),n=flt(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)),hlt(c,a))return!0}return!1}var ult=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Sye(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();Eye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}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}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}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}function dlt(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 plt(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function mlt(t){return t.controller.state==="aborted"}function Alt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function glt(t){return Hut[t.toLowerCase()]??t}function ylt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Jg(typeof e=="string"),e}var Elt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Bye(t,e,r=0,i=1){class n{ Line truncated
`);function Jlt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}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}function Klt(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,$lt,s)||s.position===t.length-4&&jD(t,Wlt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=Xlt(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",Jlt(l)||(l=""),d=new Vlt([h],u,{type:l})):d=Ult(Buffer.from(h)),HD(Lye(c)),HD(typeof d=="string"&&Lye(d)||Glt(d)),n.push(Hlt(c,d,u))}}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 o=Qb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Yj(o,!0,!0,a=>a===9||a===32),!qlt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Qb(a=>a===32||a===9,t,e),Flt(o)){case"content-disposition":{if(r=i=null,!jD(t,zlt,e)||(e.position+=17,r=Uye(t,e),r===null))return"failure";if(jD(t,Fye,e)){let a=e.position+Fye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=Uye(t,e),i===null))return"failure"}break}case"content-type":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),n=Mye(a);break}case"content-transfer-encoding":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),s=Mye(a);break}default:Qb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Uye(t,e){HD(t[e.position-1]===34);let r=Qb(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 Qb(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}qye.exports={multipartFormDataParser:Klt,validateBoundary:Ylt}});var Fb=p((GRr,Xye)=>{"use strict";var xv=wt(),{ReadableStreamFrom:Zlt,isBlobLike:Hye,isReadableStreamLike:eft,readableStreamClose:tft,createDeferredPromise:rft,fullyReadBody:ift,extractMimeType:nft,utf8DecodeBytes:zye}=Ma(),{FormData:jye}=_v(),{kState:Mb}=bm(),{webidl:sft}=rs(),{Blob:oft}=require("node:buffer"),Kj=require("node:assert"),{isErrored:$ye,isDisturbed:aft}=require("node:stream"),{isArrayBuffer:cft}=require("node:util/types"),{serializeAMimeType:uft}=ea(),{multipartFormDataParser:lft}=Gye(),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 fft(){}var Wye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Jye;Wye&&(Jye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!aft(e)&&!$ye(e)&&e.cancel("Response object has been garbage collected").catch(fft)}));function Yye(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Hye(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(()=>tft(c))},start(){},type:"bytes"}),Kj(eft(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(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(xv.isFormDataLike(t)){let c=`----formdata-undici-0${`${Xj(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
var yat=Object.create;var U6=Object.defineProperty;var Eat=Object.getOwnPropertyDescriptor;var bat=Object.getOwnPropertyNames;var wat=Object.getPrototypeOf,Cat=Object.prototype.hasOwnProperty;var Iat=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TAe=(t,e)=>{for(var r in e)U6(t,r,{get:e[r],enumerable:!0})},Sat=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of bat(e))!Cat.call(t,n)&&n!==r&&U6(t,n,{get:()=>e[n],enumerable:!(i=Eat(e,n))||i.enumerable});return t};var O=(t,e,r)=>(r=t!=null?yat(wat(t)):{},Sat(e||!t||!t.__esModule?U6(r,"default",{value:t,enumerable:!0}):r,t));var LAe=p(Sb=>{"use strict";var dRr=require("net"),Tat=require("tls"),z6=require("http"),PAe=require("https"),Nat=require("events"),pRr=require("assert"),Dat=require("util");Sb.httpOverHttp=Oat;Sb.httpsOverHttp=Pat;Sb.httpOverHttps=kat;Sb.httpsOverHttps=Qat;function Oat(t){var e=new pd(t);return e.request=z6.request,e}function Pat(t){var e=new pd(t);return e.request=z6.request,e.createSocket=kAe,e.defaultPort=443,e}function kat(t){var e=new pd(t);return e.request=PAe.request,e}function Qat(t){var e=new pd(t);return e.request=PAe.request,e.createSocket=kAe,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=QAe(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)})}Dat.inherits(pd,Nat.EventEmitter);pd.prototype.addRequest=function(e,r,i,n){var s=this,o=$6({request:e},s.options,QAe(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")),Em("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){Em("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){Em("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 Em("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),Em(`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 kAe(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=Tat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function QAe(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 Em;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Em=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)}:Em=function(){};Sb.debug=Em});var Av=p((ARr,MAe)=>{MAe.exports=LAe()});var Mr=p((gRr,FAe)=>{FAe.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((yRr,lge)=>{"use strict";var UAe=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[UAe]===!0}[UAe]=!0},qAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),W6=class extends Fr{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[qAe]===!0}[qAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),J6=class extends Fr{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[GAe]===!0}[GAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Y6=class extends Fr{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[HAe]===!0}[HAe]=!0},jAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),K6=class extends Fr{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[jAe]===!0}[jAe]=!0},VAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),X6=class extends Fr{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 Xut(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(Qut.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Zut(){return"allowed"}function elt(){return"success"}function tlt(){return"success"}function rlt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ilt(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(Bv(t))&&(e=null);break;case"same-origin":qD(t,Bv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Pb(t,e){return t}function nlt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Pb(t.domainLookupStartTime,r),domainLookupEndTime:Pb(t.domainLookupEndTime,r),connectionStartTime:Pb(t.connectionStartTime,r),connectionEndTime:Pb(t.connectionEndTime,r),secureConnectionStartTime:Pb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function slt(t){return Pb(qut.now(),t)}function olt(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 Sye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function alt(t){return{referrerPolicy:t.referrerPolicy}}function clt(t){let e=t.referrerPolicy;Jg(e);let r=null;if(t.referrer==="client"){let a=yye();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=Sv(i)&&!Sv(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=Bv(t);return qD(i,a)?i:Sv(i)&&!Sv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Gj(t,e){return Jg(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 Sv(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 ult(t,e){if(UD===void 0)return!0;let r=Bye(e);if(r==="no metadata"||r.length===0)return!0;let i=flt(r),n=hlt(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)),dlt(c,a))return!0}return!1}var llt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Bye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=llt.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();bye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}function flt(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 hlt(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 dlt(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 plt(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 mlt(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function Alt(t){return t.controller.state==="aborted"}function glt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ylt(t){return jut[t.toLowerCase()]??t}function Elt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Jg(typeof e=="string"),e}var blt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function vye(t,e,r=0,i=1){class n{ Line truncated
`);function Ylt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Klt(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 Xlt(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,Wlt,s)||s.position===t.length-4&&jD(t,Jlt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=Zlt(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",Ylt(l)||(l=""),d=new zlt([h],u,{type:l})):d=qlt(Buffer.from(h)),HD(Mye(c)),HD(typeof d=="string"&&Mye(d)||Hlt(d)),n.push(jlt(c,d,u))}}function Zlt(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=Qb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Yj(o,!0,!0,a=>a===9||a===32),!Glt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Qb(a=>a===32||a===9,t,e),Ult(o)){case"content-disposition":{if(r=i=null,!jD(t,$lt,e)||(e.position+=17,r=qye(t,e),r===null))return"failure";if(jD(t,Uye,e)){let a=e.position+Uye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=qye(t,e),i===null))return"failure"}break}case"content-type":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),n=Fye(a);break}case"content-transfer-encoding":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),s=Fye(a);break}default:Qb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qye(t,e){HD(t[e.position-1]===34);let r=Qb(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 Qb(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}Gye.exports={multipartFormDataParser:Xlt,validateBoundary:Klt}});var Fb=p((HRr,Zye)=>{"use strict";var xv=wt(),{ReadableStreamFrom:eft,isBlobLike:jye,isReadableStreamLike:tft,readableStreamClose:rft,createDeferredPromise:ift,fullyReadBody:nft,extractMimeType:sft,utf8DecodeBytes:$ye}=Fa(),{FormData:Vye}=_v(),{kState:Mb}=bm(),{webidl:oft}=is(),{Blob:aft}=require("node:buffer"),Kj=require("node:assert"),{isErrored:Wye,isDisturbed:cft}=require("node:stream"),{isArrayBuffer:uft}=require("node:util/types"),{serializeAMimeType:lft}=ea(),{multipartFormDataParser:fft}=Hye(),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 hft(){}var Jye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yye;Jye&&(Yye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cft(e)&&!Wye(e)&&e.cancel("Response object has been garbage collected").catch(hft)}));function Kye(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jye(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(()=>rft(c))},start(){},type:"bytes"}),Kj(tft(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(uft(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(xv.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
\r
@@ -11,22 +11,22 @@ ${f(g)}\r
Content-Type: ${g.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(Hye(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(xv.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"||xv.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(!$ye(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 hft(t,e=!1){return t instanceof ReadableStream&&(Kj(!xv.isDisturbed(t),"The body has already been consumed."),Kj(!t.locked,"The stream is locked.")),Yye(t,e)}function dft(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function pft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function mft(t){return{blob(){return Lb(this,r=>{let i=Vye(this);return i===null?i="":i&&(i=uft(i)),new oft([r],{type:i})},t)},arrayBuffer(){return Lb(this,r=>new Uint8Array(r).buffer,t)},text(){return Lb(this,zye,t)},json(){return Lb(this,gft,t)},formData(){return Lb(this,r=>{let i=Vye(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[Mb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new jye;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 Lb(this,r=>new Uint8Array(r),t)}}}function Aft(t){Object.assign(t.prototype,mft(t))}async function Lb(t,e,r){if(sft.brandCheck(t,r),Kye(t))throw new TypeError("Body is unusable: Body has already been read");pft(t[Mb]);let i=rft(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Mb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await ift(t[Mb].body,s,n),i.promise)}function Kye(t){let e=t[Mb].body;return e!=null&&(e.stream.locked||xv.isDisturbed(e.stream))}function gft(t){return JSON.parse(zye(t))}function Vye(t){let e=t[Mb].headersList,r=nft(e);return r==="failure"?null:r}Xye.exports={extractBody:Yye,safelyExtractBody:hft,cloneBody:dft,mixinBody:Aft,streamRegistry:Jye,hasFinalizationRegistry:Wye,bodyUnusable:Kye}});var uEe=p((HRr,cEe)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:Zye}=vb(),Zj=Pj(),{RequestContentLengthMismatchError:Yg,ResponseContentLengthMismatchError:yft,RequestAbortedError:sEe,HeadersTimeoutError:Eft,HeadersOverflowError:bft,SocketError:KD,InformationalError:Ub,BodyTimeoutError:wft,HTTPParserError:Cft,ResponseExceededMaxSizeError:Ift}=$t(),{kUrl:oEe,kReset:ta,kClient:iV,kParser:ni,kBlocking:Nv,kRunning:Is,kPending:Sft,kSize:eEe,kWriting:Cm,kQueue:Zu,kNoRef:Rv,kKeepAliveDefaultTimeout:Bft,kHostHeader:vft,kPendingIdx:_ft,kRunningIdx:Lc,kError:Mc,kPipelining:JD,kSocket:qb,kKeepAliveTimeoutValue:XD,kMaxHeadersSize:eV,kKeepAliveMaxTimeout:xft,kKeepAliveTimeoutThreshold:Rft,kHeadersTimeout:Tft,kBodyTimeout:Nft,kStrictContentLength:nV,kMaxRequests:tEe,kCounter:Dft,kMaxResponseSize:Oft,kOnError:Pft,kResume:wm,kHTTPContext:aEe}=Mr(),tf=Jge(),kft=Buffer.alloc(0),zD=Buffer[Symbol.species],$D=it.addListener,Qft=it.removeAllListeners,tV;async function Lft(){let t=process.env.JEST_WORKER_ID?Lj():void 0,e;try{e=await WebAssembly.compile(Xge())}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)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onStatus(new zD(rf.buffer,s,n))||0},wasm_on_message_begin:r=>(Je(sn.ptr===r),sn.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderField(new zD(rf.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderValue(new zD(rf.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(Je(sn.ptr===r),sn.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onBody(new zD(rf.buffer,s,n))||0},wasm_on_message_complete:r=>(Je(sn.ptr===r),sn.onMessageComplete()||0)}})}var rV=null,sV=Lft();sV.catch();var sn=null,rf=null,WD=0,nf=null,Mft=0,Tv=1,Gb=2|Tv,YD=4|Tv,oV=8|Mft,aV=class{constructor(e,r,{exports:i}){Je(Number.isFinite(e[eV])&&e[eV]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(tf.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
`);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(jye(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(xv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:eft(t)}if((typeof n=="string"||xv.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(!Wye(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 dft(t,e=!1){return t instanceof ReadableStream&&(Kj(!xv.isDisturbed(t),"The body has already been consumed."),Kj(!t.locked,"The stream is locked.")),Kye(t,e)}function pft(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function mft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aft(t){return{blob(){return Lb(this,r=>{let i=zye(this);return i===null?i="":i&&(i=lft(i)),new aft([r],{type:i})},t)},arrayBuffer(){return Lb(this,r=>new Uint8Array(r).buffer,t)},text(){return Lb(this,$ye,t)},json(){return Lb(this,yft,t)},formData(){return Lb(this,r=>{let i=zye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=fft(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Vye;return s[Mb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Vye;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 Lb(this,r=>new Uint8Array(r),t)}}}function gft(t){Object.assign(t.prototype,Aft(t))}async function Lb(t,e,r){if(oft.brandCheck(t,r),Xye(t))throw new TypeError("Body is unusable: Body has already been read");mft(t[Mb]);let i=ift(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Mb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await nft(t[Mb].body,s,n),i.promise)}function Xye(t){let e=t[Mb].body;return e!=null&&(e.stream.locked||xv.isDisturbed(e.stream))}function yft(t){return JSON.parse($ye(t))}function zye(t){let e=t[Mb].headersList,r=sft(e);return r==="failure"?null:r}Zye.exports={extractBody:Kye,safelyExtractBody:dft,cloneBody:pft,mixinBody:gft,streamRegistry:Yye,hasFinalizationRegistry:Jye,bodyUnusable:Xye}});var lEe=p((jRr,uEe)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:eEe}=vb(),Zj=Pj(),{RequestContentLengthMismatchError:Yg,ResponseContentLengthMismatchError:Eft,RequestAbortedError:oEe,HeadersTimeoutError:bft,HeadersOverflowError:wft,SocketError:KD,InformationalError:Ub,BodyTimeoutError:Cft,HTTPParserError:Ift,ResponseExceededMaxSizeError:Sft}=$t(),{kUrl:aEe,kReset:ta,kClient:iV,kParser:ni,kBlocking:Nv,kRunning:Is,kPending:Bft,kSize:tEe,kWriting:Cm,kQueue:Zu,kNoRef:Rv,kKeepAliveDefaultTimeout:vft,kHostHeader:_ft,kPendingIdx:xft,kRunningIdx:Lc,kError:Mc,kPipelining:JD,kSocket:qb,kKeepAliveTimeoutValue:XD,kMaxHeadersSize:eV,kKeepAliveMaxTimeout:Rft,kKeepAliveTimeoutThreshold:Tft,kHeadersTimeout:Nft,kBodyTimeout:Dft,kStrictContentLength:nV,kMaxRequests:rEe,kCounter:Oft,kMaxResponseSize:Pft,kOnError:kft,kResume:wm,kHTTPContext:cEe}=Mr(),tf=Yge(),Qft=Buffer.alloc(0),zD=Buffer[Symbol.species],$D=it.addListener,Lft=it.removeAllListeners,tV;async function Mft(){let t=process.env.JEST_WORKER_ID?Lj():void 0,e;try{e=await WebAssembly.compile(Zge())}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)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onStatus(new zD(rf.buffer,s,n))||0},wasm_on_message_begin:r=>(Je(sn.ptr===r),sn.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderField(new zD(rf.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderValue(new zD(rf.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(Je(sn.ptr===r),sn.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onBody(new zD(rf.buffer,s,n))||0},wasm_on_message_complete:r=>(Je(sn.ptr===r),sn.onMessageComplete()||0)}})}var rV=null,sV=Mft();sV.catch();var sn=null,rf=null,WD=0,nf=null,Fft=0,Tv=1,Gb=2|Tv,YD=4|Tv,oV=8|Fft,aV=class{constructor(e,r,{exports:i}){Je(Number.isFinite(e[eV])&&e[eV]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(tf.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[vft],s?A+=`connection: upgrade\r
`:A+=t[_ft],s?A+=`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 Zye.sendHeaders.hasSubscribers&&Zye.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?iEe(m,null,t,e,d,l,A,f):it.isBuffer(c)?iEe(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?nEe(m,c.stream(),t,e,d,l,A,f):jft(m,c,t,e,d,l,A,f):it.isStream(c)?Hft(m,c,t,e,d,l,A,f):it.isIterable(c)?nEe(m,c,t,e,d,l,A,f):Je(!1),!0}function Hft(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===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){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new sEe;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,Je(n.destroyed||n[Cm]&&r[Is]<=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")?it.destroy(e,m):it.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 iEe(t,e,r,i,n,s,o,a){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
`}return eEe.sendHeaders.hasSubscribers&&eEe.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?nEe(m,null,t,e,d,l,A,f):it.isBuffer(c)?nEe(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?sEe(m,c.stream(),t,e,d,l,A,f):Vft(m,c,t,e,d,l,A,f):it.isStream(c)?jft(m,c,t,e,d,l,A,f):it.isIterable(c)?sEe(m,c,t,e,d,l,A,f):Je(!1),!0}function jft(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===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){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new oEe;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,Je(n.destroyed||n[Cm]&&r[Is]<=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")?it.destroy(e,m):it.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 nEe(t,e,r,i,n,s,o,a){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}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
\r
`,"latin1"):(Je(s===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),i.onRequestSent(),r[wm]()}catch(c){t(c)}}async function jft(t,e,r,i,n,s,o,a){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Yg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
`,"latin1")),i.onRequestSent(),r[wm]()}catch(c){t(c)}}async function Vft(t,e,r,i,n,s,o,a){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Yg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[ta]=!0),r[wm]()}catch(c){t(c)}}async function nEe(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===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)=>{Je(c===null),n[Mc]?d(n[Mc]):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[Mc])throw n[Mc];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[Cm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Mc])throw r[Mc];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 Yg;process.emitWarning(new Yg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[ta]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[ta]=!0),r[wm]()}catch(c){t(c)}}async function sEe(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===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)=>{Je(c===null),n[Mc]?d(n[Mc]):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[Mc])throw n[Mc];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[Cm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Mc])throw r[Mc];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 Yg;process.emitWarning(new Yg)}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
\r
`,"latin1")),n===null&&r.write(`\r
@@ -37,47 +37,47 @@ ${u.toString(16)}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(i[nV])throw new Yg;process.emitWarning(new Yg)}e[ni].timeout&&e[ni].timeoutType===Gb&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[wm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[Cm]=!1,e&&(Je(i[Is]<=1,"pipeline should only contain this request"),n(e))}};cEe.exports=Fft});var gEe=p((jRr,AEe)=>{"use strict";var Fc=require("node:assert"),{pipeline:Vft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:cV,RequestAbortedError:lEe,SocketError:Dv,InformationalError:uV}=$t(),{kUrl:eO,kReset:rO,kClient:Hb,kRunning:iO,kPending:zft,kQueue:Im,kPendingIdx:lV,kRunningIdx:el,kError:rl,kSocket:wn,kStrictContentLength:$ft,kOnError:fV,kMaxConcurrentStreams:mEe,kHTTP2Session:tl,kResume:Sm,kSize:Wft,kHTTPContext:Jft}=Mr(),bd=Symbol("open streams"),fEe,hEe=!1,tO;try{tO=require("node:http2")}catch{tO={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}}=tO;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}async function nht(t,e){t[wn]=e,hEe||(hEe=!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[mEe]});r[bd]=0,r[Hb]=t,r[wn]=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{[Hb]:n}=this,{[wn]:s}=n,o=this[wn][rl]||this[rl]||new Dv("closed",Tt.getSocketInfo(s));if(n[tl]=null,n.destroyed){Fc(n[zft]===0);let a=n[Im].splice(n[el]);for(let c=0;c<a.length;c++){let u=a[c];Tt.errorRequest(n,u,o)}}}),r.unref(),t[tl]=r,e[tl]=r,Tt.addListener(e,"error",function(n){Fc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rl]=n,this[Hb][fV](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Dv("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[rl]||new Dv("closed",Tt.getSocketInfo(this));t[wn]=null,this[tl]!=null&&this[tl].destroy(n),t[lV]=t[el],Fc(t[iO]===0),t.emit("disconnect",t[eO],[t],n),t[Sm]()});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}}}function sht(t){let e=t[wn];e?.destroyed===!1&&(t[Wft]===0&&t[mEe]===0?(e.unref(),t[tl].unref()):(e.ref(),t[tl].ref()))}function oht(t){Fc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wn][rl]=t,this[Hb][fV](t)}function aht(t,e,r){if(r===0){let i=new uV(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wn][rl]=i,this[Hb][fV](i)}}function cht(){let t=new Dv("other side closed",Tt.getSocketInfo(this[wn]));this.destroy(t),Tt.destroy(this[wn],t)}function uht(t){let e=this[rl]||new Dv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[Hb];if(r[wn]=null,r[Jft]=null,this[tl]!=null&&(this[tl].destroy(e),this[tl]=null),Tt.destroy(this[wn],e),r[el]<r[Im].length){let i=r[Im][r[el]];r[Im][r[el]++]=null,Tt.errorRequest(r,i,e),r[lV]=r[el]}Fc(r[iO]===0),r.emit("disconnect",r[eO],[r],e),r[Sm]()}function lht(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fht(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 Tt.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],Q=u[S+1];if(Array.isArray(Q))for(let T=0;T<Q.length;T++)f[N]?f[N]+=`,${Q[T]}`:f[N]=Q[T];else f[N]=Q}let h,{hostname:d,port:m}=t[eO];f[Yft]=s||`${d}${m?`:${m}`:""}`,f[Kft]=i;let A=S=>{e.aborted||e.completed||(S=S||new lEe,Tt.errorRequest(t,e,S),h!=null&&Tt.destroy(h,S),Tt.destroy(l,S),t[Im][t[el]++]=null,t[Sm]())};try{e.onConnect(A)}catch(S){Tt.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[Im][t[el]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bd],t[Im][t[el]++]=null}),h.once("close",()=>{r[bd]-=1,r[bd]===0&&r.unref()}),!0;f[Xft]=n,f[Zft]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Tt.bodyLength(l);if(Tt.isFormDataLike(l)){fEe??=Fb().extractBody;let[S,N]=fEe(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),lht(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[$ft])return Tt.errorRequest(t,e,new cV),!1;process.emitWarning(new cV)}g!=null&&(Fc(l,"no body must not have content length"),f[eht]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[tht]="100-continue",h=r.request(f,{endStream:E,signa Line truncated
`,this[Lht]=c??3e5,this[Qht]=n??3e5,this[Mht]=E??!0,this[Fht]=S,this[mV]=Q,this[vm]=null,this[jht]=G>-1?G:-1,this[zht]=L??100,this[Si]=null,this[il]=[],this[Cd]=0,this[nl]=0,this[Qv]=W=>gV(this,W),this[Vht]=W=>REe(this,W)}get pipelining(){return this[aO]}set pipelining(e){this[aO]=e,this[Qv](!0)}get[Fv](){return this[il].length-this[nl]}get[Mv](){return this[nl]-this[Cd]}get[Lv](){return this[il].length-this[Cd]}get[Rht](){return!!this[Si]&&!this[Vb]&&!this[Si].destroyed}get[pV](){return!!(this[Si]?.busy(null)||this[Lv]>=(xEe(this)||1)||this[Fv]>0)}[xht](e){TEe(this),this.once("connect",e)}[Hht](e,r){let i=e.origin||this[of].origin,n=new Cht(i,e,r);return this[il].push(n),this[Xg]||(Kg.bodyLength(n.body)==null&&Kg.isIterable(n.body)?(this[Xg]=1,queueMicrotask(()=>gV(this))):this[Qv](!0)),this[Xg]&&this[_m]!==2&&this[pV]&&(this[_m]=2),this[_m]<2}async[qht](){return new Promise(e=>{this[Lv]?this[vm]=e:e(null)})}async[Ght](e){return new Promise(r=>{let i=this[il].splice(this[nl]);for(let s=0;s<i.length;s++){let o=i[s];Kg.errorRequest(this,o,e)}let n=()=>{this[vm]&&(this[vm](),this[vm]=null),r(null)};this[Si]?(this[Si].destroy(e,n),this[Si]=null):queueMicrotask(n),this[Qv]()})}},Jht=oO();function REe(t,e){if(t[Mv]===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];Kg.errorRequest(t,n,e)}wd(t[Lv]===0)}}async function TEe(t){wd(!t[Vb]),wd(!t[Si]);let{host:e,hostname:r,protocol:i,port:n}=t[of];if(r[0]==="["){let s=r.indexOf("]");wd(s!==-1);let o=r.substring(1,s);wd(_Ee.isIP(o)),r=o}t[Vb]=!0,jb.beforeConnect.hasSubscribers&&jb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv]});try{let s=await new Promise((o,a)=>{t[Pv]({host:e,hostname:r,protocol:i,port:n,servername:t[Bm],localAddress:t[kv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Kg.destroy(s.on("error",BEe),new Bht);return}wd(s);try{t[Si]=s.alpnProtocol==="h2"?await Wht(t,s):await $ht(t,s)}catch(o){throw s.destroy().on("error",BEe),o}t[Vb]=!1,s[Uht]=0,s[mV]=t[mV],s[_ht]=t,s[Nht]=null,jb.connected.hasSubscribers&&jb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],socket:s}),t.emit("connect",t[of],[t])}catch(s){if(t.destroyed)return;if(t[Vb]=!1,jb.connectError.hasSubscribers&&jb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wd(t[Mv]===0);t[Fv]>0&&t[il][t[nl]].servername===t[Bm];){let o=t[il][t[nl]++];Kg.errorRequest(t,o,s)}else REe(t,s);t.emit("connectionError",t[of],[t],s)}t[Qv]()}function vEe(t){t[_m]=0,t.emit("drain",t[of],[t])}function gV(t,e){t[Xg]!==2&&(t[Xg]=2,Yht(t,e),t[Xg]=0,t[Cd]>256&&(t[il].splice(0,t[Cd]),t[nl]-=t[Cd],t[Cd]=0))}function Yht(t,e){for(;;){if(t.destroyed){wd(t[Fv]===0);return}if(t[vm]&&!t[Lv]){t[vm](),t[vm]=null;return}if(t[Si]&&t[Si].resume(),t[pV])t[_m]=2;else if(t[_m]===2){e?(t[_m]=1,queueMicrotask(()=>vEe(t))):vEe(t);continue}if(t[Fv]===0||t[Mv]>=(xEe(t)||1))return;let r=t[il][t[nl]];if(t[of].protocol==="https:"&&t[Bm]!==r.servername){if(t[Mv]>0)return;t[Bm]=r.servername,t[Si]?.destroy(new Sht("servername changed"),()=>{t[Si]=null,gV(t)})}if(t[Vb])return;if(!t[Si]){TEe(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)}}NEe.exports=AV});var yV=p((JRr,DEe)=>{"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)}};DEe.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 PEe=p((YRr,OEe)=>{var{kFree:Kht,kConnected:Xht,kPending:Zht,kQueued:edt,kRunning:tdt,kSize:rdt}=Mr(),Zg=Symbol("pool"),EV=class{constructor(e){this[Zg]=e}get connected(){return this[Zg][Xht]}get free(){return this[Zg][Kht]}get pending(){return this[Zg][Zht]}get queued(){return this[Zg][edt]}get running(){return this[Zg][tdt]}get size(){return this[Zg][rdt]}};OEe.exports=EV});var BV=p((KRr,jEe)=>{"use strict";var idt=Tb(),ndt=yV(),{kConnected:bV,kSize:kEe,kRunning:QEe,kPending:LEe,kQueued:Uv,kBusy:sdt,kFree:odt,kUrl:adt,kClose:cdt,kDestroy:udt,kDispatch:ldt}=Mr(),fdt=PEe(),ra=Symbol("clients"),co=Symbol("needDrain"),qv=Symbol("queue"),wV=Symbol("closed resolve"),CV=Symbol("onDrain"),MEe=Symbol("onConnect"),FEe=Symbol("onDisconnect"),UEe=Symbol("onConnec Line truncated
`,"latin1"),r!==null&&n!==r){if(i[nV])throw new Yg;process.emitWarning(new Yg)}e[ni].timeout&&e[ni].timeoutType===Gb&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[wm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[Cm]=!1,e&&(Je(i[Is]<=1,"pipeline should only contain this request"),n(e))}};uEe.exports=Uft});var yEe=p((VRr,gEe)=>{"use strict";var Fc=require("node:assert"),{pipeline:zft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:cV,RequestAbortedError:fEe,SocketError:Dv,InformationalError:uV}=$t(),{kUrl:eO,kReset:rO,kClient:Hb,kRunning:iO,kPending:$ft,kQueue:Im,kPendingIdx:lV,kRunningIdx:el,kError:rl,kSocket:Cn,kStrictContentLength:Wft,kOnError:fV,kMaxConcurrentStreams:AEe,kHTTP2Session:tl,kResume:Sm,kSize:Jft,kHTTPContext:Yft}=Mr(),bd=Symbol("open streams"),hEe,dEe=!1,tO;try{tO=require("node:http2")}catch{tO={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Kft,HTTP2_HEADER_METHOD:Xft,HTTP2_HEADER_PATH:Zft,HTTP2_HEADER_SCHEME:eht,HTTP2_HEADER_CONTENT_LENGTH:tht,HTTP2_HEADER_EXPECT:rht,HTTP2_HEADER_STATUS:iht}}=tO;function nht(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 sht(t,e){t[Cn]=e,dEe||(dEe=!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[AEe]});r[bd]=0,r[Hb]=t,r[Cn]=e,Tt.addListener(r,"error",aht),Tt.addListener(r,"frameError",cht),Tt.addListener(r,"end",uht),Tt.addListener(r,"goaway",lht),Tt.addListener(r,"close",function(){let{[Hb]:n}=this,{[Cn]:s}=n,o=this[Cn][rl]||this[rl]||new Dv("closed",Tt.getSocketInfo(s));if(n[tl]=null,n.destroyed){Fc(n[$ft]===0);let a=n[Im].splice(n[el]);for(let c=0;c<a.length;c++){let u=a[c];Tt.errorRequest(n,u,o)}}}),r.unref(),t[tl]=r,e[tl]=r,Tt.addListener(e,"error",function(n){Fc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rl]=n,this[Hb][fV](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Dv("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[rl]||new Dv("closed",Tt.getSocketInfo(this));t[Cn]=null,this[tl]!=null&&this[tl].destroy(n),t[lV]=t[el],Fc(t[iO]===0),t.emit("disconnect",t[eO],[t],n),t[Sm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return hht(t,...n)},resume(){oht(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function oht(t){let e=t[Cn];e?.destroyed===!1&&(t[Jft]===0&&t[AEe]===0?(e.unref(),t[tl].unref()):(e.ref(),t[tl].ref()))}function aht(t){Fc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cn][rl]=t,this[Hb][fV](t)}function cht(t,e,r){if(r===0){let i=new uV(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Cn][rl]=i,this[Hb][fV](i)}}function uht(){let t=new Dv("other side closed",Tt.getSocketInfo(this[Cn]));this.destroy(t),Tt.destroy(this[Cn],t)}function lht(t){let e=this[rl]||new Dv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[Hb];if(r[Cn]=null,r[Yft]=null,this[tl]!=null&&(this[tl].destroy(e),this[tl]=null),Tt.destroy(this[Cn],e),r[el]<r[Im].length){let i=r[Im][r[el]];r[Im][r[el]++]=null,Tt.errorRequest(r,i,e),r[lV]=r[el]}Fc(r[iO]===0),r.emit("disconnect",r[eO],[r],e),r[Sm]()}function fht(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function hht(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 Tt.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],Q=u[S+1];if(Array.isArray(Q))for(let T=0;T<Q.length;T++)f[N]?f[N]+=`,${Q[T]}`:f[N]=Q[T];else f[N]=Q}let h,{hostname:d,port:m}=t[eO];f[Kft]=s||`${d}${m?`:${m}`:""}`,f[Xft]=i;let A=S=>{e.aborted||e.completed||(S=S||new fEe,Tt.errorRequest(t,e,S),h!=null&&Tt.destroy(h,S),Tt.destroy(l,S),t[Im][t[el]++]=null,t[Sm]())};try{e.onConnect(A)}catch(S){Tt.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[Im][t[el]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bd],t[Im][t[el]++]=null}),h.once("close",()=>{r[bd]-=1,r[bd]===0&&r.unref()}),!0;f[Zft]=n,f[eht]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Tt.bodyLength(l);if(Tt.isFormDataLike(l)){hEe??=Fb().extractBody;let[S,N]=hEe(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),fht(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Wft])return Tt.errorRequest(t,e,new cV),!1;process.emitWarning(new cV)}g!=null&&(Fc(l,"no body must not have content length"),f[tht]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[rht]="100-continue",h=r.request(f,{endStream:E,signa Line truncated
`,this[Mht]=c??3e5,this[Lht]=n??3e5,this[Fht]=E??!0,this[Uht]=S,this[mV]=Q,this[vm]=null,this[Vht]=G>-1?G:-1,this[$ht]=L??100,this[Si]=null,this[il]=[],this[Cd]=0,this[nl]=0,this[Qv]=W=>gV(this,W),this[zht]=W=>TEe(this,W)}get pipelining(){return this[aO]}set pipelining(e){this[aO]=e,this[Qv](!0)}get[Fv](){return this[il].length-this[nl]}get[Mv](){return this[nl]-this[Cd]}get[Lv](){return this[il].length-this[Cd]}get[Tht](){return!!this[Si]&&!this[Vb]&&!this[Si].destroyed}get[pV](){return!!(this[Si]?.busy(null)||this[Lv]>=(REe(this)||1)||this[Fv]>0)}[Rht](e){NEe(this),this.once("connect",e)}[jht](e,r){let i=e.origin||this[of].origin,n=new Iht(i,e,r);return this[il].push(n),this[Xg]||(Kg.bodyLength(n.body)==null&&Kg.isIterable(n.body)?(this[Xg]=1,queueMicrotask(()=>gV(this))):this[Qv](!0)),this[Xg]&&this[_m]!==2&&this[pV]&&(this[_m]=2),this[_m]<2}async[Ght](){return new Promise(e=>{this[Lv]?this[vm]=e:e(null)})}async[Hht](e){return new Promise(r=>{let i=this[il].splice(this[nl]);for(let s=0;s<i.length;s++){let o=i[s];Kg.errorRequest(this,o,e)}let n=()=>{this[vm]&&(this[vm](),this[vm]=null),r(null)};this[Si]?(this[Si].destroy(e,n),this[Si]=null):queueMicrotask(n),this[Qv]()})}},Yht=oO();function TEe(t,e){if(t[Mv]===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];Kg.errorRequest(t,n,e)}wd(t[Lv]===0)}}async function NEe(t){wd(!t[Vb]),wd(!t[Si]);let{host:e,hostname:r,protocol:i,port:n}=t[of];if(r[0]==="["){let s=r.indexOf("]");wd(s!==-1);let o=r.substring(1,s);wd(xEe.isIP(o)),r=o}t[Vb]=!0,jb.beforeConnect.hasSubscribers&&jb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv]});try{let s=await new Promise((o,a)=>{t[Pv]({host:e,hostname:r,protocol:i,port:n,servername:t[Bm],localAddress:t[kv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Kg.destroy(s.on("error",vEe),new vht);return}wd(s);try{t[Si]=s.alpnProtocol==="h2"?await Jht(t,s):await Wht(t,s)}catch(o){throw s.destroy().on("error",vEe),o}t[Vb]=!1,s[qht]=0,s[mV]=t[mV],s[xht]=t,s[Dht]=null,jb.connected.hasSubscribers&&jb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],socket:s}),t.emit("connect",t[of],[t])}catch(s){if(t.destroyed)return;if(t[Vb]=!1,jb.connectError.hasSubscribers&&jb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wd(t[Mv]===0);t[Fv]>0&&t[il][t[nl]].servername===t[Bm];){let o=t[il][t[nl]++];Kg.errorRequest(t,o,s)}else TEe(t,s);t.emit("connectionError",t[of],[t],s)}t[Qv]()}function _Ee(t){t[_m]=0,t.emit("drain",t[of],[t])}function gV(t,e){t[Xg]!==2&&(t[Xg]=2,Kht(t,e),t[Xg]=0,t[Cd]>256&&(t[il].splice(0,t[Cd]),t[nl]-=t[Cd],t[Cd]=0))}function Kht(t,e){for(;;){if(t.destroyed){wd(t[Fv]===0);return}if(t[vm]&&!t[Lv]){t[vm](),t[vm]=null;return}if(t[Si]&&t[Si].resume(),t[pV])t[_m]=2;else if(t[_m]===2){e?(t[_m]=1,queueMicrotask(()=>_Ee(t))):_Ee(t);continue}if(t[Fv]===0||t[Mv]>=(REe(t)||1))return;let r=t[il][t[nl]];if(t[of].protocol==="https:"&&t[Bm]!==r.servername){if(t[Mv]>0)return;t[Bm]=r.servername,t[Si]?.destroy(new Bht("servername changed"),()=>{t[Si]=null,gV(t)})}if(t[Vb])return;if(!t[Si]){NEe(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)}}DEe.exports=AV});var yV=p((YRr,OEe)=>{"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)}};OEe.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 kEe=p((KRr,PEe)=>{var{kFree:Xht,kConnected:Zht,kPending:edt,kQueued:tdt,kRunning:rdt,kSize:idt}=Mr(),Zg=Symbol("pool"),EV=class{constructor(e){this[Zg]=e}get connected(){return this[Zg][Zht]}get free(){return this[Zg][Xht]}get pending(){return this[Zg][edt]}get queued(){return this[Zg][tdt]}get running(){return this[Zg][rdt]}get size(){return this[Zg][idt]}};PEe.exports=EV});var BV=p((XRr,VEe)=>{"use strict";var ndt=Tb(),sdt=yV(),{kConnected:bV,kSize:QEe,kRunning:LEe,kPending:MEe,kQueued:Uv,kBusy:odt,kFree:adt,kUrl:cdt,kClose:udt,kDestroy:ldt,kDispatch:fdt}=Mr(),hdt=kEe(),ra=Symbol("clients"),co=Symbol("needDrain"),qv=Symbol("queue"),wV=Symbol("closed resolve"),CV=Symbol("onDrain"),FEe=Symbol("onConnect"),UEe=Symbol("onDisconnect"),qEe=Symbol("onConnec Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};Ybe.exports=Bz});var vO=p((BTr,twe)=>{"use strict";var Xbe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Lmt}=$t(),Mmt=Wb();ewe()===void 0&&Zbe(new Mmt);function Zbe(t){if(!t||typeof t.dispatch!="function")throw new Lmt("Argument agent must implement Agent");Object.defineProperty(globalThis,Xbe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function ewe(){return globalThis[Xbe]}twe.exports={setGlobalDispatcher:Zbe,getGlobalDispatcher:ewe}});var _O=p((_Tr,rwe)=>{"use strict";rwe.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 nwe=p((xTr,iwe)=>{"use strict";var Fmt=sO();iwe.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 Fmt(r,o,n,s);return r(a,c)}}});var owe=p((RTr,swe)=>{"use strict";var Umt=AO();swe.exports=t=>e=>function(i,n){return e(i,new Umt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var cwe=p((TTr,awe)=>{"use strict";var qmt=wt(),{InvalidArgumentError:Gmt,RequestAbortedError:Hmt}=$t(),jmt=_O(),vz=class extends jmt{#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 o=qmt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Hmt(`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 Vmt({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)}}awe.exports=Vmt});var fwe=p((NTr,lwe)=>{"use strict";var{isIP:zmt}=require("node:net"),{lookup:$mt}=require("node:dns"),Wmt=_O(),{InvalidArgumentError:nw,InformationalError:Jmt}=$t(),uwe=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 Jmt("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){$mt(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===uwe?(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===uwe?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 Wmt{#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":jIe(s)&&(r[n]=s);break;case"id":VIe(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&&VIe(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}}};zIe.exports={EventSourceStream:d9}});var tSe=p((cNr,eSe)=>{"use strict";var{pipeline:s0t}=require("node:stream"),{fetching:o0t}=e_(),{makeRequest:a0t}=aw(),{webidl:_d}=rs(),{EventSourceStream:c0t}=$Ie(),{parseMIMEType:u0t}=ea(),{createFastMessageEvent:l0t}=dw(),{isNetworkError:WIe}=Xv(),{delay:f0t}=f9(),{kEnumerableProperty:py}=wt(),{environmentSettingsObject:JIe}=Ma(),YIe=!1,KIe=3e3,d_=0,XIe=1,p_=2,h0t="anonymous",d0t="use-credentials",yw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=d_;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),_d.util.markAsUncloneable(this);let i="EventSource constructor";_d.argumentLengthCheck(arguments,1,i),YIe||(YIe=!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:KIe};let n=JIe,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=h0t;r.withCredentials&&(o=d0t,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=JIe.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=a0t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===p_)return;this.#r=d_;let e={request:this.#n,dispatcher:this.#l},r=i=>{WIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(WIe(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",o=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=XIe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new c0t({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(l0t(c.type,c.options))}});s0t(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=o0t(e)}async#c(){this.#r!==p_&&(this.#r=d_,this.dispatchEvent(new Event("error")),await f0t(this.#u.reconnectionTime),this.#r===d_&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){_d.brandCheck(this,t),this.#r!==p_&&(this.#r=p_,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}},ZIe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:d_,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:XIe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:p_,writable:!1}};Object.defineProperties(yw,ZIe);Object.defineProperties(yw.prototype,ZIe);Object.defineProperties(yw.prototype,{close:py,onerror:py,onmessage:py,onopen:py,readyState:py,url:py,withCredentials:py});_d.converters.EventSourceInitDict=_d.dictionaryConverter([{key:"withCredentials",converter:_d.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:_d.converters.any}]);eSe.exports={EventSource:yw,defaultReconnectionTime:KIe}});var my=p((uNr,Xe)=>{"use strict";var p0t=zb(),rSe=yv(),m0t=$b(),A0t=ZEe(),g0t=Wb(),y0t=MV(),E0t=I0e(),b0t=R0e(),iSe=$t(),pP=wt(),{InvalidArgumentError:dP}=iSe,Ew=mbe(),w0t=bv(),C0t=Ez(),I0t=Kbe(),S0t=Cz(),B0t=oz(),v0t=AO(),{getGlobalDispatcher:nSe,setGlobalDispatcher:_0t}=vO(),x0t=_O(),R0t=sO(),T0t=oO();Object.assign(rSe.prototype,Ew);Xe.exports.Dispatcher=rSe;Xe.exports.Client=p0t;Xe.exports.Pool=m0t;Xe.exports.BalancedPool=A0t;Xe.exports.Agent=g0t;Xe.exports.ProxyAgent=y0t;Xe.exports.EnvHttpProxyAgent=E0t;Xe.e Line truncated
%s`,N,N,E,i);var Q=E.type==="*"?I$:E.type==="?"?C$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+Q+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var G=a.length-1;G>-1;G--){var D=a[G],H=i.slice(0,D.reStart),L=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),W=i.slice(D.reEnd);Z+=W;var De=H.split("(").length-1,de=W;for(A=0;A<De;A++)de=de.replace(/\)[+*?]?/,"");W=de;var Qe="";W===""&&e!==MP&&(Qe="$");var K=H+L+W+Qe+Z;i=K}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===MP)return[i,n];if(!n)return rSt(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}Ya.makeRe=function(t,e){return new ss(t,e||{}).makeRe()};ss.prototype.makeRe=tSt;function tSt(){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?I$:e.dot?$It:WIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===S$?r:typeof o=="string"?iSt(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;F_.sep!=="/"&&(e=e.split(F_.sep).join("/")),e=e.split(h_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===S$){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(`
`.trim())}};Kbe.exports=Bz});var vO=p((vTr,rwe)=>{"use strict";var Zbe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mmt}=$t(),Fmt=Wb();twe()===void 0&&ewe(new Fmt);function ewe(t){if(!t||typeof t.dispatch!="function")throw new Mmt("Argument agent must implement Agent");Object.defineProperty(globalThis,Zbe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function twe(){return globalThis[Zbe]}rwe.exports={setGlobalDispatcher:ewe,getGlobalDispatcher:twe}});var _O=p((xTr,iwe)=>{"use strict";iwe.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 swe=p((RTr,nwe)=>{"use strict";var Umt=sO();nwe.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 Umt(r,o,n,s);return r(a,c)}}});var awe=p((TTr,owe)=>{"use strict";var qmt=AO();owe.exports=t=>e=>function(i,n){return e(i,new qmt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var uwe=p((NTr,cwe)=>{"use strict";var Gmt=wt(),{InvalidArgumentError:Hmt,RequestAbortedError:jmt}=$t(),Vmt=_O(),vz=class extends Vmt{#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 Hmt("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=Gmt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new jmt(`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 zmt({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)}}cwe.exports=zmt});var hwe=p((DTr,fwe)=>{"use strict";var{isIP:$mt}=require("node:net"),{lookup:Wmt}=require("node:dns"),Jmt=_O(),{InvalidArgumentError:nw,InformationalError:Ymt}=$t(),lwe=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 Ymt("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){Wmt(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===lwe?(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===lwe?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 Jmt{#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":VIe(s)&&(r[n]=s);break;case"id":zIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&VIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&zIe(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}}};$Ie.exports={EventSourceStream:d9}});var rSe=p((uNr,tSe)=>{"use strict";var{pipeline:o0t}=require("node:stream"),{fetching:a0t}=e_(),{makeRequest:c0t}=aw(),{webidl:_d}=is(),{EventSourceStream:u0t}=WIe(),{parseMIMEType:l0t}=ea(),{createFastMessageEvent:f0t}=dw(),{isNetworkError:JIe}=Xv(),{delay:h0t}=f9(),{kEnumerableProperty:py}=wt(),{environmentSettingsObject:YIe}=Fa(),KIe=!1,XIe=3e3,d_=0,ZIe=1,p_=2,d0t="anonymous",p0t="use-credentials",yw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=d_;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),_d.util.markAsUncloneable(this);let i="EventSource constructor";_d.argumentLengthCheck(arguments,1,i),KIe||(KIe=!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:XIe};let n=YIe,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=d0t;r.withCredentials&&(o=p0t,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=YIe.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=c0t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===p_)return;this.#r=d_;let e={request:this.#n,dispatcher:this.#l},r=i=>{JIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(JIe(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?l0t(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=ZIe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new u0t({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(f0t(c.type,c.options))}});o0t(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=a0t(e)}async#c(){this.#r!==p_&&(this.#r=d_,this.dispatchEvent(new Event("error")),await h0t(this.#u.reconnectionTime),this.#r===d_&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){_d.brandCheck(this,t),this.#r!==p_&&(this.#r=p_,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}},eSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:d_,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:ZIe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:p_,writable:!1}};Object.defineProperties(yw,eSe);Object.defineProperties(yw.prototype,eSe);Object.defineProperties(yw.prototype,{close:py,onerror:py,onmessage:py,onopen:py,readyState:py,url:py,withCredentials:py});_d.converters.EventSourceInitDict=_d.dictionaryConverter([{key:"withCredentials",converter:_d.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:_d.converters.any}]);tSe.exports={EventSource:yw,defaultReconnectionTime:XIe}});var my=p((lNr,Xe)=>{"use strict";var m0t=zb(),iSe=yv(),A0t=$b(),g0t=e0e(),y0t=Wb(),E0t=MV(),b0t=S0e(),w0t=T0e(),nSe=$t(),pP=wt(),{InvalidArgumentError:dP}=nSe,Ew=Abe(),C0t=bv(),I0t=Ez(),S0t=Xbe(),B0t=Cz(),v0t=oz(),_0t=AO(),{getGlobalDispatcher:sSe,setGlobalDispatcher:x0t}=vO(),R0t=_O(),T0t=sO(),N0t=oO();Object.assign(iSe.prototype,Ew);Xe.exports.Dispatcher=iSe;Xe.exports.Client=m0t;Xe.exports.Pool=A0t;Xe.exports.BalancedPool=g0t;Xe.exports.Agent=y0t;Xe.exports.ProxyAgent=E0t;Xe.exports.EnvHttpProxyAgent=b0t;Xe.e Line truncated
%s`,N,N,E,i);var Q=E.type==="*"?I$:E.type==="?"?C$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+Q+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var G=a.length-1;G>-1;G--){var D=a[G],H=i.slice(0,D.reStart),L=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),W=i.slice(D.reEnd);Z+=W;var De=H.split("(").length-1,de=W;for(A=0;A<De;A++)de=de.replace(/\)[+*?]?/,"");W=de;var Qe="";W===""&&e!==MP&&(Qe="$");var K=H+L+W+Qe+Z;i=K}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===MP)return[i,n];if(!n)return iSt(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}Ka.makeRe=function(t,e){return new os(t,e||{}).makeRe()};os.prototype.makeRe=rSt;function rSt(){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?I$:e.dot?WIt:JIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===S$?r:typeof o=="string"?nSt(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}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=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;F_.sep!=="/"&&(e=e.split(F_.sep).join("/")),e=e.split(d_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};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,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===S$){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 rSt(t){return t.replace(/\\(.)/g,"$1")}function iSt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var G_=p((LDr,E_e)=>{"use strict";var fSt="2.0.0",hSt=Number.MAX_SAFE_INTEGER||9007199254740991,dSt=16,pSt=250,mSt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];E_e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dSt,MAX_SAFE_BUILD_LENGTH:pSt,MAX_SAFE_INTEGER:hSt,RELEASE_TYPES:mSt,SEMVER_SPEC_VERSION:fSt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var H_=p((MDr,b_e)=>{"use strict";var ASt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};b_e.exports=ASt});var Tw=p((mf,w_e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:v$,MAX_SAFE_BUILD_LENGTH:gSt,MAX_LENGTH:ySt}=G_(),ESt=H_();mf=w_e.exports={};var bSt=mf.re=[],wSt=mf.safeRe=[],ge=mf.src=[],CSt=mf.safeSrc=[],ye=mf.t={},ISt=0,_$="[a-zA-Z0-9-]",SSt=[["\\s",1],["\\d",ySt],[_$,gSt]],BSt=t=>{for(let[e,r]of SSt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},at=(t,e,r)=>{let i=BSt(e),n=ISt++;ESt(t,n,e),ye[t]=n,ge[n]=e,CSt[n]=i,bSt[n]=new RegExp(e,r?"g":void 0),wSt[n]=new RegExp(i,r?"g":void 0)};at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_$}*`);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",`${_$}+`);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,${v$}})(?:\\.(\\d{1,${v$}}))?(?:\\.(\\d{1,${v$}}))?`);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 GP=p((FDr,C_e)=>{"use strict";var vSt=Object.freeze({loose:!0}),_St=Object.freeze({}),xSt=t=>t?typeof t!="object"?vSt:t:_St;C_e.exports=xSt});var x$=p((UDr,B_e)=>{"use strict";var I_e=/^[0-9]+$/,S_e=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=I_e.test(t),i=I_e.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},RSt=(t,e)=>S_e(e Line truncated
>>> 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 iSt(t){return t.replace(/\\(.)/g,"$1")}function nSt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var G_=p((MDr,b_e)=>{"use strict";var hSt="2.0.0",dSt=Number.MAX_SAFE_INTEGER||9007199254740991,pSt=16,mSt=250,ASt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];b_e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pSt,MAX_SAFE_BUILD_LENGTH:mSt,MAX_SAFE_INTEGER:dSt,RELEASE_TYPES:ASt,SEMVER_SPEC_VERSION:hSt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var H_=p((FDr,w_e)=>{"use strict";var gSt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};w_e.exports=gSt});var Tw=p((mf,C_e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:v$,MAX_SAFE_BUILD_LENGTH:ySt,MAX_LENGTH:ESt}=G_(),bSt=H_();mf=C_e.exports={};var wSt=mf.re=[],CSt=mf.safeRe=[],ge=mf.src=[],ISt=mf.safeSrc=[],ye=mf.t={},SSt=0,_$="[a-zA-Z0-9-]",BSt=[["\\s",1],["\\d",ESt],[_$,ySt]],vSt=t=>{for(let[e,r]of BSt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},at=(t,e,r)=>{let i=vSt(e),n=SSt++;bSt(t,n,e),ye[t]=n,ge[n]=e,ISt[n]=i,wSt[n]=new RegExp(e,r?"g":void 0),CSt[n]=new RegExp(i,r?"g":void 0)};at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_$}*`);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",`${_$}+`);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,${v$}})(?:\\.(\\d{1,${v$}}))?(?:\\.(\\d{1,${v$}}))?`);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 GP=p((UDr,I_e)=>{"use strict";var _St=Object.freeze({loose:!0}),xSt=Object.freeze({}),RSt=t=>t?typeof t!="object"?_St:t:xSt;I_e.exports=RSt});var x$=p((qDr,v_e)=>{"use strict";var S_e=/^[0-9]+$/,B_e=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=S_e.test(t),i=S_e.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},TSt=(t,e)=>B_e(e Line truncated
`).join(`
`+s),t.push(n+"m+"+vk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=J_t()+e+" "+t[0]}function J_t(){return os.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Y_t(...t){return process.stderr.write(Bk.format(...t)+`
`)}function K_t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function X_t(){return process.env.DEBUG}function Z_t(t){t.inspectOpts={};let e=Object.keys(os.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=os.inspectOpts[e[r]]}vk.exports=hW()(os);var{formatters:tTe}=vk.exports;tTe.o=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};tTe.O=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts)}});var Py=p((ekr,AW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AW.exports=YRe():AW.exports=rTe()});var sTe=p(aa=>{"use strict";var ext=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]})),txt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iTe=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)&&ext(e,t,r);return txt(e,t),e};Object.defineProperty(aa,"__esModule",{value:!0});aa.req=aa.json=aa.toBuffer=void 0;var rxt=iTe(require("http")),ixt=iTe(require("https"));async function nTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}aa.toBuffer=nTe;async function nxt(t){let r=(await nTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}aa.json=nxt;function sxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?ixt:rxt).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=sxt});var uTe=p(ec=>{"use strict";var aTe=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]})),oxt=ec&&ec.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cTe=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)&&aTe(e,t,r);return oxt(e,t),e},axt=ec&&ec.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&aTe(e,t,r)};Object.defineProperty(ec,"__esModule",{value:!0});ec.Agent=void 0;var cxt=cTe(require("net")),oTe=cTe(require("http")),uxt=require("https");axt(sTe(),ec);var yf=Symbol("AgentBaseInternalState"),gW=class extends oTe.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 cxt.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)?uxt.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 oTe.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 lTe=p(Fw=>{"use strict";var lxt=Fw&&Fw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.parseProxyResponse=void 0;var fxt=lxt(Py()),_k=(0,fxt.default)("https-proxy-agent:parse-proxy-response");function hxt(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(),_k("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),_k("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+"+vk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Y_t()+e+" "+t[0]}function Y_t(){return as.inspectOpts.hideDate?"":new Date().toISOString()+" "}function K_t(...t){return process.stderr.write(Bk.format(...t)+`
`)}function X_t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Z_t(){return process.env.DEBUG}function ext(t){t.inspectOpts={};let e=Object.keys(as.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=as.inspectOpts[e[r]]}vk.exports=hW()(as);var{formatters:rTe}=vk.exports;rTe.o=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};rTe.O=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts)}});var Py=p((tkr,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 txt=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]})),rxt=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)&&txt(e,t,r);return rxt(e,t),e};Object.defineProperty(aa,"__esModule",{value:!0});aa.req=aa.json=aa.toBuffer=void 0;var ixt=nTe(require("http")),nxt=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 sxt(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=sxt;function oxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?nxt:ixt).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=oxt});var lTe=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]})),axt=tc&&tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uTe=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 axt(e,t),e},cxt=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=uTe(require("net")),aTe=uTe(require("http")),lxt=require("https");cxt(oTe(),tc);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 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 this.isSecureEndpoint(e)?lxt.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)}};tc.Agent=gW});var fTe=p(Fw=>{"use strict";var fxt=Fw&&Fw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.parseProxyResponse=void 0;var hxt=fxt(Py()),_k=(0,hxt.default)("https-proxy-agent:parse-proxy-response");function dxt(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(),_k("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),_k("onerror %o",l),r(l)}function u(l){n.push(l),i+=l.length;let f=Buffer.concat(n,i),h=f.indexOf(`\r
\r
`);if(h===-1){_k("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(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}_k("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()})}Fw.parseProxyResponse=hxt});var ATe=p(eu=>{"use strict";var dxt=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]})),pxt=eu&&eu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pTe=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)&&dxt(e,t,r);return pxt(e,t),e},mTe=eu&&eu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eu,"__esModule",{value:!0});eu.HttpsProxyAgent=void 0;var xk=pTe(require("net")),fTe=pTe(require("tls")),mxt=mTe(require("assert")),Axt=mTe(Py()),gxt=uTe(),yxt=require("url"),Ext=lTe(),ix=(0,Axt.default)("https-proxy-agent"),hTe=t=>t.servername===void 0&&t.host&&!xk.isIP(t.host)?{...t,servername:t.host}:t,Rk=class extends gxt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new yxt.URL(e):e,this.proxyHeaders=r?.headers??{},ix("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?dTe(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:"?(ix("Creating `tls.Socket`: %o",this.connectOpts),n=fTe.connect(hTe(this.connectOpts))):(ix("Creating `net.Socket`: %o",this.connectOpts),n=xk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xk.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\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(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}_k("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()})}Fw.parseProxyResponse=dxt});var gTe=p(eu=>{"use strict";var pxt=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]})),mxt=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)&&pxt(e,t,r);return mxt(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 xk=mTe(require("net")),hTe=mTe(require("tls")),Axt=ATe(require("assert")),gxt=ATe(Py()),yxt=lTe(),Ext=require("url"),bxt=fTe(),ix=(0,gxt.default)("https-proxy-agent"),dTe=t=>t.servername===void 0&&t.host&&!xk.isIP(t.host)?{...t,servername:t.host}:t,Rk=class extends yxt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Ext.URL(e):e,this.proxyHeaders=r?.headers??{},ix("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:"?(ix("Creating `tls.Socket`: %o",this.connectOpts),n=hTe.connect(dTe(this.connectOpts))):(ix("Creating `net.Socket`: %o",this.connectOpts),n=xk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xk.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,Ext.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",bxt),r.secureEndpoint?(ix("Upgrading socket connection to TLS"),fTe.connect({...dTe(hTe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new xk.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{ix("Replaying proxy buffer for failed request"),(0,mxt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};Rk.protocols=["http","https"];eu.HttpsProxyAgent=Rk;function bxt(t){t.resume()}function dTe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var ETe=p(ca=>{"use strict";var wxt=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]})),Cxt=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gTe=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)&&wxt(e,t,r);return Cxt(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.req=ca.json=ca.toBuffer=void 0;var Ixt=gTe(require("http")),Sxt=gTe(require("https"));async function yTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ca.toBuffer=yTe;async function Bxt(t){let r=(await yTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ca.json=Bxt;function vxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Sxt:Ixt).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=vxt});var nx=p(tc=>{"use strict";var wTe=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]})),_xt=tc&&tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CTe=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)&&wTe(e,t,r);return _xt(e,t),e},xxt=tc&&tc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wTe(e,t,r)};Object.defineProperty(tc,"__esModule",{value:!0});tc.Agent=void 0;var Rxt=CTe(require("net")),bTe=CTe(require("http")),Txt=require("https");xxt(ETe(),tc);var Ef=Symbol("AgentBaseInternalState"),yW=class extends bTe.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 Rxt.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))?Txt.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 bTe.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 Nxt=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]})),Dxt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),STe=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)&&Nxt(e,t,r);return Dxt(e,t),e},Oxt=tu&&tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tu,"__esModule",{value:!0});tu.HttpProxyAgent=void 0;var Pxt=STe(require("net")),kxt=STe(require("tls")),Qxt=Oxt(Py()),Lxt=require("events"),Mxt=nx(),ITe=require("url"),Uw=(0,Qxt.default)("http-proxy-agent"),Tk=class extends Mxt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ITe.URL(e):e,this.proxyHeaders=r?.headers??{},Uw("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?Fxt(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 ITe.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;Uw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Uw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
`;let c=(0,bxt.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",wxt),r.secureEndpoint?(ix("Upgrading socket connection to TLS"),hTe.connect({...pTe(dTe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new xk.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{ix("Replaying proxy buffer for failed request"),(0,Axt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};Rk.protocols=["http","https"];eu.HttpsProxyAgent=Rk;function wxt(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 Cxt=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]})),Ixt=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)&&Cxt(e,t,r);return Ixt(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.req=ca.json=ca.toBuffer=void 0;var Sxt=yTe(require("http")),Bxt=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 vxt(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=vxt;function _xt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Bxt:Sxt).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=_xt});var nx=p(rc=>{"use strict";var CTe=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:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),xxt=rc&&rc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ITe=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)&&CTe(e,t,r);return xxt(e,t),e},Rxt=rc&&rc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&CTe(e,t,r)};Object.defineProperty(rc,"__esModule",{value:!0});rc.Agent=void 0;var Txt=ITe(require("net")),wTe=ITe(require("http")),Nxt=require("https");Rxt(bTe(),rc);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 Txt.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))?Nxt.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)}};rc.Agent=yW});var EW=p(tu=>{"use strict";var Dxt=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]})),Oxt=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)&&Dxt(e,t,r);return Oxt(e,t),e},Pxt=tu&&tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tu,"__esModule",{value:!0});tu.HttpProxyAgent=void 0;var kxt=BTe(require("net")),Qxt=BTe(require("tls")),Lxt=Pxt(Py()),Mxt=require("events"),Fxt=nx(),STe=require("url"),Uw=(0,Lxt.default)("http-proxy-agent"),Tk=class extends Fxt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new STe.URL(e):e,this.proxyHeaders=r?.headers??{},Uw("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?Uxt(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;Uw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Uw("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),Uw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Uw("Creating `tls.Socket`: %o",this.connectOpts),s=kxt.connect(this.connectOpts)):(Uw("Creating `net.Socket`: %o",this.connectOpts),s=Pxt.connect(this.connectOpts)),await(0,Lxt.once)(s,"connect"),s}};Tk.protocols=["http","https"];tu.HttpProxyAgent=Tk;function Fxt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var zTe=p(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});jk.state=void 0;jk.state={instrumenterImplementation:void 0}});var uNe=p(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.state=void 0;Jk.state={operationRequestMap:new WeakMap}});var q2e=p(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});var sDt=require("os"),oDt=require("util");function aDt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var cDt=aDt(oDt);function uDt(t,...e){process.stderr.write(`${cDt.default.format(t,...e)}${sDt.EOL}`)}var N2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,O2e,KK=[],XK=[],pL=[];N2e&&ZK(N2e);var P2e=Object.assign(t=>k2e(t),{enable:ZK,enabled:eX,disable:lDt,log:uDt});function ZK(t){O2e=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 pL)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 lDt(){let t=O2e||"";return ZK(""),t}function k2e(t){let e=Object.assign(r,{enabled:eX(t),destroy:fDt,log:P2e.log,namespace:t,extend:hDt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return pL.push(e),e}function fDt(){let t=pL.indexOf(this);return t>=0?(pL.splice(t,1),!0):!1}function hDt(t){let e=k2e(`${this.namespace}:${t}`);return e.log=this.log,e}var Vx=P2e,Q2e=new Set,hL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,mL,AL=Vx("azure");AL.log=(...t)=>{Vx.log(...t)};var tX=["verbose","info","warning","error"];hL&&(U2e(hL)?L2e(hL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${hL}'; logging is not enabled. Acceptable values: ${tX.join(", ")}.`));function L2e(t){if(t&&!U2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${tX.join(",")}`);mL=t;let e=[];for(let r of Q2e)F2e(r)&&e.push(r.namespace);Vx.enable(e.join(","))}function dDt(){return mL}var D2e={verbose:400,info:300,warning:200,error:100};function pDt(t){let e=AL.extend(t);return M2e(AL,e),{error:dL(e,"error"),warning:dL(e,"warning"),info:dL(e,"info"),verbose:dL(e,"verbose")}}function M2e(t,e){e.log=(...r)=>{t.log(...r)}}function dL(t,e){let r=Object.assign(t.extend(e),{level:e});if(M2e(t,r),F2e(r)){let i=Vx.disable();Vx.enable(i+","+r.namespace)}return Q2e.add(r),r}function F2e(t){return!!(mL&&D2e[t.level]<=D2e[mL])}function U2e(t){return tX.includes(t)}nC.AzureLogger=AL;nC.createClientLogger=pDt;nC.getLogLevel=dDt;nC.setLogLevel=L2e});var nX=p($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var sC=new WeakMap,gL=new WeakMap,zx=class t{constructor(){this.onabort=null,sC.set(this,[]),gL.set(this,!1)}get aborted(){if(!gL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return gL.get(this)}static get none(){return new t}addEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");sC.get(this).push(r)}removeEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=sC.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 G2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=sC.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),gL.set(t,!0)}var rX=class extends Error{constructor(e){super(e),this.name="AbortError"}},iX=class{constructor(e){if(this._signal=new zx,!!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(){G2e(this._signal)}static timeout(e){let r=new zx,i=setTimeout(G2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};$x.AbortController=iX;$x.AbortError=rX;$x.AbortSignal=zx});var $2e=p(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var mDt=nX(),fX=require("crypto");function H2e(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new mDt.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 ADt="The delay was Line truncated
`)+4,e.outputData[0].data=e._header+i.substring(n),Uw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Uw("Creating `tls.Socket`: %o",this.connectOpts),s=Qxt.connect(this.connectOpts)):(Uw("Creating `net.Socket`: %o",this.connectOpts),s=kxt.connect(this.connectOpts)),await(0,Mxt.once)(s,"connect"),s}};Tk.protocols=["http","https"];tu.HttpProxyAgent=Tk;function Uxt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var $Te=p(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});jk.state=void 0;jk.state={instrumenterImplementation:void 0}});var lNe=p(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.state=void 0;Jk.state={operationRequestMap:new WeakMap}});var G2e=p(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});var oDt=require("os"),aDt=require("util");function cDt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var uDt=cDt(aDt);function lDt(t,...e){process.stderr.write(`${uDt.default.format(t,...e)}${oDt.EOL}`)}var D2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,P2e,KK=[],XK=[],pL=[];D2e&&ZK(D2e);var k2e=Object.assign(t=>Q2e(t),{enable:ZK,enabled:eX,disable:fDt,log:lDt});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 pL)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 fDt(){let t=P2e||"";return ZK(""),t}function Q2e(t){let e=Object.assign(r,{enabled:eX(t),destroy:hDt,log:k2e.log,namespace:t,extend:dDt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return pL.push(e),e}function hDt(){let t=pL.indexOf(this);return t>=0?(pL.splice(t,1),!0):!1}function dDt(t){let e=Q2e(`${this.namespace}:${t}`);return e.log=this.log,e}var Vx=k2e,L2e=new Set,hL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,mL,AL=Vx("azure");AL.log=(...t)=>{Vx.log(...t)};var tX=["verbose","info","warning","error"];hL&&(q2e(hL)?M2e(hL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${hL}'; 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(",")}`);mL=t;let e=[];for(let r of L2e)U2e(r)&&e.push(r.namespace);Vx.enable(e.join(","))}function pDt(){return mL}var O2e={verbose:400,info:300,warning:200,error:100};function mDt(t){let e=AL.extend(t);return F2e(AL,e),{error:dL(e,"error"),warning:dL(e,"warning"),info:dL(e,"info"),verbose:dL(e,"verbose")}}function F2e(t,e){e.log=(...r)=>{t.log(...r)}}function dL(t,e){let r=Object.assign(t.extend(e),{level:e});if(F2e(t,r),U2e(r)){let i=Vx.disable();Vx.enable(i+","+r.namespace)}return L2e.add(r),r}function U2e(t){return!!(mL&&O2e[t.level]<=O2e[mL])}function q2e(t){return tX.includes(t)}nC.AzureLogger=AL;nC.createClientLogger=mDt;nC.getLogLevel=pDt;nC.setLogLevel=M2e});var nX=p($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var sC=new WeakMap,gL=new WeakMap,zx=class t{constructor(){this.onabort=null,sC.set(this,[]),gL.set(this,!1)}get aborted(){if(!gL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return gL.get(this)}static get none(){return new t}addEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");sC.get(this).push(r)}removeEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=sC.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=sC.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),gL.set(t,!0)}var rX=class extends Error{constructor(e){super(e),this.name="AbortError"}},iX=class{constructor(e){if(this._signal=new zx,!!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 zx,i=setTimeout(H2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};$x.AbortController=iX;$x.AbortError=rX;$x.AbortSignal=zx});var W2e=p(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var ADt=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 ADt.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 gDt="The delay was Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${K2e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(J2e({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function tDe(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 jDt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(Z2e({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!K2e.includes(C)){let S=l?.(E);S&&m(S);let N=a?.(E,r);if(N!==void 0){let Q=g!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(g,!1)}d?.(r,E)}}function rDe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function iDe(t){return t.headers.location}function nDe(t){return t.headers["operation-location"]}function sDe(t){return t.headers["azure-asyncoperation"]}function VDt(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 oDe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=nDe(e),o=sDe(e),a=rDe({operationLocation:s,azureAsyncOperation:o}),c=iDe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:VDt({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 aDe(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 Xy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function zDt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return aDe({status:r,statusCode:t.statusCode})}function $Dt(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 aDe({status:s,statusCode:t.statusCode})}function mX(t){return t===202?"running":t<300?"succeeded":"failed"}function cDe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?WDt(new Date(e)):r*1e3}}function uDe(t){let e=t.flatResponse.error;if(!e){Xy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Xy.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 WDt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function lDe(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 JDt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return eDe({init:async()=>{let o=await n.sendInitialRequest(),a=oDe({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:lDe,setErrorAsResult:s})}function fDe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return rDe({operationLocation:nDe(t),azureAsyncOperation:sDe(t)});case"ResourceLocation":return iDe(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 zDt(t);case"ResourceLocation":return mX(t.statusCode);case"Body":return $Dt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function hDe({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)}fC.base64decode=DOt;function OOt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Vd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Vd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Vd[n|i>>6],e+=Vd[i&63],r=0;break}return r&&(e+=Vd[n],e+="=",r==1&&(e+="=")),e}fC.base64encode=OOt});var qDe=p(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0});QL.utf8read=void 0;var vX=t=>String.fromCharCode.apply(String,t);function POt(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))}QL.utf8read=POt});var tR=p(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.WireType=Vf.mergeBinaryOptions=Vf.UnknownFieldHandler=void 0;var kOt;(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])})(kOt=Vf.UnknownFieldHandler||(Vf.UnknownFieldHandler={}));function QOt(t,e){return Object.assign(Object.assign({},t),e)}Vf.mergeBinaryOptions=QOt;var LOt;(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"})(LOt=Vf.WireType||(Vf.WireType={}))});var ML=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 MOt(){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=MOt;function FOt(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=FOt;var LL=65536*65536;function UOt(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>=LL&&(n=n+(i/LL|0),i=i%LL)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ma.int64fromString=UOt;function qOt(t,e){if(e>>>0<=2097151)return""+(LL*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=qOt;function GOt(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=GOt;function HOt(){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=HOt});var sA=p(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.PbLong=nA.PbULong=nA.detectBi=void 0;var rR=ML(),mr;function GDe(){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}nA.detectBi=GDe;GDe();function HDe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var jDe=/^-?[0-9]+$/,UL=4294967296,FL=2147483648,qL=c Line truncated
`)}};fM.RpcError=ZX});var tZ=p(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.mergeRpcOptions=void 0;var bOe=Ri();function fkt(t,e){if(!e)return t;let r={};hM(t,r),hM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=bOe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=bOe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hM(t.meta,r.meta),hM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}dM.mergeRpcOptions=fkt;function hM(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(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.Deferred=iE.DeferredState=void 0;var Wf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Wf=iE.DeferredState||(iE.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)}};iE.Deferred=rZ});var sZ=p(pM=>{"use strict";Object.defineProperty(pM,"__esModule",{value:!0});pM.RpcOutputStreamController=void 0;var wOe=iZ(),nE=Ri(),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){nE.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){nE.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){nE.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(){nE.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;nE.assert(e,"bad state"),nE.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 wOe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;nE.assert(i.state==wOe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};pM.RpcOutputStreamController=nZ});var aZ=p(yC=>{"use strict";var hkt=yC&&yC.__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(yC,"__esModule",{value:!0});yC.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 hkt(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}})}};yC.UnaryCall=oZ});var uZ=p(EC=>{"use strict";var dkt=EC&&EC.__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(EC,"__esModule",{value:!0});EC.ServerStreamingCall=void 0;var cZ=class{constructor(e Line truncated
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 VDt({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 Q=g!==N;r.config.operationLocation=N,u?.(N,Q)}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 zDt(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:zDt({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 Xy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function $Dt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return cDe({status:r,statusCode:t.statusCode})}function WDt(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)?JDt(new Date(e)):r*1e3}}function lDe(t){let e=t.flatResponse.error;if(!e){Xy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Xy.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 JDt(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 YDt(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 $Dt(t);case"ResourceLocation":return mX(t.statusCode);case"Body":return WDt(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)}fC.base64decode=OOt;function POt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Vd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Vd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Vd[n|i>>6],e+=Vd[i&63],r=0;break}return r&&(e+=Vd[n],e+="=",r==1&&(e+="=")),e}fC.base64encode=POt});var GDe=p(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0});QL.utf8read=void 0;var vX=t=>String.fromCharCode.apply(String,t);function kOt(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))}QL.utf8read=kOt});var tR=p(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.WireType=Vf.mergeBinaryOptions=Vf.UnknownFieldHandler=void 0;var QOt;(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])})(QOt=Vf.UnknownFieldHandler||(Vf.UnknownFieldHandler={}));function LOt(t,e){return Object.assign(Object.assign({},t),e)}Vf.mergeBinaryOptions=LOt;var MOt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(MOt=Vf.WireType||(Vf.WireType={}))});var ML=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 FOt(){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=FOt;function UOt(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=UOt;var LL=65536*65536;function qOt(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>=LL&&(n=n+(i/LL|0),i=i%LL)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ma.int64fromString=qOt;function GOt(t,e){if(e>>>0<=2097151)return""+(LL*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=GOt;function HOt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ma.varint32write=HOt;function jOt(){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=jOt});var sA=p(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.PbLong=nA.PbULong=nA.detectBi=void 0;var rR=ML(),mr;function HDe(){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}nA.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]+$/,UL=4294967296,FL=2147483648,qL=c Line truncated
`)}};fM.RpcError=ZX});var tZ=p(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.mergeRpcOptions=void 0;var wOe=Ri();function hkt(t,e){if(!e)return t;let r={};hM(t,r),hM(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={},hM(t.meta,r.meta),hM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}dM.mergeRpcOptions=hkt;function hM(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(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.Deferred=iE.DeferredState=void 0;var Wf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Wf=iE.DeferredState||(iE.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)}};iE.Deferred=rZ});var sZ=p(pM=>{"use strict";Object.defineProperty(pM,"__esModule",{value:!0});pM.RpcOutputStreamController=void 0;var COe=iZ(),nE=Ri(),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){nE.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){nE.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){nE.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(){nE.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;nE.assert(e,"bad state"),nE.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;nE.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)}};pM.RpcOutputStreamController=nZ});var aZ=p(yC=>{"use strict";var dkt=yC&&yC.__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(yC,"__esModule",{value:!0});yC.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 dkt(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}})}};yC.UnaryCall=oZ});var uZ=p(EC=>{"use strict";var pkt=EC&&EC.__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(EC,"__esModule",{value:!0});EC.ServerStreamingCall=void 0;var cZ=class{constructor(e 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 hUt(){Object.keys(JM).forEach(function(t){delete JM[t]})}});var KM=p(Xf=>{"use strict";Xf.__esModule=!0;Xf.HandlebarsEnvironment=vee;function BQe(t){return t&&t.__esModule?t:{default:t}}var uE=Co(),dUt=hc(),See=BQe(dUt),pUt=bee(),mUt=wQe(),AUt=Cee(),YM=BQe(AUt),gUt=Iee(),yUt="4.7.9";Xf.VERSION=yUt;var EUt=8;Xf.COMPILER_REVISION=EUt;var bUt=7;Xf.LAST_COMPATIBLE_COMPILER_REVISION=bUt;var wUt={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=wUt;var Bee="[object Object]";function vee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},pUt.registerDefaultHelpers(this),mUt.registerDefaultDecorators(this)}vee.prototype={constructor:vee,logger:YM.default,log:YM.default.log,registerHelper:function(e,r){if(uE.toString.call(e)===Bee){if(r)throw new See.default("Arg not supported with multiple helpers");uE.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(uE.toString.call(e)===Bee)uE.extend(this.partials,e);else{if(typeof r>"u")throw new See.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(uE.toString.call(e)===Bee){if(r)throw new See.default("Arg not supported with multiple decorators");uE.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){gUt.resetLoggedProperties()}};var CUt=YM.default.log;Xf.log=CUt;Xf.createFrame=uE.createFrame;Xf.logger=YM.default});var _Qe=p((XM,vQe)=>{"use strict";XM.__esModule=!0;function _ee(t){this.string=t}_ee.prototype.toString=_ee.prototype.toHTML=function(){return""+this.string};XM.default=_ee;vQe.exports=XM.default});var xQe=p(xee=>{"use strict";xee.__esModule=!0;xee.wrapHelper=IUt;function IUt(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 PQe=p(uA=>{"use strict";uA.__esModule=!0;uA.checkRevision=RUt;uA.template=TUt;uA.wrapProgram=ZM;uA.resolvePartial=NUt;uA.invokePartial=DUt;uA.noop=DQe;function SUt(t){return t&&t.__esModule?t:{default:t}}function BUt(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 vUt=Co(),DC=BUt(vUt),_Ut=hc(),Wd=SUt(_Ut),Jd=KM(),RQe=bee(),xUt=xQe(),TQe=Iee();function RUt(t){var e=t&&t[0]||1,r=Jd.COMPILER_REVISION;if(!(e>=Jd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Jd.COMPILER_REVISION))if(e<Jd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Jd.REVISION_CHANGES[r],n=Jd.REVISION_CHANGES[e];throw new Wd.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 Wd.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 TUt(t,e){if(!e)throw new Wd.default("No environment passed to template");if(!t||!t.main)throw new Wd.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=DC.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(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function dUt(){Object.keys(JM).forEach(function(t){delete JM[t]})}});var KM=p(Xf=>{"use strict";Xf.__esModule=!0;Xf.HandlebarsEnvironment=_ee;function vQe(t){return t&&t.__esModule?t:{default:t}}var uE=Co(),pUt=hc(),Bee=vQe(pUt),mUt=wee(),AUt=CQe(),gUt=Iee(),YM=vQe(gUt),yUt=See(),EUt="4.7.9";Xf.VERSION=EUt;var bUt=8;Xf.COMPILER_REVISION=bUt;var wUt=7;Xf.LAST_COMPATIBLE_COMPILER_REVISION=wUt;var CUt={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=CUt;var vee="[object Object]";function _ee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},mUt.registerDefaultHelpers(this),AUt.registerDefaultDecorators(this)}_ee.prototype={constructor:_ee,logger:YM.default,log:YM.default.log,registerHelper:function(e,r){if(uE.toString.call(e)===vee){if(r)throw new Bee.default("Arg not supported with multiple helpers");uE.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(uE.toString.call(e)===vee)uE.extend(this.partials,e);else{if(typeof r>"u")throw new Bee.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(uE.toString.call(e)===vee){if(r)throw new Bee.default("Arg not supported with multiple decorators");uE.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){yUt.resetLoggedProperties()}};var IUt=YM.default.log;Xf.log=IUt;Xf.createFrame=uE.createFrame;Xf.logger=YM.default});var xQe=p((XM,_Qe)=>{"use strict";XM.__esModule=!0;function xee(t){this.string=t}xee.prototype.toString=xee.prototype.toHTML=function(){return""+this.string};XM.default=xee;_Qe.exports=XM.default});var RQe=p(Ree=>{"use strict";Ree.__esModule=!0;Ree.wrapHelper=SUt;function SUt(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(uA=>{"use strict";uA.__esModule=!0;uA.checkRevision=TUt;uA.template=NUt;uA.wrapProgram=ZM;uA.resolvePartial=DUt;uA.invokePartial=OUt;uA.noop=OQe;function BUt(t){return t&&t.__esModule?t:{default:t}}function vUt(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 _Ut=Co(),DC=vUt(_Ut),xUt=hc(),Wd=BUt(xUt),Jd=KM(),TQe=wee(),RUt=RQe(),NQe=See();function TUt(t){var e=t&&t[0]||1,r=Jd.COMPILER_REVISION;if(!(e>=Jd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Jd.COMPILER_REVISION))if(e<Jd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Jd.REVISION_CHANGES[r],n=Jd.REVISION_CHANGES[e];throw new Wd.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 Wd.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 NUt(t,e){if(!e)throw new Wd.default("No environment passed to template");if(!t||!t.main)throw new Wd.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=DC.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 Wd.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 Wd.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)||TQe.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:DC.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=ZM(this,a,d,c,u,l,f):h||(h=this.programs[a]=ZM(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=DC.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=OUt(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=OQe(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={};NQe(a,e.helpers,n),NQe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=DC.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=TQe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;RQe.moveHelperToHooks(n,"helperMissing",c),RQe.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Wd.default("must pass block params");if(t.useDepths&&!u)throw new Wd.default("must pass parent depths");return ZM(n,o,t[o],a,0,c,u)},s}function ZM(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=OQe(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function NUt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=eF(r.partials,t)):r.name==="@partial-block"?t=eF(r.data,"partial-block"):t=eF(r.partials,r.name),t}function DUt(t,e,r){var i=eF(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!==DQe&&(function(){r.data=Jd.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=Jd.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=DC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Wd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function DQe(){return""}function eF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function OUt(t,e){return(!e||!("root"in e))&&(e=e?Jd.createFrame(e):{},e.root=t),e}function OQe(t,e,r,i,n,s){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],n,s,i),DC.extend(e,o)}return e}function NQe(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=PUt(n,r)})}function PUt(t,e){var r=e.lookupProperty;return xUt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var Ree=p((tF,kQe)=>{"use strict";tF.__esModule=!0;tF.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}};kQe.exports=tF.default});var UQe=p((rF,FQe)=>{"use strict";rF.__esModule=!0;function Nee(t){return t&&t.__esModule?t:{default:t}}function Dee(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 kUt=KM(),QQe=Dee(kUt),QUt=_Qe(),LUt=Nee(QUt),MUt=hc(),FUt=Nee(MUt),UUt=Co(),Tee=Dee(UUt),qUt=PQe(),LQe=Dee(qUt),GUt=Ree(),HUt=Nee(GUt);function MQe(){var t=new QQe.HandlebarsEnvironment;return Tee.extend(t,QQe),t.SafeString=LUt.default,t.Exception=FUt.default,t.Utils=Tee,t.escapeExpression=Tee.escapeExpression,t.VM=LQe,t.template=function(e){return LQe.template(e,t)},t}var vR=MQe();vR.create=MQe;HUt.default(vR);vR.default=vR;rF.default=vR;FQe.exports=rF.default});var Oee=p((iF,GQe)=>{"use strict";iF.__esModule=!0;var qQe={helpers:{helperExpression:function(e){re Line truncated
`)}return u}else throw new Wd.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 Wd.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:DC.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=ZM(this,a,d,c,u,l,f):h||(h=this.programs[a]=ZM(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=DC.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=PUt(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=DC.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 Wd.default("must pass block params");if(t.useDepths&&!u)throw new Wd.default("must pass parent depths");return ZM(n,o,t[o],a,0,c,u)},s}function ZM(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 DUt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=eF(r.partials,t)):r.name==="@partial-block"?t=eF(r.data,"partial-block"):t=eF(r.partials,r.name),t}function OUt(t,e,r){var i=eF(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=Jd.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=Jd.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=DC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Wd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function OQe(){return""}function eF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function PUt(t,e){return(!e||!("root"in e))&&(e=e?Jd.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),DC.extend(e,o)}return e}function DQe(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=kUt(n,r)})}function kUt(t,e){var r=e.lookupProperty;return RUt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var Tee=p((tF,QQe)=>{"use strict";tF.__esModule=!0;tF.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=tF.default});var qQe=p((rF,UQe)=>{"use strict";rF.__esModule=!0;function Dee(t){return t&&t.__esModule?t:{default:t}}function Oee(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 QUt=KM(),LQe=Oee(QUt),LUt=xQe(),MUt=Dee(LUt),FUt=hc(),UUt=Dee(FUt),qUt=Co(),Nee=Oee(qUt),GUt=kQe(),MQe=Oee(GUt),HUt=Tee(),jUt=Dee(HUt);function FQe(){var t=new LQe.HandlebarsEnvironment;return Nee.extend(t,LQe),t.SafeString=MUt.default,t.Exception=UUt.default,t.Utils=Nee,t.escapeExpression=Nee.escapeExpression,t.VM=MQe,t.template=function(e){return MQe.template(e,t)},t}var vR=FQe();vR.create=FQe;jUt.default(vR);vR.default=vR;rF.default=vR;UQe.exports=rF.default});var Pee=p((iF,HQe)=>{"use strict";iF.__esModule=!0;var GQe={helpers:{helperExpression:function(e){re Line truncated
`+this.lexer.showPosition()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:De})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", 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],H.$=a[a.length-Z],H._$={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&&(H._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),D=this.performAction.call(H,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(H.$),c.push(H._$),W=u[o[o.length-2]][o[o.length-1]],o.push(W);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})();nF.default=jUt;HQe.exports=nF.default});var cF=p((aF,$Qe)=>{"use strict";aF.__esModule=!0;function VUt(t){return t&&t.__esModule?t:{default:t}}var zUt=hc(),Pee=VUt(zUt);function sF(){this.parents=[]}sF.prototype={constructor:sF,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!sF.prototype[i.type])throw new Pee.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 Pee.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 Pee.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:oF,Decorator:oF,BlockStatement:VQe,DecoratorBlock:VQe,PartialStatement:zQe,PartialBlockStatement:function(e){zQe.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:oF,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 oF(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 dE(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 dE?e:(e=rte(e,this,r),new dE(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=rte(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(rte(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};AF.default=xLe;RLe.exports=AF.default});var kLe=p((gF,PLe)=>{"use strict";gF.__esModule=!0;function OLe(t){return t&&t.__esModule?t:{default:t}}var NLe=KM(),Hqt=hc(),nte=OLe(Hqt),jqt=Co(),Vqt=TLe(),DLe=OLe(Vqt);function MC(t){this.value=t}function FC(){}FC.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=NLe.COMPILER_REVISION,r=NLe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return jqt.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 nte.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var 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})();nF.default=VUt;jQe.exports=nF.default});var cF=p((aF,WQe)=>{"use strict";aF.__esModule=!0;function zUt(t){return t&&t.__esModule?t:{default:t}}var $Ut=hc(),kee=zUt($Ut);function sF(){this.parents=[]}sF.prototype={constructor:sF,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!sF.prototype[i.type])throw new kee.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 kee.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 kee.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:oF,Decorator:oF,BlockStatement:zQe,DecoratorBlock:zQe,PartialStatement:$Qe,PartialBlockStatement:function(e){$Qe.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:oF,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 oF(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 dE(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 dE?e:(e=ite(e,this,r),new dE(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=ite(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(ite(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};AF.default=RLe;TLe.exports=AF.default});var QLe=p((gF,kLe)=>{"use strict";gF.__esModule=!0;function PLe(t){return t&&t.__esModule?t:{default:t}}var DLe=KM(),jqt=hc(),ste=PLe(jqt),Vqt=Co(),zqt=NLe(),OLe=PLe(zqt);function MC(t){this.value=t}function FC(){}FC.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 Vqt.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 ste.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 DLe.default(this.options.srcName),this.decorators=new DLe.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(","),`) {
`),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`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,185 +86,185 @@ Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error
}
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(zqt(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 ate=p((b$r,GLe)=>{var bF=MLe().default,qLe=FLe();bF.PrintVisitor=qLe.PrintVisitor;bF.print=qLe.print;GLe.exports=bF;function ULe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=bF.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ULe,require.extensions[".hbs"]=ULe)});var eMe=p(SF=>{"use strict";Object.defineProperty(SF,"__esModule",{value:!0});SF.getProxyUrl=m3t;SF.checkBypass=ZLe;function m3t(t){let e=t.protocol==="https:";if(ZLe(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 IF(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new IF(`http://${r}`)}else return}function ZLe(t){if(!t.hostname)return!1;let e=t.hostname;if(A3t(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 A3t(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 IF=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 rMe=p(jr=>{"use strict";var g3t=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:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),y3t=jr&&jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xF=jr&&jr.__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"&&g3t(r,e,i[n]);return y3t(r,e),r}})(),Di=jr&&jr.__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)}WC.base64decode=H4t;function j4t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=tp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=tp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=tp[n|i>>6],e+=tp[i&63],r=0;break}return r&&(e+=tp[n],e+="=",r==1&&(e+="=")),e}WC.base64encode=j4t});var aFe=p(HF=>{"use strict";Object.defineProperty(HF,"__esModule",{value:!0});HF.utf8read=void 0;var Gte=t=>String.fromCharCode.apply(String,t);function V4t(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(Gte(i)),n=0);return r.length?(n&&r.push(Gte(i.slice(0,n))),r.join("")):Gte(i.slice(0,n))}HF.utf8read=V4t});var KR=p(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.WireType=eh.mergeBinaryOptions=eh.UnknownFieldHandler=void 0;var z4t;(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])})(z4t=eh.UnknownFieldHandler||(eh.UnknownFieldHandler={}));function $4t(t,e){return Object.assign(Object.assign({},t),e)}eh.mergeBinaryOptions=$4t;var W4t;(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"})(W4t=eh.WireType||(eh.WireType={}))});var VF=p(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.varint32read=Ea.varint32write=Ea.int64toString=Ea.int64fromString=Ea.varint64write=Ea.varint64read=void 0;function J4t(){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")}Ea.varint64read=J4t;function Y4t(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)}}Ea.varint64write=Y4t;var jF=65536*65536;function K4t(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>=jF&&(n=n+(i/jF|0),i=i%jF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}Ea.int64fromString=K4t;function X4t(t,e){if(e>>>0<=2097151)return""+(jF*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)}Ea.int64toString=X4t;function Z4t(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)}}Ea.varint32write=Z4t;function e5t(){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}Ea.varint32read=e5t});var pA=p(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.PbLong=dA.PbULong=dA.detectBi=void 0;var XR=VF(),Ar;function cFe(){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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}dA.detectBi=cFe;cFe();function uFe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lFe=/^-?[0-9]+$/,$F=4294967296,zF=2147483648, Line truncated
`)}};yU.RpcError=xre});var Tre=p(bU=>{"use strict";Object.defineProperty(bU,"__esModule",{value:!0});bU.mergeRpcOptions=void 0;var HFe=Nr();function C8t(t,e){if(!e)return t;let r={};EU(t,r),EU(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=HFe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=HFe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},EU(t.meta,r.meta),EU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}bU.mergeRpcOptions=C8t;function EU(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 Dre=p(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.Deferred=bE.DeferredState=void 0;var ah;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ah=bE.DeferredState||(bE.DeferredState={}));var Nre=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)}};bE.Deferred=Nre});var Pre=p(wU=>{"use strict";Object.defineProperty(wU,"__esModule",{value:!0});wU.RpcOutputStreamController=void 0;var jFe=Dre(),wE=Nr(),Ore=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){wE.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){wE.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){wE.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(){wE.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;wE.assert(e,"bad state"),wE.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 jFe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;wE.assert(i.state==jFe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};wU.RpcOutputStreamController=Ore});var Qre=p(iI=>{"use strict";var I8t=iI&&iI.__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(iI,"__esModule",{value:!0});iI.UnaryCall=void 0;var kre=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 I8t(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}})}};iI.UnaryCall=kre});var Mre=p(nI=>{"use strict";var S8t=nI&&nI.__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(nI,"__esModule",{value:!0});nI.ServerStreamingCal Line truncated
`.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($qt(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 cte=p((w$r,HLe)=>{var bF=FLe().default,GLe=ULe();bF.PrintVisitor=GLe.PrintVisitor;bF.print=GLe.print;HLe.exports=bF;function qLe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=bF.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=qLe,require.extensions[".hbs"]=qLe)});var tMe=p(SF=>{"use strict";Object.defineProperty(SF,"__esModule",{value:!0});SF.getProxyUrl=A3t;SF.checkBypass=eMe;function A3t(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 IF(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new IF(`http://${r}`)}else return}function eMe(t){if(!t.hostname)return!1;let e=t.hostname;if(g3t(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 g3t(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 IF=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(jr=>{"use strict";var y3t=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:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),E3t=jr&&jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xF=jr&&jr.__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"&&y3t(r,e,i[n]);return E3t(r,e),r}})(),Di=jr&&jr.__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)}WC.base64decode=j4t;function V4t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=tp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=tp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=tp[n|i>>6],e+=tp[i&63],r=0;break}return r&&(e+=tp[n],e+="=",r==1&&(e+="=")),e}WC.base64encode=V4t});var cFe=p(HF=>{"use strict";Object.defineProperty(HF,"__esModule",{value:!0});HF.utf8read=void 0;var Hte=t=>String.fromCharCode.apply(String,t);function z4t(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(Hte(i)),n=0);return r.length?(n&&r.push(Hte(i.slice(0,n))),r.join("")):Hte(i.slice(0,n))}HF.utf8read=z4t});var KR=p(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.WireType=eh.mergeBinaryOptions=eh.UnknownFieldHandler=void 0;var $4t;(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])})($4t=eh.UnknownFieldHandler||(eh.UnknownFieldHandler={}));function W4t(t,e){return Object.assign(Object.assign({},t),e)}eh.mergeBinaryOptions=W4t;var J4t;(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"})(J4t=eh.WireType||(eh.WireType={}))});var VF=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 Y4t(){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=Y4t;function K4t(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=K4t;var jF=65536*65536;function X4t(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>=jF&&(n=n+(i/jF|0),i=i%jF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ba.int64fromString=X4t;function Z4t(t,e){if(e>>>0<=2097151)return""+(jF*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=Z4t;function e5t(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=e5t;function t5t(){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=t5t});var pA=p(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.PbLong=dA.PbULong=dA.detectBi=void 0;var XR=VF(),Ar;function uFe(){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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}dA.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]+$/,$F=4294967296,zF=2147483648, Line truncated
`)}};yU.RpcError=Rre});var Nre=p(bU=>{"use strict";Object.defineProperty(bU,"__esModule",{value:!0});bU.mergeRpcOptions=void 0;var jFe=Nr();function I8t(t,e){if(!e)return t;let r={};EU(t,r),EU(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={},EU(t.meta,r.meta),EU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}bU.mergeRpcOptions=I8t;function EU(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 Ore=p(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.Deferred=bE.DeferredState=void 0;var ah;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ah=bE.DeferredState||(bE.DeferredState={}));var Dre=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)}};bE.Deferred=Dre});var kre=p(wU=>{"use strict";Object.defineProperty(wU,"__esModule",{value:!0});wU.RpcOutputStreamController=void 0;var VFe=Ore(),wE=Nr(),Pre=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){wE.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){wE.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){wE.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(){wE.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;wE.assert(e,"bad state"),wE.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;wE.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)}};wU.RpcOutputStreamController=Pre});var Lre=p(iI=>{"use strict";var S8t=iI&&iI.__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(iI,"__esModule",{value:!0});iI.UnaryCall=void 0;var Qre=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 S8t(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}})}};iI.UnaryCall=Qre});var Fre=p(nI=>{"use strict";var B8t=nI&&nI.__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(nI,"__esModule",{value:!0});nI.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 vUe(this.pattern,this.options)}parse(e,r){_U(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Rl;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+=Eie,s=!0;break;case"?":n+=Cie,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,G;T<e.length&&(G=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,G),o){if(G==="/")return!1;IUe[G]&&(n+="\\"),n+=G,o=!1;continue}switch(G){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=G;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,G),l){this.debug(" in class"),G==="!"&&T===h+1&&(G="^"),n+=G;continue}this.debug("call clearStateChar %j",u),S(),u=G,i.noext&&S();continue;case"(":{if(l){n+="(";continue}if(!u){n+="\\(";continue}let D={type:u,start:T-1,reStart:n.length,open:CUe[u].open,close:CUe[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+="\\"+G;continue}l=!0,h=T,f=n.length,n+=G;continue;case"]":if(T===h+1||!l){n+="\\"+G;continue}d=e.substring(h+1,T);try{RegExp("["+dGt(fGt(d))+"]"),n+=G}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),IUe[G]&&!(G==="^"&&l)&&(n+="\\"),n+=G;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,bie),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,H,L)=>(L||(L="\\"),H+H+L+"|")),this.debug(`tail=%j
%s`,T,T,m,n);let G=m.type==="*"?Eie:m.type==="?"?Cie:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+G+"\\("+T}S(),o&&(n+="\\\\");let N=cGt[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let G=c[T],D=n.slice(0,G.reStart),H=n.slice(G.reStart,G.reEnd-8),L=n.slice(G.reEnd),Z=n.slice(G.reEnd-8,G.reEnd)+L,W=D.split(")").length,De=D.split("(").length-W,de=L;for(let K=0;K<De;K++)de=de.replace(/\)[+*?]?/,"");L=de;let Qe=L===""&&r!==bie?"(?:$|\\/)":"";n=D+H+L+Qe+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===bie)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return lGt(e);let Q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Q),{_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?Eie:r.dot?oGt:aGt,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?hGt(a):a===Rl?Rl:a._src).reduce((a,c)=>(a[a.length-1]===Rl&&c===Rl||a.push(c),a),[]),o.forEach((a,c)=>{a!==Rl||o[c-1]===Rl||(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]=Rl))}),o.filter(a=>a!==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;wie.sep!=="/"&&(e=e.split(wie.sep).join("/")),e=e.split(SUe),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 gc.defaults(e).Minimatch}};gc.Minimatch=dI});var DUe=p((v7r,NUe)=>{NUe.exports=TUe;var Bie=require("fs"),{EventEmitter:pGt}=require("events"),{Minimatch:Sie}=_Ue(),{resolve:mGt}=require("path");function AGt(t,e){return new Promise((r,i)=>{Bie.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 xUe(t,e){return new Promise((r,i)=>{(e?Bie.stat:Bie.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?xUe(t,!1):null):r(null):r(o)})})}async function*RUe(t,e,r,i,n,s){let o=await AGt(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 xUe(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*RUe(u,e,r,i,n,!1)):yield{relative:l,absolute:f,stats:h}}}async function*gGt(t,e,r,i){yield*RUe("",t,e,r,i,!0)}function yGt(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 xU=class extends pGt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=yGt(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 Sie(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 Sie(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 Sie(s,{dot:!0}))}this.iterator=gGt(mGt(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
>>> 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){_U(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Rl;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+=bie,s=!0;break;case"?":n+=Iie,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,G;T<e.length&&(G=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,G),o){if(G==="/")return!1;SUe[G]&&(n+="\\"),n+=G,o=!1;continue}switch(G){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=G;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,G),l){this.debug(" in class"),G==="!"&&T===h+1&&(G="^"),n+=G;continue}this.debug("call clearStateChar %j",u),S(),u=G,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+="\\"+G;continue}l=!0,h=T,f=n.length,n+=G;continue;case"]":if(T===h+1||!l){n+="\\"+G;continue}d=e.substring(h+1,T);try{RegExp("["+pGt(hGt(d))+"]"),n+=G}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),SUe[G]&&!(G==="^"&&l)&&(n+="\\"),n+=G;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,wie),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,H,L)=>(L||(L="\\"),H+H+L+"|")),this.debug(`tail=%j
%s`,T,T,m,n);let G=m.type==="*"?bie:m.type==="?"?Iie:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+G+"\\("+T}S(),o&&(n+="\\\\");let N=uGt[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let G=c[T],D=n.slice(0,G.reStart),H=n.slice(G.reStart,G.reEnd-8),L=n.slice(G.reEnd),Z=n.slice(G.reEnd-8,G.reEnd)+L,W=D.split(")").length,De=D.split("(").length-W,de=L;for(let K=0;K<De;K++)de=de.replace(/\)[+*?]?/,"");L=de;let Qe=L===""&&r!==wie?"(?:$|\\/)":"";n=D+H+L+Qe+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===wie)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return fGt(e);let Q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Q),{_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?bie:r.dot?aGt:cGt,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?dGt(a):a===Rl?Rl:a._src).reduce((a,c)=>(a[a.length-1]===Rl&&c===Rl||a.push(c),a),[]),o.forEach((a,c)=>{a!==Rl||o[c-1]===Rl||(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]=Rl))}),o.filter(a=>a!==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;Cie.sep!=="/"&&(e=e.split(Cie.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 gc.defaults(e).Minimatch}};gc.Minimatch=dI});var OUe=p((_7r,DUe)=>{DUe.exports=NUe;var vie=require("fs"),{EventEmitter:mGt}=require("events"),{Minimatch:Bie}=xUe(),{resolve:AGt}=require("path");function gGt(t,e){return new Promise((r,i)=>{vie.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?vie.stat:vie.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 gGt(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*yGt(t,e,r,i){yield*TUe("",t,e,r,i,!0)}function EGt(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 xU=class extends mGt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=EGt(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 Bie(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 Bie(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 Bie(s,{dot:!0}))}this.iterator=yGt(AGt(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=M===-1?v.length:M}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let M=v.indexOf("*/",x);M!==-1?(x=M+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function ab(v){let I=Og(v.toString()),x=I.match(Kl);if(x||(x=I.match(Ku)),!x)throw new Error(`could not parse args in autoInject
Source:
`+I);let[,P]=x;return P.replace(/\s/g,"").split(ob).map(M=>M.replace(Dg,"").trim())}function mm(v,I){var x={};return Object.keys(v).forEach(P=>{var M=v[P],U,V=d(M),z=!V&&M.length===1||V&&M.length===0;if(Array.isArray(M))U=[...M],M=U.pop(),x[P]=U.concat(U.length>0?ee:M);else if(z)x[P]=M;else{if(U=ab(M),M.length===0&&!V&&U.length===0)throw new Error("autoInject task functions require explicit parameters.");V||U.pop(),x[P]=U.concat(ee)}function ee(Oe,Qt){var Vt=U.map(Mt=>Oe[Mt]);Vt.push(Qt),y(M)(...Vt)}}),Yl(x,I)}class cb{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):Pg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Pg(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 Pg(v,I){v.length=1,v.head=v.tail=I}function Am(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),M=0,U=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ve,Ne){V[Ve].push(Ne)}function ee(Ve,Ne){let ze=(...Ft)=>{Oe(Ve,ze),Ne(...Ft)};V[Ve].push(ze)}function Oe(Ve,Ne){if(!Ve)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[Ve]=[];V[Ve]=V[Ve].filter(ze=>ze!==Ne)}function Qt(Ve,...Ne){V[Ve].forEach(ze=>ze(...Ne))}var Vt=!1;function Mt(Ve,Ne,ze,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Lr,En;function kc(Vg,...mv){if(Vg)return ze?En(Vg):Lr();if(mv.length<=1)return Lr(mv[0]);Lr(mv)}var Ib=zt._createTaskItem(Ve,ze?kc:Ft||kc);if(Ne?zt._tasks.unshift(Ib):zt._tasks.push(Ib),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),ze||!Ft)return new Promise((Vg,mv)=>{Lr=Vg,En=mv})}function Pc(Ve){return function(Ne,...ze){M-=1;for(var Ft=0,Lr=Ve.length;Ft<Lr;Ft++){var En=Ve[Ft],kc=U.indexOf(En);kc===0?U.shift():kc>0&&U.splice(kc,1),En.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,En.data)}M<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function Cb(Ve){return Ve.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let jg=Ve=>Ne=>{if(!Ne)return new Promise((ze,Ft)=>{ee(Ve,(Lr,En)=>{if(Lr)return Ft(Lr);ze(En)})});Oe(Ve),z(Ve,Ne)};var pv=!1,zt={_tasks:new cb,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!1,Ne)):Mt(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!0,Ne)):Mt(Ve,!1,!0,Ne)},kill(){Oe(),zt._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!1,Ne)):Mt(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!0,Ne)):Mt(Ve,!0,!0,Ne)},remove(Ve){zt._tasks.remove(Ve)},process(){if(!pv){for(pv=!0;!zt.paused&&M<zt.concurrency&&zt._tasks.length;){var Ve=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Ft=0;Ft<ze;Ft++){var Lr=zt._tasks.shift();Ve.push(Lr),U.push(Lr),Ne.push(Lr.data)}M+=1,zt._tasks.length===0&&Qt("empty"),M===zt.concurrency&&Qt("saturated");var En=W(Pc(Ve));P(Ne,En)}pv=!1}},length(){return zt._tasks.length},running(){return M},workersList(){return U},idle(){return zt._tasks.length+M===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:jg("saturated")},unsaturated:{writable:!1,value:jg("unsaturated")},empty:{writable:!1,value:jg("empty")},drain:{writable:!1,value:jg("drain")},error:{writable:!1,value:jg("error")}}),zt}function gm(v,I){return Am(v,1,I)}function so(v,I,x){return Am(v,I,x)}function ub(v,I,x,P){P=T(P);var M=y(x);return Yr(v,(U,V,z)=>{M(I,U,(ee,Oe)=>{I=Oe,z(ee)})},U=>P(U,I))}var ka=g(ub,4);function kg(...v){var I=v.map(y);return function(...x){var P=this,M=x[x.length-1];return typeof M=="function"?x.pop():M=Pa(),ka(I,x,(U,V,z)=>{V.apply(P,U.concat((ee,...Oe)=>{z(ee,Oe)}))},(U,V)=>M(U,...V)),M[Es]}}function ve(...v){return kg(...v.reverse())}function F(v,I,x,P){return C(de(I),v,x,P)}var R=g(F,4);function q(v,I,x,P){var M=y(x);return R(v,I,(U,V)=>{M(U,(z,...ee)=>z?V(z):V(z,ee))},(U,V)=>{for(var z=[],ee=0;ee<V.length;ee++)V[ee]&&(z=z.concat(...V[ee]));return P(U,z)})}var j=g(q,4);function Y(v,I,x){return j(v,1/0,I,x)}var re=g(Y,3);function Be(v,I,x){return Line truncated
GFS4: `),console.error(t)});Zr[fs]||(GUe=global[fs]||[],jUe(Zr,GUe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||HUe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,OU,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),HUe()}return Object.defineProperty(e,OU,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){IE(Zr[fs]),require("assert").equal(Zr[fs].length,0)}));var GUe;global[fs]||jUe(global,Zr[fs]);Rie.exports=_ie(_Gt(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(Rie.exports=_ie(Zr),Zr.__patched=!0);function _ie(t){BGt(t),t.gracefulify=_ie,t.createReadStream=N,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(D,H,L){return typeof H=="function"&&(L=H,H=null),Z(D,H,L);function Z(W,De,de,Qe){return e(W,De,function(K){K&&(K.code==="EMFILE"||K.code==="ENFILE")?pI([Z,[W,De,de],K,Qe||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return i(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return s(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,H,L,Z){return typeof L=="function"&&(Z=L,L=0),W(D,H,L,Z);function W(De,de,Qe,K,Te){return a(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,H,L){typeof H=="function"&&(L=H,H=null);var Z=l.test(process.version)?function(de,Qe,K,Te){return u(de,W(de,Qe,K,Te))}:function(de,Qe,K,Te){return u(de,Qe,W(de,Qe,K,Te))};return Z(D,H,L);function W(De,de,Qe,K){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?pI([Z,[De,de,Qe],Te,K||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof Qe=="function"&&Qe.call(this,Te,Ie))}}}if(process.version.substr(0,4)==="v0.8"){var h=vGt(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,H){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.autoClose&&D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L),D.read())})}function C(D,H){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L))})}function N(D,H){return new t.ReadStream(D,H)}function Q(D,H){return new t.WriteStream(D,H)}var T=t.open;t.open=G;function G(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return T(De,de,Qe,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}return t}function pI(t){IE("ENQUEUE",t[0].name,t[1]),Zr[fs].push(t),xie()}var DU;function HUe(){for(var t=Date.now(),e=0;e<Zr[fs].length;++e)Zr[fs][e].length>2&&(Zr[fs][e][3]=t,Zr[fs][e][4]=t);xie()}function xie(){if(clearTimeout(DU),DU=void 0,Zr[fs].length!==0){var t=Zr[fs].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)IE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){IE("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?(IE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Zr[fs].push(t)}DU===void 0&&(DU=setTimeout(xie,0))}}});var PU=p((N7r,VUe)=>{"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}};mne.exports={AggregateError:pne,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 lzt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:fzt,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);L4e(e,"signal"),hzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[ozt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[azt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:czt.any||function(e){if(e.length===1)return e[0];let r=new uzt,i=()=>r.abort();return e.forEach(n=>{L4e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};mne.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var _o=p((GKr,U4e)=>{"use strict";var{format:dzt,inspect:rq,AggregateError:pzt}=ks(),mzt=globalThis.AggregateError||pzt,Azt=Symbol("kIsNodeError"),gzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yzt=/^([A-Z][a-z0-9]*)+$/,Ezt="__node_internal_",iq={};function vE(t,e){if(!t)throw new iq.ERR_INTERNAL_ASSERTION(e)}function M4e(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 bzt(t,e,r){if(typeof e=="function")return vE(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 vE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dzt(e,...r)}function ds(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(bzt(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[Azt]=!0,iq[t]=i}function F4e(t){let e=Ezt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function wzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mzt([e,t],e.message);return r.code=e.code,r}return t||e}var Ane=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iq.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ds("ERR_ASSERTION","%s",Error);ds("ERR_INVALID_ARG_TYPE",(t,e,r)=>{vE(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)vE(typeof c=="string","All expected entries have to be of type string"),gzt.includes(c)?n.push(c.toLowerCase()):yzt.test(c)?s.push(c):(vE(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+=zoe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=zoe(" "+n+"="+i[n]+`
`);return jt.from(r)};iS.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};iS.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,PA(e.mode&Ltr,6),100),jt.write(r,PA(e.uid,6),108),jt.write(r,PA(e.gid,6),116),jtr(e.size,r,124),jt.write(r,PA(e.mtime.getTime()/1e3|0,11),136),r[156]=O3+Gtr(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(FVe,r,_N),jt.copy(Ptr,r,$oe),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,PA(e.devmajor||0,6),329),jt.write(r,PA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,PA(qVe(r),6),148),r)};iS.decode=function(e,r,i){let n=e[156]===0?0:e[156]-O3,s=rS(e,0,100,r),o=OA(e,100,8),a=OA(e,108,8),c=OA(e,116,8),u=OA(e,124,12),l=OA(e,136,12),f=qtr(n),h=e[157]===0?null:rS(e,157,100,r),d=rS(e,265,32),m=rS(e,297,32),A=OA(e,329,8),y=OA(e,337,8),g=qVe(e);if(g===256)return null;if(g!==OA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Mtr(e))e[345]&&(s=rS(e,345,155,r)+"/"+s);else if(!Ftr(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 Mtr(t){return jt.equals(FVe,t.subarray(_N,_N+6))}function Ftr(t){return jt.equals(ktr,t.subarray(_N,_N+6))&&jt.equals(Qtr,t.subarray($oe,$oe+2))}function Utr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function qtr(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 Gtr(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 UVe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function qVe(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 PA(t,e){return t=t.toString(8),t.length>e?Otr.slice(0,e)+" ":Dtr.slice(0,e-t.length)+t+" "}function Htr(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function jtr(t,e,r){t.toString(8).length>11?Htr(t,e,r):jt.write(e,PA(t,11),r)}function Vtr(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 OA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Vtr(t);{for(;e<t.length&&t[e]===32;)e++;let i=Utr(UVe(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 rS(t,e,r,i){return jt.toString(t.subarray(e,UVe(t,0,e,e+r)),i)}function zoe(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 zVe=p((cei,VVe)=>{var{Writable:ztr,Readable:$tr,getStreamError:GVe}=Voe(),Wtr=Roe(),HVe=D3(),nS=Woe(),Jtr=HVe.alloc(0),Yoe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Wtr,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 Jtr;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 HVe.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)}},Koe=class extends $tr{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(GVe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=jVe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Xoe=class extends z 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(Por)||r.match(kor)||(e+=r)}),Buffer.from(e,"base64")}function Lor(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`+I);let[,P]=x;return P.replace(/\s/g,"").split(ob).map(M=>M.replace(Dg,"").trim())}function mm(v,I){var x={};return Object.keys(v).forEach(P=>{var M=v[P],U,V=d(M),z=!V&&M.length===1||V&&M.length===0;if(Array.isArray(M))U=[...M],M=U.pop(),x[P]=U.concat(U.length>0?ee:M);else if(z)x[P]=M;else{if(U=ab(M),M.length===0&&!V&&U.length===0)throw new Error("autoInject task functions require explicit parameters.");V||U.pop(),x[P]=U.concat(ee)}function ee(Oe,Qt){var Vt=U.map(Mt=>Oe[Mt]);Vt.push(Qt),y(M)(...Vt)}}),Yl(x,I)}class cb{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):Pg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Pg(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 Pg(v,I){v.length=1,v.head=v.tail=I}function Am(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),M=0,U=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ve,Ne){V[Ve].push(Ne)}function ee(Ve,Ne){let ze=(...Ft)=>{Oe(Ve,ze),Ne(...Ft)};V[Ve].push(ze)}function Oe(Ve,Ne){if(!Ve)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[Ve]=[];V[Ve]=V[Ve].filter(ze=>ze!==Ne)}function Qt(Ve,...Ne){V[Ve].forEach(ze=>ze(...Ne))}var Vt=!1;function Mt(Ve,Ne,ze,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Lr,bn;function kc(Vg,...mv){if(Vg)return ze?bn(Vg):Lr();if(mv.length<=1)return Lr(mv[0]);Lr(mv)}var Ib=zt._createTaskItem(Ve,ze?kc:Ft||kc);if(Ne?zt._tasks.unshift(Ib):zt._tasks.push(Ib),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),ze||!Ft)return new Promise((Vg,mv)=>{Lr=Vg,bn=mv})}function Pc(Ve){return function(Ne,...ze){M-=1;for(var Ft=0,Lr=Ve.length;Ft<Lr;Ft++){var bn=Ve[Ft],kc=U.indexOf(bn);kc===0?U.shift():kc>0&&U.splice(kc,1),bn.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,bn.data)}M<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function Cb(Ve){return Ve.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let jg=Ve=>Ne=>{if(!Ne)return new Promise((ze,Ft)=>{ee(Ve,(Lr,bn)=>{if(Lr)return Ft(Lr);ze(bn)})});Oe(Ve),z(Ve,Ne)};var pv=!1,zt={_tasks:new cb,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!1,Ne)):Mt(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!0,Ne)):Mt(Ve,!1,!0,Ne)},kill(){Oe(),zt._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!1,Ne)):Mt(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!0,Ne)):Mt(Ve,!0,!0,Ne)},remove(Ve){zt._tasks.remove(Ve)},process(){if(!pv){for(pv=!0;!zt.paused&&M<zt.concurrency&&zt._tasks.length;){var Ve=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Ft=0;Ft<ze;Ft++){var Lr=zt._tasks.shift();Ve.push(Lr),U.push(Lr),Ne.push(Lr.data)}M+=1,zt._tasks.length===0&&Qt("empty"),M===zt.concurrency&&Qt("saturated");var bn=W(Pc(Ve));P(Ne,bn)}pv=!1}},length(){return zt._tasks.length},running(){return M},workersList(){return U},idle(){return zt._tasks.length+M===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:jg("saturated")},unsaturated:{writable:!1,value:jg("unsaturated")},empty:{writable:!1,value:jg("empty")},drain:{writable:!1,value:jg("drain")},error:{writable:!1,value:jg("error")}}),zt}function gm(v,I){return Am(v,1,I)}function so(v,I,x){return Am(v,I,x)}function ub(v,I,x,P){P=T(P);var M=y(x);return Yr(v,(U,V,z)=>{M(I,U,(ee,Oe)=>{I=Oe,z(ee)})},U=>P(U,I))}var Qa=g(ub,4);function kg(...v){var I=v.map(y);return function(...x){var P=this,M=x[x.length-1];return typeof M=="function"?x.pop():M=ka(),Qa(I,x,(U,V,z)=>{V.apply(P,U.concat((ee,...Oe)=>{z(ee,Oe)}))},(U,V)=>M(U,...V)),M[Es]}}function ve(...v){return kg(...v.reverse())}function F(v,I,x,P){return C(de(I),v,x,P)}var R=g(F,4);function q(v,I,x,P){var M=y(x);return R(v,I,(U,V)=>{M(U,(z,...ee)=>z?V(z):V(z,ee))},(U,V)=>{for(var z=[],ee=0;ee<V.length;ee++)V[ee]&&(z=z.concat(...V[ee]));return P(U,z)})}var j=g(q,4);function Y(v,I,x){return j(v,1/0,I,x)}var re=g(Y,3);function Be(v,I,x){return Line truncated
GFS4: `),console.error(t)});Zr[fs]||(HUe=global[fs]||[],VUe(Zr,HUe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||jUe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,OU,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),jUe()}return Object.defineProperty(e,OU,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){IE(Zr[fs]),require("assert").equal(Zr[fs].length,0)}));var HUe;global[fs]||VUe(global,Zr[fs]);Tie.exports=xie(xGt(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(Tie.exports=xie(Zr),Zr.__patched=!0);function xie(t){vGt(t),t.gracefulify=xie,t.createReadStream=N,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(D,H,L){return typeof H=="function"&&(L=H,H=null),Z(D,H,L);function Z(W,De,de,Qe){return e(W,De,function(K){K&&(K.code==="EMFILE"||K.code==="ENFILE")?pI([Z,[W,De,de],K,Qe||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return i(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return s(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,H,L,Z){return typeof L=="function"&&(Z=L,L=0),W(D,H,L,Z);function W(De,de,Qe,K,Te){return a(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,H,L){typeof H=="function"&&(L=H,H=null);var Z=l.test(process.version)?function(de,Qe,K,Te){return u(de,W(de,Qe,K,Te))}:function(de,Qe,K,Te){return u(de,Qe,W(de,Qe,K,Te))};return Z(D,H,L);function W(De,de,Qe,K){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?pI([Z,[De,de,Qe],Te,K||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof Qe=="function"&&Qe.call(this,Te,Ie))}}}if(process.version.substr(0,4)==="v0.8"){var h=_Gt(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,H){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.autoClose&&D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L),D.read())})}function C(D,H){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L))})}function N(D,H){return new t.ReadStream(D,H)}function Q(D,H){return new t.WriteStream(D,H)}var T=t.open;t.open=G;function G(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return T(De,de,Qe,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}return t}function pI(t){IE("ENQUEUE",t[0].name,t[1]),Zr[fs].push(t),Rie()}var DU;function jUe(){for(var t=Date.now(),e=0;e<Zr[fs].length;++e)Zr[fs][e].length>2&&(Zr[fs][e][3]=t,Zr[fs][e][4]=t);Rie()}function Rie(){if(clearTimeout(DU),DU=void 0,Zr[fs].length!==0){var t=Zr[fs].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)IE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){IE("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?(IE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Zr[fs].push(t)}DU===void 0&&(DU=setTimeout(Rie,0))}}});var PU=p((D7r,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}};Ane.exports={AggregateError:mne,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 fzt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:hzt,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"),dzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[azt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[czt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:uzt.any||function(e){if(e.length===1)return e[0];let r=new lzt,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}};Ane.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var _o=p((HKr,q4e)=>{"use strict";var{format:pzt,inspect:rq,AggregateError:mzt}=ks(),Azt=globalThis.AggregateError||mzt,gzt=Symbol("kIsNodeError"),yzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ezt=/^([A-Z][a-z0-9]*)+$/,bzt="__node_internal_",iq={};function vE(t,e){if(!t)throw new iq.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 wzt(t,e,r){if(typeof e=="function")return vE(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 vE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:pzt(e,...r)}function ds(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(wzt(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[gzt]=!0,iq[t]=i}function U4e(t){let e=bzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Czt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Azt([e,t],e.message);return r.code=e.code,r}return t||e}var gne=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iq.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ds("ERR_ASSERTION","%s",Error);ds("ERR_INVALID_ARG_TYPE",(t,e,r)=>{vE(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)vE(typeof c=="string","All expected entries have to be of type string"),yzt.includes(c)?n.push(c.toLowerCase()):Ezt.test(c)?s.push(c):(vE(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+=$oe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=$oe(" "+n+"="+i[n]+`
`);return jt.from(r)};iS.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};iS.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,PA(e.mode&Mtr,6),100),jt.write(r,PA(e.uid,6),108),jt.write(r,PA(e.gid,6),116),Vtr(e.size,r,124),jt.write(r,PA(e.mtime.getTime()/1e3|0,11),136),r[156]=O3+Htr(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(UVe,r,_N),jt.copy(ktr,r,Woe),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,PA(e.devmajor||0,6),329),jt.write(r,PA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,PA(GVe(r),6),148),r)};iS.decode=function(e,r,i){let n=e[156]===0?0:e[156]-O3,s=rS(e,0,100,r),o=OA(e,100,8),a=OA(e,108,8),c=OA(e,116,8),u=OA(e,124,12),l=OA(e,136,12),f=Gtr(n),h=e[157]===0?null:rS(e,157,100,r),d=rS(e,265,32),m=rS(e,297,32),A=OA(e,329,8),y=OA(e,337,8),g=GVe(e);if(g===256)return null;if(g!==OA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Ftr(e))e[345]&&(s=rS(e,345,155,r)+"/"+s);else if(!Utr(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 Ftr(t){return jt.equals(UVe,t.subarray(_N,_N+6))}function Utr(t){return jt.equals(Qtr,t.subarray(_N,_N+6))&&jt.equals(Ltr,t.subarray(Woe,Woe+2))}function qtr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Gtr(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 Htr(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 PA(t,e){return t=t.toString(8),t.length>e?Ptr.slice(0,e)+" ":Otr.slice(0,e-t.length)+t+" "}function jtr(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function Vtr(t,e,r){t.toString(8).length>11?jtr(t,e,r):jt.write(e,PA(t,11),r)}function ztr(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 OA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return ztr(t);{for(;e<t.length&&t[e]===32;)e++;let i=qtr(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 rS(t,e,r,i){return jt.toString(t.subarray(e,qVe(t,0,e,e+r)),i)}function $oe(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((uei,zVe)=>{var{Writable:$tr,Readable:Wtr,getStreamError:HVe}=zoe(),Jtr=Toe(),jVe=D3(),nS=Joe(),Ytr=jVe.alloc(0),Koe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Jtr,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 Ytr;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)}},Xoe=class extends Wtr{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)}},Zoe=class extends $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(kor)||r.match(Qor)||(e+=r)}),Buffer.from(e,"base64")}function Mor(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var v4=p(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.SHA2_HASH_ALGOS=JA.RSA_SIGNATURE_ALGOS=JA.ECDSA_SIGNATURE_ALGOS=void 0;JA.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"};JA.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"};JA.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 ece=p(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});_4.RFC3161TimestampVerificationError=void 0;var Zae=class extends Error{};_4.RFC3161TimestampVerificationError=Zae});var EWe=p(xh=>{"use strict";var Mor=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]})),For=xh&&xh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uor=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"&&Mor(r,e,i[n]);return For(r,e),r}})();Object.defineProperty(xh,"__esModule",{value:!0});xh.TSTInfo=void 0;var yWe=Uor(CS()),qor=v4(),Gor=ece(),tce=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 qor.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=yWe.digest(this.messageImprintHashAlgorithm,e);if(!yWe.bufferEqual(r,this.messageImprintHashedMessage))throw new Gor.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};xh.TSTInfo=tce});var wWe=p(Rh=>{"use strict";var Hor=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]})),jor=Rh&&Rh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vor=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"&&Hor(r,e,i[n]);return jor(r,e),r}})();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.RFC3161Timestamp=void 0;var zor=I4(),rce=Vor(CS()),bWe=v4(),VN=ece(),$or=EWe(),Wor="1.2.840.113549.1.7.2",Jor="1.2.840.113549.1.9.16.1.4",Yor="1.2.840.113549.1.9.4",ice=class t{root;constructor(e){this.root=e}static parse(e){let r=zor.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 bWe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return bWe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new $or.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new VN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Wor)throw new VN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Jor)throw new VN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=rce.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!rce.bufferEqual(e,r))throw new VN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`)}});var v4=p(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.SHA2_HASH_ALGOS=JA.RSA_SIGNATURE_ALGOS=JA.ECDSA_SIGNATURE_ALGOS=void 0;JA.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"};JA.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"};JA.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 tce=p(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});_4.RFC3161TimestampVerificationError=void 0;var ece=class extends Error{};_4.RFC3161TimestampVerificationError=ece});var bWe=p(xh=>{"use strict";var For=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]})),Uor=xh&&xh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qor=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"&&For(r,e,i[n]);return Uor(r,e),r}})();Object.defineProperty(xh,"__esModule",{value:!0});xh.TSTInfo=void 0;var EWe=qor(CS()),Gor=v4(),Hor=tce(),rce=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 Gor.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 Hor.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};xh.TSTInfo=rce});var CWe=p(Rh=>{"use strict";var jor=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]})),Vor=Rh&&Rh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zor=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"&&jor(r,e,i[n]);return Vor(r,e),r}})();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.RFC3161Timestamp=void 0;var $or=I4(),ice=zor(CS()),wWe=v4(),VN=tce(),Wor=bWe(),Jor="1.2.840.113549.1.7.2",Yor="1.2.840.113549.1.9.16.1.4",Kor="1.2.840.113549.1.9.4",nce=class t{root;constructor(e){this.root=e}static parse(e){let r=$or.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 Wor.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new VN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Jor)throw new VN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Yor)throw new VN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=ice.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!ice.bufferEqual(e,r))throw new VN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD 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 FJe=p(MJe=>{"use strict";var que=Dp().Buffer;MJe._dbcs=Op;var gs=-1,LJe=-2,Pu=-10,qo=-1e3,PS=new Array(256),u1=-1;for(f5=0;f5<256;f5++)PS[f5]=gs;var f5;function Op(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]=PS.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(PS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(PS.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]===gs)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]===gs)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]===gs&&(f[h]=LJe)}}}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 UJe=p(FJe=>{"use strict";var Gue=Dp().Buffer;FJe._dbcs=Op;var gs=-1,MJe=-2,Pu=-10,qo=-1e3,PS=new Array(256),u1=-1;for(f5=0;f5<256;f5++)PS[f5]=gs;var f5;function Op(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]=PS.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(PS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(PS.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]===gs)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]===gs)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]===gs&&(f[h]=MJe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};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))}},Mp=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?elr:Zur);if(!n||i&&!fle.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(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(fle.includes(this.algorithm)&&this.digest.match(Xur)&&this.options.every(r=>r.match(tlr)))?"":`${this.algorithm}-${this.digest}${g1(this.options)}`}};function $Ye(t,e,r,i){let n=t!=="",s=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Mp.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Mp.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var w0=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 fle)this[n]&&(i=$Ye(i,r,e,this[n]))}else for(let n of Object.keys(this))i=$Ye(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:m1(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(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=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(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||ulr,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=vc;function vc(t,e){if(!t)return null;if(typeof t=="string")return lle(t,e);if(t.algorithm&&t.digest){let r=new w0;return r[t.algorithm]=[t],lle(m1(r,e),e)}else return lle(m1(t,e),e)}function lle(t,e){if(e?.single)return new Mp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Mp(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new w0);return r.isEmpty()?null:r}Mh.exports.stringify=m1;function m1(t,e){return t.algorithm&&t.digest?Mp.prototype.toString.call(t,e):typeof t=="string"?m1(vc(t,e),e):w0.prototype.toString.call(t,e)}Mh.exports.fromHex=rlr;function rlr(t,e,r){let i=g1(r?.options);return vc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Mh.exports.fromData=ilr;function ilr(t,e){let r=e?.algorithms||[...dle],i=g1(e?.options);return r.reduce((n,s)=>{let o=A1.createHash(s).update(t).digest("base64"),a=new Mp(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new w0)}Mh.exports.fromStream=nlr;function nlr(t,e){let r=ple(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=slr;function slr(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=A1.createHash(i).update(t).digest("base64"),s=vc({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))}},Mp=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?tlr:elr);if(!n||i&&!hle.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(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(hle.includes(this.algorithm)&&this.digest.match(Zur)&&this.options.every(r=>r.match(rlr)))?"":`${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=Mp.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Mp.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var w0=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 hle)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 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(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=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(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||llr,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=vc;function vc(t,e){if(!t)return null;if(typeof t=="string")return fle(t,e);if(t.algorithm&&t.digest){let r=new w0;return r[t.algorithm]=[t],fle(m1(r,e),e)}else return fle(m1(t,e),e)}function fle(t,e){if(e?.single)return new Mp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Mp(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new w0);return r.isEmpty()?null:r}Mh.exports.stringify=m1;function m1(t,e){return t.algorithm&&t.digest?Mp.prototype.toString.call(t,e):typeof t=="string"?m1(vc(t,e),e):w0.prototype.toString.call(t,e)}Mh.exports.fromHex=ilr;function ilr(t,e,r){let i=g1(r?.options);return vc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Mh.exports.fromData=nlr;function nlr(t,e){let r=e?.algorithms||[...ple],i=g1(e?.options);return r.reduce((n,s)=>{let o=A1.createHash(s).update(t).digest("base64"),a=new Mp(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new w0)}Mh.exports.fromStream=slr;function slr(t,e){let r=mle(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=olr;function olr(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=A1.createHash(i).update(t).digest("base64"),s=vc({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}.
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=olr;function olr(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=ple(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=ple;function ple(t=Object.create(null)){return new hle(t)}Mh.exports.create=alr;function alr(t){let e=t?.algorithms||[...dle],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 Mp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new w0)}}}var clr=A1.getHashes(),WYe=["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 ulr(t,e){return WYe.indexOf(t.toLowerCase())>=WYe.indexOf(e.toLowerCase())?t:e}});var Ale=p((Oni,ZYe)=>{var JYe=ile(),YYe=ule(),llr=Fh(),KYe={shared:!1,ignoreCargoCult:!0},flr={status:200,headers:{}},MS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},XYe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},mle=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=MS(r),this.response=XYe(i),this.options=n,this.policy=new JYe(this.request,this.response,KYe),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 JYe(MS(e),flr,KYe).storable()}satisfies(e){let r=MS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new YYe(this.request),n=new YYe(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?llr.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=MS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=MS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=MS(e),n=XYe(r);return!this.policy.revalidatedPolicy(i,n).modified}};ZYe.exports=mle});var t7e=p((Pni,e7e)=>{var gle=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"}};e7e.exports={NotCachedError:gle}});var f7e=p((kni,l7e)=>{"use strict";var r7e=typeof process=="object"&&process?process:{stdout:null,stderr:null},hlr=require("events"),i7e=require("stream"),n7e=require("string_decoder").StringDecoder,Fp=Symbol("EOF"),Up=Symbol("maybeEmitEnd"),ig=Symbol("emittedEnd"),B5=Symbol("emittingEnd"),y1=Symbol("emittedError"),v5=Symbol("closed"),s7e=Symbol("read"),_5=Symbol("flush"),o7e=Symbol("flushChunk"),_a=Symbol("encoding"),qp=Symbol("decoder"),x5=Symbol("flowing"),E1=Symbol("paused"),FS=Symbol("resume"),jn=Symbol("bufferLength"),yle=Symbol("bufferPush"),Ele=Symbol("bufferShift"),Ws=Symbol("objectMode"),Js=Symbol("destroyed"),ble=Symbol("emitData"),a7e=Symbol("emitEnd"),wle=Symbol("emitEnd2"),Gp=Symbol("async"),b1=t=>Promise.resolve().then(t),c7e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",dlr=c7e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),plr=c7e&&Symbol.iterator||Symbol("iterator not implemented"),mlr=t=>t==="end"||t==="finish"||t==="prefinish",Alr=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,glr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),R5=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[FS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Cle=class extends R5{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)}};l7e.exports=class u7e extends i7e{constructor(e){super(),this[x5]=!1,this[E1]=!1,this.pipes=[],this.buffer=[],this[Ws]=e&&e.objectMode||!1,this[Ws]?this[_a]=null:this[_a]=e& Line truncated
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=alr;function alr(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=mle(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=mle;function mle(t=Object.create(null)){return new dle(t)}Mh.exports.create=clr;function clr(t){let e=t?.algorithms||[...ple],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 Mp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new w0)}}}var ulr=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=>ulr.includes(t));function llr(t,e){return JYe.indexOf(t.toLowerCase())>=JYe.indexOf(e.toLowerCase())?t:e}});var gle=p((Pni,e7e)=>{var YYe=nle(),KYe=lle(),flr=Fh(),XYe={shared:!1,ignoreCargoCult:!0},hlr={status:200,headers:{}},MS=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},Ale=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=MS(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(MS(e),hlr,XYe).storable()}satisfies(e){let r=MS(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?flr.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=MS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=MS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=MS(e),n=ZYe(r);return!this.policy.revalidatedPolicy(i,n).modified}};e7e.exports=Ale});var r7e=p((kni,t7e)=>{var yle=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:yle}});var h7e=p((Qni,f7e)=>{"use strict";var i7e=typeof process=="object"&&process?process:{stdout:null,stderr:null},dlr=require("events"),n7e=require("stream"),s7e=require("string_decoder").StringDecoder,Fp=Symbol("EOF"),Up=Symbol("maybeEmitEnd"),ig=Symbol("emittedEnd"),B5=Symbol("emittingEnd"),y1=Symbol("emittedError"),v5=Symbol("closed"),o7e=Symbol("read"),_5=Symbol("flush"),a7e=Symbol("flushChunk"),xa=Symbol("encoding"),qp=Symbol("decoder"),x5=Symbol("flowing"),E1=Symbol("paused"),FS=Symbol("resume"),Vn=Symbol("bufferLength"),Ele=Symbol("bufferPush"),ble=Symbol("bufferShift"),Ws=Symbol("objectMode"),Js=Symbol("destroyed"),wle=Symbol("emitData"),c7e=Symbol("emitEnd"),Cle=Symbol("emitEnd2"),Gp=Symbol("async"),b1=t=>Promise.resolve().then(t),u7e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",plr=u7e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),mlr=u7e&&Symbol.iterator||Symbol("iterator not implemented"),Alr=t=>t==="end"||t==="finish"||t==="prefinish",glr=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ylr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),R5=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[FS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ile=class extends R5{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[x5]=!1,this[E1]=!1,this.pipes=[],this.buffer=[],this[Ws]=e&&e.objectMode||!1,this[Ws]?this[xa]=null:this[xa]=e& Line truncated
`+o.map(h=>{let d=JSON.stringify(h);return`${e8(d)} ${d}`}).join(`
`),c=async()=>{let h=Wpr(qh.join(t,"tmp"),i.tmpPrefix);return await gfe(qh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return wZe(h.target,{recursive:!0,force:!0})},l=async h=>{await Vpr(h.target,a,{flag:"wx"}),await gfe(qh.dirname(n),{recursive:!0}),await Xpr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>t8(t,h,!0))}xc.exports.insert=CZe;async function CZe(t,e,r,i={}){let{metadata:n,size:s,time:o}=i,a=L1(t,e),c={key:e,integrity:r&&$pr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await gfe(qh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Gpr(a,`
${e8(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return t8(t,c)}xc.exports.find=emr;async function emr(t,e){let r=L1(t,e);try{return(await Z5(r)).reduce((n,s)=>s&&s.key===e?t8(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}xc.exports.delete=tmr;function tmr(t,e,r={}){if(!r.removeFully)return CZe(t,e,null,r);let i=L1(t,e);return wZe(i,{recursive:!0,force:!0})}xc.exports.lsStream=IZe;function IZe(t){let e=yfe(t),r=new zpr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(X5(),K5)),n=await Afe(e);return await i(n,async s=>{let o=qh.join(e,s),a=await Afe(o);await i(a,async c=>{let u=qh.join(o,c),l=await Afe(u);await i(l,async f=>{let h=qh.join(u,f);try{let m=(await Z5(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=t8(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:mfe})},{concurrency:mfe})},{concurrency:mfe}),r.end(),r}).catch(i=>r.emit("error",i)),r}xc.exports.ls=rmr;async function rmr(t){return(await IZe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}xc.exports.bucketEntries=Z5;async function Z5(t,e){let r=await Hpr(t,"utf8");return imr(r,e)}function imr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||e8(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}xc.exports.bucketDir=yfe;function yfe(t){return qh.join(t,`index-v${Kpr}`)}xc.exports.bucketPath=L1;function L1(t,e){let r=SZe(e);return qh.join.apply(qh,[yfe(t)].concat(Ypr(r)))}xc.exports.hashKey=SZe;function SZe(t){return BZe(t,"sha256")}xc.exports.hashEntry=e8;function e8(t){return BZe(t,"sha1")}function BZe(t,e){return qpr.createHash(e).update(t).digest("hex")}function t8(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jpr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function Afe(t){return jpr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var KS=p(i8=>{"use strict";Object.defineProperty(i8,"__esModule",{value:!0});i8.LRUCache=void 0;var nmr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_Ze=new Set,Efe=typeof process=="object"&&process?process:{},xZe=(t,e,r,i)=>{typeof Efe.emitWarning=="function"?Efe.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},r8=globalThis.AbortController,vZe=globalThis.AbortSignal;if(typeof r8>"u"){vZe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},r8=class{constructor(){e()}signal=new vZe;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=Efe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,xZe("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 smr=t=>!_Ze.has(t),sg=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),RZe=t=>sg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?YS:null:null,YS=class extends Array{constructor(e){super(e),this.fill(0)}},bfe=class t{heap;length;static#e=!1;static create(e){let r=RZe(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]}},wfe=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:Q,ignoreFetchAbort:T,perf:G}=e;if(G!==void 0&&typeof G?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=G??nmr,r!==0&&!sg(r))throw new TypeError("max option must be a nonnegative integer");let D=r?RZe(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=bfe.create(r),this.#a=0,this.#c=0,typeof u=="fu Line truncated
`),c=async()=>{let h=Jpr(qh.join(t,"tmp"),i.tmpPrefix);return await yfe(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 zpr(h.target,a,{flag:"wx"}),await yfe(qh.dirname(n),{recursive:!0}),await Zpr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>t8(t,h,!0))}xc.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&&Wpr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await yfe(qh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Hpr(a,`
${e8(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return t8(t,c)}xc.exports.find=tmr;async function tmr(t,e){let r=L1(t,e);try{return(await Z5(r)).reduce((n,s)=>s&&s.key===e?t8(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}xc.exports.delete=rmr;function rmr(t,e,r={}){if(!r.removeFully)return IZe(t,e,null,r);let i=L1(t,e);return CZe(i,{recursive:!0,force:!0})}xc.exports.lsStream=SZe;function SZe(t){let e=Efe(t),r=new $pr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(X5(),K5)),n=await gfe(e);return await i(n,async s=>{let o=qh.join(e,s),a=await gfe(o);await i(a,async c=>{let u=qh.join(o,c),l=await gfe(u);await i(l,async f=>{let h=qh.join(u,f);try{let m=(await Z5(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=t8(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:Afe})},{concurrency:Afe})},{concurrency:Afe}),r.end(),r}).catch(i=>r.emit("error",i)),r}xc.exports.ls=imr;async function imr(t){return(await SZe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}xc.exports.bucketEntries=Z5;async function Z5(t,e){let r=await jpr(t,"utf8");return nmr(r,e)}function nmr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||e8(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}xc.exports.bucketDir=Efe;function Efe(t){return qh.join(t,`index-v${Xpr}`)}xc.exports.bucketPath=L1;function L1(t,e){let r=BZe(e);return qh.join.apply(qh,[Efe(t)].concat(Kpr(r)))}xc.exports.hashKey=BZe;function BZe(t){return vZe(t,"sha256")}xc.exports.hashEntry=e8;function e8(t){return vZe(t,"sha1")}function vZe(t,e){return Gpr.createHash(e).update(t).digest("hex")}function t8(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Ypr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function gfe(t){return Vpr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var KS=p(i8=>{"use strict";Object.defineProperty(i8,"__esModule",{value:!0});i8.LRUCache=void 0;var smr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xZe=new Set,bfe=typeof process=="object"&&process?process:{},RZe=(t,e,r,i)=>{typeof bfe.emitWarning=="function"?bfe.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},r8=globalThis.AbortController,_Ze=globalThis.AbortSignal;if(typeof r8>"u"){_Ze=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},r8=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=bfe.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 omr=t=>!xZe.has(t),sg=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),TZe=t=>sg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?YS:null:null,YS=class extends Array{constructor(e){super(e),this.fill(0)}},wfe=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]}},Cfe=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:Q,ignoreFetchAbort:T,perf:G}=e;if(G!==void 0&&typeof G?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=G??smr,r!==0&&!sg(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=wfe.create(r),this.#a=0,this.#c=0,typeof u=="fu Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var KZe=p((soi,kfe)=>{"use strict";var $Ze=JS(),WZe=M1(),JZe=zZe(),qmr=w1(),{PassThrough:Gmr}=_le(),Hmr=I0(),YZe=t=>({algorithms:["sha512"],...t});kfe.exports=jmr;async function jmr(t,e,r,i={}){let{memoize:n}=i;i=YZe(i);let s=await JZe(t,r,i),o=await $Ze.insert(t,e,s.integrity,{...i,size:s.size});return n&&WZe.put(t,o,r,i),s.integrity}kfe.exports.stream=Vmr;function Vmr(t,e,r={}){let{memoize:i}=r;r=YZe(r);let n,s,o,a,c=new Hmr;if(i){let l=new Gmr().on("collect",f=>{a=f});c.push(l)}let u=JZe.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 qmr({async flush(){if(!o){let l=await $Ze.insert(t,e,n,{...r,size:s});i&&a&&WZe.put(t,l,a,r),c.emit("integrity",n),c.emit("size",s)}}})),c}});var ZZe=p(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.range=D0.balanced=void 0;var zmr=(t,e,r)=>{let i=t instanceof RegExp?XZe(t,r):t,n=e instanceof RegExp?XZe(e,r):e,s=i!==null&&n!=null&&(0,D0.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)}};D0.balanced=zmr;var XZe=(t,e)=>{let r=e.match(t);return r?r[0]:null},$mr=(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};D0.range=$mr});var Mfe=p(oB=>{"use strict";Object.defineProperty(oB,"__esModule",{value:!0});oB.EXPANSION_MAX=void 0;oB.expand=oAr;var eet=ZZe(),tet="\0SLASH"+Math.random()+"\0",ret="\0OPEN"+Math.random()+"\0",Lfe="\0CLOSE"+Math.random()+"\0",iet="\0COMMA"+Math.random()+"\0",net="\0PERIOD"+Math.random()+"\0",Wmr=new RegExp(tet,"g"),Jmr=new RegExp(ret,"g"),Ymr=new RegExp(Lfe,"g"),Kmr=new RegExp(iet,"g"),Xmr=new RegExp(net,"g"),Zmr=/\\\\/g,eAr=/\\{/g,tAr=/\\}/g,rAr=/\\,/g,iAr=/\\./g;oB.EXPANSION_MAX=1e5;function Qfe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function nAr(t){return t.replace(Zmr,tet).replace(eAr,ret).replace(tAr,Lfe).replace(rAr,iet).replace(iAr,net)}function sAr(t){return t.replace(Wmr,"\\").replace(Jmr,"{").replace(Ymr,"}").replace(Kmr,",").replace(Xmr,".")}function set(t){if(!t)return[""];let e=[],r=(0,eet.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=set(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function oAr(t,e={}){if(!t)return[];let{max:r=oB.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),V1(nAr(t),r,!0).map(sAr)}function aAr(t){return"{"+t+"}"}function cAr(t){return/^-?0\d/.test(t)}function uAr(t,e){return t<=e}function lAr(t,e){return t>=e}function V1(t,e,r){let i=[],n=(0,eet.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+Lfe+n.post,V1(t,e,!0)):[t];let f;if(u)f=n.body.split(/\.\./);else if(f=set(n.body),f.length===1&&f[0]!==void 0&&(f=V1(f[0],e,!1).map(aAr),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=Qfe(f[0]),m=Qfe(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(Qfe(f[2])):1,g=uAr;m<d&&(y*=-1,g=lAr);let C=f.some(cAr);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 Q=A-N.length;if(Q>0){let T=new Array(Q+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 oet=p(p8=>{"use strict";Object.defineProperty(p8,"__esModule",{value:!0});p8.assertValidPattern=void 0;var fAr=1024*64,hAr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>fAr)throw new TypeError("pattern is too long")};p8.assertValidPattern=hAr});var cet=p(m8=>{"use strict";Object.defineProperty(m8,"__esModule",{value:!0});m8.parseClass=void 0;var dAr={"[: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,"\\$&"),pAr=t=>t.replace(/[-[\]{}() Line truncated
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var XZe=p((ooi,Qfe)=>{"use strict";var WZe=JS(),JZe=M1(),YZe=$Ze(),Gmr=w1(),{PassThrough:Hmr}=xle(),jmr=I0(),KZe=t=>({algorithms:["sha512"],...t});Qfe.exports=Vmr;async function Vmr(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}Qfe.exports.stream=zmr;function zmr(t,e,r={}){let{memoize:i}=r;r=KZe(r);let n,s,o,a,c=new jmr;if(i){let l=new Hmr().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 Gmr({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(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.range=D0.balanced=void 0;var $mr=(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,D0.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)}};D0.balanced=$mr;var ZZe=(t,e)=>{let r=e.match(t);return r?r[0]:null},Wmr=(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};D0.range=Wmr});var Ffe=p(oB=>{"use strict";Object.defineProperty(oB,"__esModule",{value:!0});oB.EXPANSION_MAX=void 0;oB.expand=aAr;var tet=eet(),ret="\0SLASH"+Math.random()+"\0",iet="\0OPEN"+Math.random()+"\0",Mfe="\0CLOSE"+Math.random()+"\0",net="\0COMMA"+Math.random()+"\0",set="\0PERIOD"+Math.random()+"\0",Jmr=new RegExp(ret,"g"),Ymr=new RegExp(iet,"g"),Kmr=new RegExp(Mfe,"g"),Xmr=new RegExp(net,"g"),Zmr=new RegExp(set,"g"),eAr=/\\\\/g,tAr=/\\{/g,rAr=/\\}/g,iAr=/\\,/g,nAr=/\\./g;oB.EXPANSION_MAX=1e5;function Lfe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function sAr(t){return t.replace(eAr,ret).replace(tAr,iet).replace(rAr,Mfe).replace(iAr,net).replace(nAr,set)}function oAr(t){return t.replace(Jmr,"\\").replace(Ymr,"{").replace(Kmr,"}").replace(Xmr,",").replace(Zmr,".")}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 aAr(t,e={}){if(!t)return[];let{max:r=oB.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),V1(sAr(t),r,!0).map(oAr)}function cAr(t){return"{"+t+"}"}function uAr(t){return/^-?0\d/.test(t)}function lAr(t,e){return t<=e}function fAr(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+Mfe+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(cAr),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=Lfe(f[0]),m=Lfe(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(Lfe(f[2])):1,g=lAr;m<d&&(y*=-1,g=fAr);let C=f.some(uAr);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 Q=A-N.length;if(Q>0){let T=new Array(Q+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(p8=>{"use strict";Object.defineProperty(p8,"__esModule",{value:!0});p8.assertValidPattern=void 0;var hAr=1024*64,dAr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hAr)throw new TypeError("pattern is too long")};p8.assertValidPattern=dAr});var uet=p(m8=>{"use strict";Object.defineProperty(m8,"__esModule",{value:!0});m8.parseClass=void 0;var pAr={"[: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,"\\$&"),mAr=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,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,C8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(FAr))?n=r.dot?qAr:UAr:(i=e.match(RAr))?n=(r.nocase?r.dot?OAr:DAr:r.dot?NAr:TAr)(i[1]):(i=e.match(GAr))?n=(r.nocase?r.dot?jAr:HAr:r.dot?VAr:zAr)(i):(i=e.match(PAr))?n=r.dot?QAr:kAr:(i=e.match(LAr))&&(n=MAr);let s=met.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?WAr:r.dot?JAr:YAr,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"?rgr(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=O0;var igr=qfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return igr.AST}});var ngr=Gfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return ngr.escape}});var sgr=g8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return sgr.unescape}});Pe.minimatch.AST=met.AST;Pe.minimatch.Minimatch=O0;Pe.minimatch.escape=vAr.escape;Pe.minimatch.unescape=_Ar.unescape});var Bet=p(Vo=>{"use strict";var ogr=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 Eet=typeof process=="object"&&process?process:{stdout:null,stderr:null},Jfe=require("node:events"),Iet=ogr(require("node:stream")),agr=require("node:string_decoder"),cgr=t=>!!t&&typeof t=="object"&&(t instanceof R8||t instanceof Iet.default||(0,Vo.isReadable)(t)||(0,Vo.isWritable)(t));Vo.isStream=cgr;var ugr=t=>!!t&&typeof t=="object"&&t instanceof Jfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Iet.default.Writable.prototype.pipe;Vo.isReadable=ugr;var lgr=t=>!!t&&typeof t=="object"&&t instanceof Jfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Vo.isWritable=lgr;var tm=Symbol("EOF"),rm=Symbol("maybeEmitEnd"),lg=Symbol("emittedEnd"),I8=Symbol("emittingEnd"),$1=Symbol("emittedError"),S8=Symbol("closed"),bet=Symbol("read"),B8=Symbol("flush"),wet=Symbol("flushChunk"),Gl=Symbol("encoding"),aB=Symbol("decoder"),$n=Symbol("flowing"),W1=Symbol("paused"),cB=Symbol("resume"),Wn=Symbol("buffer"),jo=Symbol("pipes"),Jn=Symbol("bufferLength"),Hfe=Symbol("bufferPush"),v8=Symbol("bufferShift"),Zs=Symbol("objectMode"),qi=Symbol("destroyed"),jfe=Symbol("error"),Vfe=Symbol("emitData"),Cet=Symbol("emitEnd"),zfe=Symbol("emitEnd2"),Hh=Symbol("async"),$fe=Symbol("abort"),_8=Symbol("aborted"),J1=Symbol("signal"),P0=Symbol("dataListeners"),Rc=Symbol("discarded"),Y1=t=>Promise.resolve().then(t),fgr=t=>t(),hgr=t=>t==="end"||t==="finish"||t==="prefinish",dgr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,pgr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),x8=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[cB](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra Line truncated
>>> 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,C8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(UAr))?n=r.dot?GAr:qAr:(i=e.match(TAr))?n=(r.nocase?r.dot?PAr:OAr:r.dot?DAr:NAr)(i[1]):(i=e.match(HAr))?n=(r.nocase?r.dot?VAr:jAr:r.dot?zAr:$Ar)(i):(i=e.match(kAr))?n=r.dot?LAr:QAr:(i=e.match(MAr))&&(n=FAr);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?JAr:r.dot?YAr:KAr,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"?igr(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=O0;var ngr=Gfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return ngr.AST}});var sgr=Hfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return sgr.escape}});var ogr=g8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return ogr.unescape}});Pe.minimatch.AST=Aet.AST;Pe.minimatch.Minimatch=O0;Pe.minimatch.escape=_Ar.escape;Pe.minimatch.unescape=xAr.unescape});var vet=p(Vo=>{"use strict";var agr=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},Yfe=require("node:events"),Bet=agr(require("node:stream")),cgr=require("node:string_decoder"),ugr=t=>!!t&&typeof t=="object"&&(t instanceof R8||t instanceof Bet.default||(0,Vo.isReadable)(t)||(0,Vo.isWritable)(t));Vo.isStream=ugr;var lgr=t=>!!t&&typeof t=="object"&&t instanceof Yfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Bet.default.Writable.prototype.pipe;Vo.isReadable=lgr;var fgr=t=>!!t&&typeof t=="object"&&t instanceof Yfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Vo.isWritable=fgr;var tm=Symbol("EOF"),rm=Symbol("maybeEmitEnd"),lg=Symbol("emittedEnd"),I8=Symbol("emittingEnd"),$1=Symbol("emittedError"),S8=Symbol("closed"),wet=Symbol("read"),B8=Symbol("flush"),Cet=Symbol("flushChunk"),Gl=Symbol("encoding"),aB=Symbol("decoder"),Wn=Symbol("flowing"),W1=Symbol("paused"),cB=Symbol("resume"),Jn=Symbol("buffer"),jo=Symbol("pipes"),Yn=Symbol("bufferLength"),jfe=Symbol("bufferPush"),v8=Symbol("bufferShift"),Zs=Symbol("objectMode"),qi=Symbol("destroyed"),Vfe=Symbol("error"),zfe=Symbol("emitData"),Iet=Symbol("emitEnd"),$fe=Symbol("emitEnd2"),Hh=Symbol("async"),Wfe=Symbol("abort"),_8=Symbol("aborted"),J1=Symbol("signal"),P0=Symbol("dataListeners"),Rc=Symbol("discarded"),Y1=t=>Promise.resolve().then(t),hgr=t=>t(),dgr=t=>t==="end"||t==="finish"||t==="prefinish",pgr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,mgr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),x8=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[cB](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra Line truncated
\r
`);if(h===-1){oG("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(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}oG("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()})}pB.parseProxyResponse=CEr});var Vtt=p(qu=>{"use strict";var IEr=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]})),SEr=qu&&qu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Htt=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)&&IEr(e,t,r);return SEr(e,t),e},jtt=qu&&qu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qu,"__esModule",{value:!0});qu.HttpsProxyAgent=void 0;var A2=Htt(require("net")),qtt=Htt(require("tls")),BEr=jtt(require("assert")),vEr=jtt(Py()),_Er=nx(),xEr=require("url"),REr=Utt(),g2=(0,vEr.default)("https-proxy-agent"),aG=class extends _Er.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xEr.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?Gtt(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=qtt.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
`),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(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}oG("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()})}pB.parseProxyResponse=IEr});var ztt=p(qu=>{"use strict";var SEr=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]})),BEr=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)&&SEr(e,t,r);return BEr(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")),vEr=Vtt(require("assert")),_Er=Vtt(Py()),xEr=nx(),REr=require("url"),TEr=qtt(),g2=(0,_Er.default)("https-proxy-agent"),aG=class extends xEr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new REr.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,REr.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",TEr),r.secureEndpoint){g2("Upgrading socket connection to TLS");let h=r.servername||r.host;return qtt.connect({...Gtt(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,BEr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};aG.protocols=["http","https"];qu.HttpsProxyAgent=aG;function TEr(t){t.resume()}function Gtt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var Jtt=p(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var ztt=require("buffer"),F0={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."};sm.ERRORS=F0;function NEr(t){if(!ztt.Buffer.isEncoding(t))throw new Error(F0.INVALID_ENCODING)}sm.checkEncoding=NEr;function $tt(t){return typeof t=="number"&&isFinite(t)&&kEr(t)}sm.isFiniteInteger=$tt;function Wtt(t,e){if(typeof t=="number"){if(!$tt(t)||t<0)throw new Error(e?F0.INVALID_OFFSET:F0.INVALID_LENGTH)}else throw new Error(e?F0.INVALID_OFFSET_NON_NUMBER:F0.INVALID_LENGTH_NON_NUMBER)}function DEr(t){Wtt(t,!1)}sm.checkLengthValue=DEr;function OEr(t){Wtt(t,!0)}sm.checkOffsetValue=OEr;function PEr(t,e){if(t<0||t>e.length)throw new Error(F0.INVALID_TARGET_OFFSET)}sm.checkTargetOffset=PEr;function kEr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function QEr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof ztt.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}sm.bigIntAndBufferInt64Check=QEr});var Ktt=p(Mhe=>{"use strict";Object.defineProperty(Mhe,"__esModule",{value:!0});var bt=Jtt(),Ytt=4096,LEr="utf8",Lhe=class t{constructor(e){if(this.length=0,this._encoding=LEr,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(Ytt);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Ytt)}}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)}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
`;let c=(0,TEr.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",NEr),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,vEr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};aG.protocols=["http","https"];qu.HttpsProxyAgent=aG;function NEr(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(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var $tt=require("buffer"),F0={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."};sm.ERRORS=F0;function DEr(t){if(!$tt.Buffer.isEncoding(t))throw new Error(F0.INVALID_ENCODING)}sm.checkEncoding=DEr;function Wtt(t){return typeof t=="number"&&isFinite(t)&&QEr(t)}sm.isFiniteInteger=Wtt;function Jtt(t,e){if(typeof t=="number"){if(!Wtt(t)||t<0)throw new Error(e?F0.INVALID_OFFSET:F0.INVALID_LENGTH)}else throw new Error(e?F0.INVALID_OFFSET_NON_NUMBER:F0.INVALID_LENGTH_NON_NUMBER)}function OEr(t){Jtt(t,!1)}sm.checkLengthValue=OEr;function PEr(t){Jtt(t,!0)}sm.checkOffsetValue=PEr;function kEr(t,e){if(t<0||t>e.length)throw new Error(F0.INVALID_TARGET_OFFSET)}sm.checkTargetOffset=kEr;function QEr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function LEr(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}.`)}sm.bigIntAndBufferInt64Check=LEr});var Xtt=p(Fhe=>{"use strict";Object.defineProperty(Fhe,"__esModule",{value:!0});var bt=Ytt(),Ktt=4096,MEr="utf8",Mhe=class t{constructor(e){if(this.length=0,this._encoding=MEr,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(Ktt);else{if(typeof e<"u")throw new Error(bt.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 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)}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,ke.braceExpand)(this.pattern,this.options)}parse(e){(0,sH.assertValidPattern)(e);let r=this.options;if(e==="**")return ke.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(dIr))?n=r.dot?mIr:pIr:(i=e.match(iIr))?n=(r.nocase?r.dot?aIr:oIr:r.dot?sIr:nIr)(i[1]):(i=e.match(AIr))?n=(r.nocase?r.dot?yIr:gIr:r.dot?EIr:bIr)(i):(i=e.match(cIr))?n=r.dot?lIr:uIr:(i=e.match(fIr))&&(n=hIr);let s=unt.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?CIr:r.dot?IIr:SIr,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"?TIr(f):f===ke.GLOBSTAR?ke.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==ke.GLOBSTAR||m===ke.GLOBSTAR||(m===void 0?d!==void 0&&d!==ke.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==ke.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=ke.GLOBSTAR))});let l=u.filter(f=>f!==ke.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 ke.minimatch.defaults(e).Minimatch}};ke.Minimatch=$0;var NIr=upe();Object.defineProperty(ke,"AST",{enumerable:!0,get:function(){return NIr.AST}});var DIr=lpe();Object.defineProperty(ke,"escape",{enumerable:!0,get:function(){return DIr.escape}});var OIr=eH();Object.defineProperty(ke,"unescape",{enumerable:!0,get:function(){return OIr.unescape}});ke.minimatch.AST=unt.AST;ke.minimatch.Minimatch=$0;ke.minimatch.escape=eIr.escape;ke.minimatch.unescape=tIr.unescape});var dpe=p($u=>{"use strict";var pnt=$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 mnt=pnt(require("crypto")),PIr=dnt(),oH=pnt(require("util")),aH=ed(),W0=zl();$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(kIr(r))throw new aH.ValueError("duplicate key IDs found");if(i<1)throw new aH.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&&oH.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&oH.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(!W0.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 kIr(t){return new Set(t).size!==t.length}var fpe=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 aH.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&&oH.default.isDeepStrictEqual(this.paths,e.paths)&&oH.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>LIr(e,r));if(this.pathHashPrefixes){let i=mnt.default.createHash("sha256").update( Line truncated
>>> 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,ke.braceExpand)(this.pattern,this.options)}parse(e){(0,sH.assertValidPattern)(e);let r=this.options;if(e==="**")return ke.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(pIr))?n=r.dot?AIr:mIr:(i=e.match(nIr))?n=(r.nocase?r.dot?cIr:aIr:r.dot?oIr:sIr)(i[1]):(i=e.match(gIr))?n=(r.nocase?r.dot?EIr:yIr:r.dot?bIr:wIr)(i):(i=e.match(uIr))?n=r.dot?fIr:lIr:(i=e.match(hIr))&&(n=dIr);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?IIr:r.dot?SIr:BIr,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"?NIr(f):f===ke.GLOBSTAR?ke.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==ke.GLOBSTAR||m===ke.GLOBSTAR||(m===void 0?d!==void 0&&d!==ke.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==ke.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=ke.GLOBSTAR))});let l=u.filter(f=>f!==ke.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 ke.minimatch.defaults(e).Minimatch}};ke.Minimatch=$0;var DIr=lpe();Object.defineProperty(ke,"AST",{enumerable:!0,get:function(){return DIr.AST}});var OIr=fpe();Object.defineProperty(ke,"escape",{enumerable:!0,get:function(){return OIr.escape}});var PIr=eH();Object.defineProperty(ke,"unescape",{enumerable:!0,get:function(){return PIr.unescape}});ke.minimatch.AST=lnt.AST;ke.minimatch.Minimatch=$0;ke.minimatch.escape=tIr.escape;ke.minimatch.unescape=rIr.unescape});var ppe=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")),kIr=pnt(),oH=mnt(require("util")),aH=ed(),W0=zl();$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(QIr(r))throw new aH.ValueError("duplicate key IDs found");if(i<1)throw new aH.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&&oH.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&oH.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(!W0.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 QIr(t){return new Set(t).size!==t.length}var hpe=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 aH.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&&oH.default.isDeepStrictEqual(this.paths,e.paths)&&oH.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>MIr(e,r));if(this.pathHashPrefixes){let i=Ant.default.createHash("sha256").update( Line truncated
`).join(`
`+s),t.push(n+"m+"+EH.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=FSr()+e+" "+t[0]}function FSr(){return ts.inspectOpts.hideDate?"":new Date().toISOString()+" "}function USr(...t){return process.stderr.write(yH.formatWithOptions(ts.inspectOpts,...t)+`
`)}function qSr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function GSr(){return process.env.DEBUG}function HSr(t){t.inspectOpts={};let e=Object.keys(ts.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ts.inspectOpts[e[r]]}EH.exports=Ope()(ts);var{formatters:Tnt}=EH.exports;Tnt.o=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Tnt.O=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts)}});var kpe=p((Cci,Ppe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ppe.exports=Rnt():Ppe.exports=Nnt()});var Ont=p((Ici,Dnt)=>{var jSr=require("dns"),VSr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],zSr=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:jSr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>VSr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Dnt.exports=zSr});var Lpe=p((Sci,Mnt)=>{var Pnt=ile(),knt=ule(),$Sr=Fh(),Qnt={shared:!1,ignoreCargoCult:!0},WSr={status:200,headers:{}},qB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Lnt=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Qpe=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=qB(r),this.response=Lnt(i),this.options=n,this.policy=new Pnt(this.request,this.response,Qnt),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 Pnt(qB(e),WSr,Qnt).storable()}satisfies(e){let r=qB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new knt(this.request),n=new knt(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?$Sr.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=qB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=qB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=qB(e),n=Lnt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Mnt.exports=Qpe});var Unt=p((Bci,Fnt)=>{var Mpe=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"}};Fnt.exports={NotCachedError:Mpe}});var Upe=p((vci,qnt)=>{"use strict";var JSr=I0(),Fpe=class extends JSr{#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)}};qnt.exports=Fpe});var Hnt=p((_ci,Gnt)=>{var{URL:YSr,format:KSr}=require("url"),XSr={auth:!1,fragment:!1,search:!0,unicode:!1},ZSr=t=>{let e=new YSr(t.url);return`make-fetch-happen:request-cache:${KSr(e,XSr)}`};Gnt.exports=ZSr});var jnt=p((xci,eBr)=>{eBr.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 wH=p((Rci,znt)=>{var{Minipass:tBr}=Uo(),bH=Lp(),{promiseRetry:rBr}=The(),iBr=Fh(),{log:Vnt}=r Line truncated
`).forEach(r=>{r.match(Gvr)||r.match(Hvr)||(e+=r)}),Buffer.from(e,"base64")}function Vvr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`+s),t.push(n+"m+"+EH.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=USr()+e+" "+t[0]}function USr(){return rs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function qSr(...t){return process.stderr.write(yH.formatWithOptions(rs.inspectOpts,...t)+`
`)}function GSr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function HSr(){return process.env.DEBUG}function jSr(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]]}EH.exports=Ppe()(rs);var{formatters:Nnt}=EH.exports;Nnt.o=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nnt.O=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts)}});var Qpe=p((Ici,kpe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kpe.exports=Tnt():kpe.exports=Dnt()});var Pnt=p((Sci,Ont)=>{var VSr=require("dns"),zSr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],$Sr=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:VSr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>zSr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Ont.exports=$Sr});var Mpe=p((Bci,Fnt)=>{var knt=nle(),Qnt=lle(),WSr=Fh(),Lnt={shared:!1,ignoreCargoCult:!0},JSr={status:200,headers:{}},qB=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},Lpe=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=qB(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(qB(e),JSr,Lnt).storable()}satisfies(e){let r=qB(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?WSr.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=qB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=qB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=qB(e),n=Mnt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Fnt.exports=Lpe});var qnt=p((vci,Unt)=>{var Fpe=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:Fpe}});var qpe=p((_ci,Gnt)=>{"use strict";var YSr=I0(),Upe=class extends YSr{#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=Upe});var jnt=p((xci,Hnt)=>{var{URL:KSr,format:XSr}=require("url"),ZSr={auth:!1,fragment:!1,search:!0,unicode:!1},eBr=t=>{let e=new KSr(t.url);return`make-fetch-happen:request-cache:${XSr(e,ZSr)}`};Hnt.exports=eBr});var Vnt=p((Rci,tBr)=>{tBr.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 wH=p((Tci,$nt)=>{var{Minipass:rBr}=Uo(),bH=Lp(),{promiseRetry:iBr}=Nhe(),nBr=Fh(),{log:znt}=r Line truncated
`).forEach(r=>{r.match(Hvr)||r.match(jvr)||(e+=r)}),Buffer.from(e,"base64")}function zvr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var VH=p(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.SHA2_HASH_ALGOS=vg.RSA_SIGNATURE_ALGOS=vg.ECDSA_SIGNATURE_ALGOS=void 0;vg.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"};vg.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"};vg.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 _me=p(zH=>{"use strict";Object.defineProperty(zH,"__esModule",{value:!0});zH.RFC3161TimestampVerificationError=void 0;var vme=class extends Error{};zH.RFC3161TimestampVerificationError=vme});var Gst=p(rd=>{"use strict";var zvr=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]})),$vr=rd&&rd.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wvr=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"&&zvr(r,e,i[n]);return $vr(r,e),r}})();Object.defineProperty(rd,"__esModule",{value:!0});rd.TSTInfo=void 0;var qst=Wvr(WB()),Jvr=VH(),Yvr=_me(),xme=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 Jvr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=qst.digest(this.messageImprintHashAlgorithm,e);if(!qst.bufferEqual(r,this.messageImprintHashedMessage))throw new Yvr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};rd.TSTInfo=xme});var jst=p(id=>{"use strict";var Kvr=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]})),Xvr=id&&id.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zvr=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"&&Kvr(r,e,i[n]);return Xvr(r,e),r}})();Object.defineProperty(id,"__esModule",{value:!0});id.RFC3161Timestamp=void 0;var e_r=GH(),Rme=Zvr(WB()),Hst=VH(),j2=_me(),t_r=Gst(),r_r="1.2.840.113549.1.7.2",i_r="1.2.840.113549.1.9.16.1.4",n_r="1.2.840.113549.1.9.4",Tme=class t{root;constructor(e){this.root=e}static parse(e){let r=e_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 Hst.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Hst.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new t_r.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new j2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==r_r)throw new j2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==i_r)throw new j2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Rme.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Rme.bufferEqual(e,r))throw new j2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`)}});var VH=p(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.SHA2_HASH_ALGOS=vg.RSA_SIGNATURE_ALGOS=vg.ECDSA_SIGNATURE_ALGOS=void 0;vg.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"};vg.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"};vg.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 xme=p(zH=>{"use strict";Object.defineProperty(zH,"__esModule",{value:!0});zH.RFC3161TimestampVerificationError=void 0;var _me=class extends Error{};zH.RFC3161TimestampVerificationError=_me});var Hst=p(rd=>{"use strict";var $vr=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]})),Wvr=rd&&rd.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jvr=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"&&$vr(r,e,i[n]);return Wvr(r,e),r}})();Object.defineProperty(rd,"__esModule",{value:!0});rd.TSTInfo=void 0;var Gst=Jvr(WB()),Yvr=VH(),Kvr=xme(),Rme=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 Yvr.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 Kvr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};rd.TSTInfo=Rme});var Vst=p(id=>{"use strict";var Xvr=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]})),Zvr=id&&id.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),e_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"&&Xvr(r,e,i[n]);return Zvr(r,e),r}})();Object.defineProperty(id,"__esModule",{value:!0});id.RFC3161Timestamp=void 0;var t_r=GH(),Tme=e_r(WB()),jst=VH(),j2=xme(),r_r=Hst(),i_r="1.2.840.113549.1.7.2",n_r="1.2.840.113549.1.9.16.1.4",s_r="1.2.840.113549.1.9.4",Nme=class t{root;constructor(e){this.root=e}static parse(e){let r=t_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 r_r.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new j2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==i_r)throw new j2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==n_r)throw new j2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Tme.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Tme.bufferEqual(e,r))throw new j2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`,Exr=/\u2014 (\S+) (\S+)\n/g;function bxr(t,e){let r=t.inclusionProof,i=iAe.fromString(r.checkpoint.envelope),n=s6.fromString(i.note);if(!wxr(i,e))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function wxr(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 iAe=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(rAe))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(rAe),i=e.slice(0,r+1),s=e.slice(r+rAe.length).matchAll(Exr),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(aAe=>{"use strict";Object.defineProperty(aAe,"__esModule",{value:!0});aAe.verifyMerkleInclusion=Sxr;var oAe=$l(),nAe=io(),Cxr=Buffer.from([0]),Ixr=Buffer.from([1]);function Sxr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=Bxr(i,n);if(r.hashes.length!==s+o)throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=Nxr(t.canonicalizedBody),l=_xr(vxr(u,a,i),c);if(!oAe.crypto.bufferEqual(l,e.logHash))throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Bxr(t,e){let r=xxr(t,e),i=Rxr(t>>BigInt(r));return{inner:r,border:i}}function vxr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?sAe(n,i):sAe(i,n),t)}function _xr(t,e){return e.reduce((r,i)=>sAe(i,r),t)}function xxr(t,e){return Txr(t^e-BigInt(1))}function Rxr(t){return t.toString(2).split("1").length-1}function Txr(t){return t===0n?0:t.toString(2).length}function sAe(t,e){return oAe.crypto.digest("sha256",Ixr,t,e)}function Nxr(t){return oAe.crypto.digest("sha256",Cxr,t)}});var wot=p(cAe=>{"use strict";Object.defineProperty(cAe,"__esModule",{value:!0});cAe.verifyTLogSET=Pxr;var bot=$l(),Dxr=io(),Oxr=KB();function Pxr(t,e){if(!(0,Oxr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=kxr(t),o=Buffer.from(bot.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return bot.crypto.verify(o,n.publicKey,a)}))throw new Dxr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}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")}}});var Iot=p(o6=>{"use strict";Object.defineProperty(o6,"__esModule",{value:!0});o6.verifyTLogBody=Uxr;o6.verifyTLogInclusion=qxr;var Cot=Dde(),fAe=io(),uAe=pot(),lAe=mot(),Qxr=Aot(),Lxr=yot(),Mxr=Eot(),Fxr=wot();function Uxr(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 fAe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==uAe.DSSE_API_VERSION_V1)return(0,uAe.verifyDSSETLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,uAe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Qxr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==lAe.HASHEDREKORD_API_VERSION_V1)return(0,lAe.verifyHashedRekordTLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,lAe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new fAe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function qxr(t,e){let r=!1;if(Gxr(t)&&((0,Fxr.verifyTLogSET)(t,e),r=!0),Hxr(t)){let i=(0,Lxr.verifyCheckpoint)(t,e);(0,Mxr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new fAe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Gxr(t){return t.inclusionPromise!==void 0}function Hxr(t){return t.inclusionProof!==void 0}});var Rot=p(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});a6.Verifier=void 0;var jxr=require("util"),XB=io(),Sot=cot(),Bot=lot(),vot=dot(),_ot=Iot(),hAe=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=0,i=e.timestamps.map(n=>{switch(n.$case){case"timestamp-authority":return r++,(0,vot.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,vot.getTLogTimestamp)(n.tlogEntry)}});if(xot(i))throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(n=>n.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(xot(i.scts))throw new XB.Verificat Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function _Se(t,e){if(process.env.GITHUB_OUTPUT||"")return ED("OUTPUT",j6(t,e));process.stdout.write(R9.EOL),dd("set-output",{name:t},hd(e))}function bP(t){process.exitCode=x9.Failure,ubt(t)}function X(t){dd("debug",{},t)}function ubt(t,e={}){dd("error",q6(e),t instanceof Error?t.toString():t)}function ns(t,e={}){dd("warning",q6(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+R9.EOL)}function lbt(t){H6("group",t)}function fbt(){H6("endgroup")}function si(t,e){return cbt(this,void 0,void 0,function*(){lbt(t);let r;try{r=yield e()}finally{fbt()}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 xSe(t){return process.env[`STATE_${t}`]||""}var CM=O(require("fs"),1),HZ=O(require("os"),1),jZ=O(require("path"),1);var TSe=O(require("os"),1);function C_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function NSe(t,e,r){let i=new T9(t,e,r);process.stdout.write(i.toString()+TSe.EOL)}var RSe="::",T9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=RSe+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}=${dbt(n)}`)}}return e+=`${RSe}${hbt(this.message)}`,e}};function hbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function dbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var kSe=O(require("os"),1);var OSe=require("os"),I_=require("fs"),N9=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:pbt,appendFile:mbt,writeFile:Abt}=I_.promises,DSe="GITHUB_STEP_SUMMARY";var D9=class{constructor(){this._buffer=""}filePath(){return N9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[DSe];if(!e)throw new Error(`Unable to find environment variable for $${DSe}. Check if your runtime environment supports job summaries.`);try{yield pbt(e,I_.constants.R_OK|I_.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 N9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?Abt:mbt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return N9(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(OSe.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()}},VNr=new D9;var O9=O(require("os"),1);var WNr=O9.default.platform(),JNr=O9.default.arch();var PSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(PSe||(PSe={}));function P9(){return process.env.RUNNER_DEBUG==="1"}function wr(t){NSe("debug",{},t)}function k9(t){process.stdout.write(t+kSe.EOL)}var i$=O(require("crypto"),1),xs=O(require("fs"),1);var dIt=O(t$(),Line truncated
`,bxr=/\u2014 (\S+) (\S+)\n/g;function wxr(t,e){let r=t.inclusionProof,i=nAe.fromString(r.checkpoint.envelope),n=s6.fromString(i.note);if(!Cxr(i,e))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function Cxr(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})}var nAe=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(iAe))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(iAe),i=e.slice(0,r+1),s=e.slice(r+iAe.length).matchAll(bxr),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 bot=p(cAe=>{"use strict";Object.defineProperty(cAe,"__esModule",{value:!0});cAe.verifyMerkleInclusion=Bxr;var aAe=$l(),sAe=io(),Ixr=Buffer.from([0]),Sxr=Buffer.from([1]);function Bxr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new sAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=vxr(i,n);if(r.hashes.length!==s+o)throw new sAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=Dxr(t.canonicalizedBody),l=xxr(_xr(u,a,i),c);if(!aAe.crypto.bufferEqual(l,e.logHash))throw new sAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function vxr(t,e){let r=Rxr(t,e),i=Txr(t>>BigInt(r));return{inner:r,border:i}}function _xr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?oAe(n,i):oAe(i,n),t)}function xxr(t,e){return e.reduce((r,i)=>oAe(i,r),t)}function Rxr(t,e){return Nxr(t^e-BigInt(1))}function Txr(t){return t.toString(2).split("1").length-1}function Nxr(t){return t===0n?0:t.toString(2).length}function oAe(t,e){return aAe.crypto.digest("sha256",Sxr,t,e)}function Dxr(t){return aAe.crypto.digest("sha256",Ixr,t)}});var Cot=p(uAe=>{"use strict";Object.defineProperty(uAe,"__esModule",{value:!0});uAe.verifyTLogSET=kxr;var wot=$l(),Oxr=io(),Pxr=KB();function kxr(t,e){if(!(0,Pxr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=Qxr(t),o=Buffer.from(wot.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return wot.crypto.verify(o,n.publicKey,a)}))throw new Oxr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Qxr(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 Sot=p(o6=>{"use strict";Object.defineProperty(o6,"__esModule",{value:!0});o6.verifyTLogBody=qxr;o6.verifyTLogInclusion=Gxr;var Iot=Ode(),hAe=io(),lAe=mot(),fAe=Aot(),Lxr=got(),Mxr=Eot(),Fxr=bot(),Uxr=Cot();function qxr(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 hAe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==lAe.DSSE_API_VERSION_V1)return(0,lAe.verifyDSSETLogBody)(n,e);{let s=Iot.Entry.fromJSON(n);return(0,lAe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Lxr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==fAe.HASHEDREKORD_API_VERSION_V1)return(0,fAe.verifyHashedRekordTLogBody)(n,e);{let s=Iot.Entry.fromJSON(n);return(0,fAe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new hAe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function Gxr(t,e){let r=!1;if(Hxr(t)&&((0,Uxr.verifyTLogSET)(t,e),r=!0),jxr(t)){let i=(0,Mxr.verifyCheckpoint)(t,e);(0,Fxr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new hAe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Hxr(t){return t.inclusionPromise!==void 0}function jxr(t){return t.inclusionProof!==void 0}});var Tot=p(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});a6.Verifier=void 0;var Vxr=require("util"),XB=io(),Bot=uot(),vot=fot(),_ot=pot(),xot=Sot(),dAe=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=0,i=e.timestamps.map(n=>{switch(n.$case){case"timestamp-authority":return r++,(0,_ot.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,_ot.getTLogTimestamp)(n.tlogEntry)}});if(Rot(i))throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(n=>n.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,Bot.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,Bot.verifyCertificate)(e.certificate,r,this.trustMaterial);if(Rot(i.scts))throw new XB.Verificat Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function xSe(t,e){if(process.env.GITHUB_OUTPUT||"")return ED("OUTPUT",j6(t,e));process.stdout.write(R9.EOL),dd("set-output",{name:t},hd(e))}function bP(t){process.exitCode=x9.Failure,lbt(t)}function X(t){dd("debug",{},t)}function lbt(t,e={}){dd("error",q6(e),t instanceof Error?t.toString():t)}function ss(t,e={}){dd("warning",q6(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+R9.EOL)}function fbt(t){H6("group",t)}function hbt(){H6("endgroup")}function si(t,e){return ubt(this,void 0,void 0,function*(){fbt(t);let r;try{r=yield e()}finally{hbt()}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 RSe(t){return process.env[`STATE_${t}`]||""}var CM=O(require("fs"),1),HZ=O(require("os"),1),jZ=O(require("path"),1);var NSe=O(require("os"),1);function C_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function DSe(t,e,r){let i=new T9(t,e,r);process.stdout.write(i.toString()+NSe.EOL)}var TSe="::",T9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=TSe+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}=${pbt(n)}`)}}return e+=`${TSe}${dbt(this.message)}`,e}};function dbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function pbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var QSe=O(require("os"),1);var PSe=require("os"),I_=require("fs"),N9=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:mbt,appendFile:Abt,writeFile:gbt}=I_.promises,OSe="GITHUB_STEP_SUMMARY";var D9=class{constructor(){this._buffer=""}filePath(){return N9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[OSe];if(!e)throw new Error(`Unable to find environment variable for $${OSe}. Check if your runtime environment supports job summaries.`);try{yield mbt(e,I_.constants.R_OK|I_.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 N9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?gbt:Abt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return N9(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(PSe.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()}},zNr=new D9;var O9=O(require("os"),1);var JNr=O9.default.platform(),YNr=O9.default.arch();var kSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(kSe||(kSe={}));function P9(){return process.env.RUNNER_DEBUG==="1"}function wr(t){DSe("debug",{},t)}function k9(t){process.stdout.write(t+QSe.EOL)}var i$=O(require("crypto"),1),xs=O(require("fs"),1);var pIt=O(t$(),Line 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 U_(s));return i.searchPaths.push(...y$(i.patterns)),i})}static stat(e,r,i){return B$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Rw.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 Rw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Rw.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 uSt=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 y_e(t,e){return uSt(this,void 0,void 0,function*(){return yield UP.create(t,e)})}var rk=O(require("crypto"),1),Dw=O(require("fs"),1),_y=O(require("path"),1),uRe=O(aRe(),1),lRe=O(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 Ka;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ka||(Ka={}));var ek=2,tk=5e3,V$=5e3,z$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Y_="cache.tar",$$="manifest.txt",_Or=10*Math.pow(1024,3);var Nw=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())})},o_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)}},a_t="1.0";function K_(){return Nw(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=_y.join(i,"actions","temp")}let r=_y.join(e,rk.randomUUID());return yield Rd(r),r})}function Af(t){return Dw.statSync(t).size}function W$(t){return Nw(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 y_e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,l=o_t(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=_y.relative(a,n).replace(new RegExp(`\\${_y.sep}`,"g"),"/");ce(`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 X_(t){return Nw(this,void 0,void 0,function*(){return lRe.promisify(Dw.unlink)(t)})}function fRe(t){return Nw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),ce(`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){ce(n.message)}return i=i.trim(),ce(i),i})}function Z_(){return Nw(this,void 0,void 0,function*(){let t=yield fRe("zstd",["--quiet"]),e=uRe.clean(t);return ce(`zstd version: ${e}`),t===""?mo.Gzip:mo.ZstdWithoutLong})}function Vm(t){return t===mo.Gzip?J_.Gzip:J_.Zstd}function hRe(){return Nw(this,void 0,void 0,function*(){return Dw.existsSync(z$)?z$:(yield fRe("tar")).toLowerCase().includes("gnu tar")?is("tar"):""})}function J$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ow(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(a_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 uC=O(require("fs"),1),MDe=require("url");var gf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pRe=require("node:os"),mRe=O(require("node:util"),1),ARe=O(require("node:process"),1);function gRe(t,...e){ARe.default.stderr.write(`${mRe.default.format(t,...e)}${pRe.EOL}`)}var yRe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,bRe,Y$=[],K$=[],nk=[];yRe&&X$(yRe);var wRe=Object.assign(t=>CRe(t),{enable:X$,enabled:Z$,disable:c_t,log:gRe});function X$(t){bRe=t,Y$=[],K$=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?K$.push(r.substring(1)):Y$.push(r);for(let r of nk)r.enabled=Z$(r.namespace)}function Z$(t){if(t.endsWith("*"))return!0;for(let e of K$)if(ERe(t,e))return!1;for(let e of Y$)if(ERe(t,e))return!0;return!1}function ERe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,n=0,s=r.length,o=t.length,a=-1,c=-1;for(;i<o&&n<s;)if(r[n]==="*"){if(a=n,n++,n===s)return!0;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else if(r[n]===t[i])n++,i++;else if(a>=0){if(n=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else return!1;let u=i===t.length,l=n===r.length,f=n===r.length-1&&r[n]==="*";return u&&(l||f)}function c_t(){let t=bRe||"";return X$(""),t}function CRe(t){let e=Object.assign(r,{enabled:Z$(t),destroy:u_t,log:wRe.log,namespace:t,extend:l_t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return nk.push(e),e}function u_t(){let t=nk.indexOf(this);return t>=0?(nk.splice(t,1),!0):!1}function l_t(t){let e=CRe(`${this.namespace}:${t}`);return e.log=this.log,e}var Pw=wRe;var eW=["verbose","info","warning","error"],IRe={verbose:400,info:300,warning:200,error:100};function SRe(t,e){e.log=(...r)=>{t.log(...r)}}function BRe(t){return eW.includes(t)}function sk(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,n=Pw(t.namespace);n.log=(...l)=>{Pw.log(...l)};function s(l){if(l&&!BRe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${eW.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);Pw.enable(f.join(","))}r&&(BRe(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${eW.join(", ")}.`));function o(l){return!!(i&&IRe[l.level]<=IRe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(SRe(l,h),o(h)){let d=Pw.disable();Pw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=n.extend(l);return SRe(n,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:u,logger:n}}var vRe=sk({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),f_t=vRe.logger;function ex(t){return vRe.createClientLogger(t)}function ok(t){return t.toLowerCase()}function*h_t(t){for(let e of t.values())yield[e.name,e.value]}var tW=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ok(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(ok(e))?.value}has(e){return this._headersMap.has(ok(e))}delete(e){this._headersMap.delete(ok(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap. Line truncated
${m_t.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function uk(t){return t instanceof Ao?!0:Ry(t)&&t.name==="RestError"}function oa(t,e){return Buffer.from(t,e)}var lk=O(require("node:http"),1),fk=O(require("node:https"),1),sW=O(require("node:zlib"),1),NRe=require("node:stream");var Xc=ex("ts-http-runtime");var A_t={};function tx(t){return t&&typeof t.pipe=="function"}function TRe(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 DRe(t){return t&&typeof t.byteLength=="number"}var hk=class extends NRe.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 dl;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=b_t(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new hk(m);A.on("error",y=>{Xc.error("Error in upload progress",y)}),tx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=g_t(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?y_t(u,l):u;let d=e.onDownloadProgress;if(d){let m=new hk(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 E_t(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();tx(a)&&(u=TRe(a));let l=Promise.resolve();tx(c)&&(l=TRe(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?lk.default.request(a,c):fk.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&&tx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):DRe(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?lk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new lk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return fk.default.globalAgent;let n=e.tlsSettings??A_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 fk.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function g_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 y_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 E_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 b_t(t){return t?Buffer.isBuffer(t)?t.length:tx(t)?null:DRe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ORe(){return new oW}function dk(){return ORe()}var aW="logPolicy";function pk(t={}){let e=t.logger??Xc.info,r=new dl({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function Xxt(t){return t instanceof Uint8Array?t.byteLength:kk(t)?t.size===-1?void 0:t.size:void 0}function Zxt(t){let e=0;for(let r of t){let i=Xxt(r);if(i===void 0)return;e+=i}return e}async function eRt(t,e,r){let i=[oa(`--${r}`,"utf-8"),...e.flatMap(s=>[oa(`\r
`,"utf-8"),oa(Kxt(s.headers),"utf-8"),oa(`\r
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new U_(s));return i.searchPaths.push(...y$(i.patterns)),i})}static stat(e,r,i){return B$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Rw.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 Rw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Rw.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 lSt=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 E_e(t,e){return lSt(this,void 0,void 0,function*(){return yield UP.create(t,e)})}var rk=O(require("crypto"),1),Dw=O(require("fs"),1),_y=O(require("path"),1),lRe=O(cRe(),1),fRe=O(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 ek=2,tk=5e3,V$=5e3,z$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Y_="cache.tar",$$="manifest.txt",xOr=10*Math.pow(1024,3);var Nw=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())})},a_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)}},c_t="1.0";function K_(){return Nw(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=_y.join(i,"actions","temp")}let r=_y.join(e,rk.randomUUID());return yield Rd(r),r})}function Af(t){return Dw.statSync(t).size}function W$(t){return Nw(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 E_e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,l=a_t(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=_y.relative(a,n).replace(new RegExp(`\\${_y.sep}`,"g"),"/");ce(`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 X_(t){return Nw(this,void 0,void 0,function*(){return fRe.promisify(Dw.unlink)(t)})}function hRe(t){return Nw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),ce(`Checking ${e} ${r.join(" ")}`);try{yield Ya(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>i+=n.toString(),stderr:n=>i+=n.toString()}})}catch(n){ce(n.message)}return i=i.trim(),ce(i),i})}function Z_(){return Nw(this,void 0,void 0,function*(){let t=yield hRe("zstd",["--quiet"]),e=lRe.clean(t);return ce(`zstd version: ${e}`),t===""?mo.Gzip:mo.ZstdWithoutLong})}function Vm(t){return t===mo.Gzip?J_.Gzip:J_.Zstd}function dRe(){return Nw(this,void 0,void 0,function*(){return Dw.existsSync(z$)?z$:(yield hRe("tar")).toLowerCase().includes("gnu tar")?ns("tar"):""})}function J$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ow(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(c_t),rk.createHash("sha256").update(i.join("|")).digest("hex")}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}var uC=O(require("fs"),1),FDe=require("url");var gf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mRe=require("node:os"),ARe=O(require("node:util"),1),gRe=O(require("node:process"),1);function yRe(t,...e){gRe.default.stderr.write(`${ARe.default.format(t,...e)}${mRe.EOL}`)}var ERe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wRe,Y$=[],K$=[],nk=[];ERe&&X$(ERe);var CRe=Object.assign(t=>IRe(t),{enable:X$,enabled:Z$,disable:u_t,log:yRe});function X$(t){wRe=t,Y$=[],K$=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?K$.push(r.substring(1)):Y$.push(r);for(let r of nk)r.enabled=Z$(r.namespace)}function Z$(t){if(t.endsWith("*"))return!0;for(let e of K$)if(bRe(t,e))return!1;for(let e of Y$)if(bRe(t,e))return!0;return!1}function bRe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,n=0,s=r.length,o=t.length,a=-1,c=-1;for(;i<o&&n<s;)if(r[n]==="*"){if(a=n,n++,n===s)return!0;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else if(r[n]===t[i])n++,i++;else if(a>=0){if(n=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else return!1;let u=i===t.length,l=n===r.length,f=n===r.length-1&&r[n]==="*";return u&&(l||f)}function u_t(){let t=wRe||"";return X$(""),t}function IRe(t){let e=Object.assign(r,{enabled:Z$(t),destroy:l_t,log:CRe.log,namespace:t,extend:f_t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return nk.push(e),e}function l_t(){let t=nk.indexOf(this);return t>=0?(nk.splice(t,1),!0):!1}function f_t(t){let e=IRe(`${this.namespace}:${t}`);return e.log=this.log,e}var Pw=CRe;var eW=["verbose","info","warning","error"],SRe={verbose:400,info:300,warning:200,error:100};function BRe(t,e){e.log=(...r)=>{t.log(...r)}}function vRe(t){return eW.includes(t)}function sk(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,n=Pw(t.namespace);n.log=(...l)=>{Pw.log(...l)};function s(l){if(l&&!vRe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${eW.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);Pw.enable(f.join(","))}r&&(vRe(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${eW.join(", ")}.`));function o(l){return!!(i&&SRe[l.level]<=SRe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(BRe(l,h),o(h)){let d=Pw.disable();Pw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=n.extend(l);return BRe(n,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:u,logger:n}}var _Re=sk({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),h_t=_Re.logger;function ex(t){return _Re.createClientLogger(t)}function ok(t){return t.toLowerCase()}function*d_t(t){for(let e of t.values())yield[e.name,e.value]}var tW=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ok(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(ok(e))?.value}has(e){return this._headersMap.has(ok(e))}delete(e){this._headersMap.delete(ok(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap. Line truncated
${A_t.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function uk(t){return t instanceof Ao?!0:Ry(t)&&t.name==="RestError"}function oa(t,e){return Buffer.from(t,e)}var lk=O(require("node:http"),1),fk=O(require("node:https"),1),sW=O(require("node:zlib"),1),DRe=require("node:stream");var Xc=ex("ts-http-runtime");var g_t={};function tx(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 hk=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 dl;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=w_t(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new hk(m);A.on("error",y=>{Xc.error("Error in upload progress",y)}),tx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=y_t(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?E_t(u,l):u;let d=e.onDownloadProgress;if(d){let m=new hk(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 b_t(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();tx(a)&&(u=NRe(a));let l=Promise.resolve();tx(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?lk.default.request(a,c):fk.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&&tx(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?lk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new lk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return fk.default.globalAgent;let n=e.tlsSettings??g_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 fk.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function y_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}function E_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 b_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 w_t(t){return t?Buffer.isBuffer(t)?t.length:tx(t)?null:ORe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function PRe(){return new oW}function dk(){return PRe()}var aW="logPolicy";function pk(t={}){let e=t.logger??Xc.info,r=new dl({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function Zxt(t){return t instanceof Uint8Array?t.byteLength:kk(t)?t.size===-1?void 0:t.size:void 0}function eRt(t){let e=0;for(let r of t){let i=Zxt(r);if(i===void 0)return;e+=i}return e}async function tRt(t,e,r){let i=[oa(`--${r}`,"utf-8"),...e.flatMap(s=>[oa(`\r
`,"utf-8"),oa(Xxt(s.headers),"utf-8"),oa(`\r
`,"utf-8"),s.body,oa(`\r
--${r}`,"utf-8")]),oa(`--\r
\r
`,"utf-8")],n=Zxt(i);n&&t.headers.set("Content-Length",n),t.body=await PTe(i)}var sx="multipartPolicy",tRt=70,rRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function iRt(t){if(t.length>tRt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Lk(){return{name:sx,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?iRt(r):r=Yxt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await eRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Mk(){return ck()}var kTe=sk({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),lLr=kTe.logger;function bf(t){return kTe.createClientLogger(t)}var wf=bf("core-rest-pipeline");function vW(t={}){return pk({logger:wf.info,...t})}var _W=mk;function xW(t={}){return Ak(t)}var Fk=O(require("node:os"),1),Uk=O(require("node:process"),1);function QTe(){return"User-Agent"}async function LTe(t){if(Uk.default&&Uk.default.versions){let e=`${Fk.default.type()} ${Fk.default.release()}; ${Fk.default.arch()}`,r=Uk.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 qk="1.22.2";function fRt(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function MTe(){return QTe()}async function Gk(t){let e=new Map;e.set("core-rest-pipeline",qk),await LTe(e);let r=fRt(e);return t?`${t} ${r}`:r}var FTe=MTe(),UTe="userAgentPolicy";function RW(t={}){let e=Gk(t.userAgentPrefix);return{name:UTe,async sendRequest(r,i){return r.headers.has(FTe)||r.headers.set(FTe,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 ARt="The delay was aborted.";function ox(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return TW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??ARt})}function $m(t){if(Ry(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 qTe(t){return Ry(t)}function qw(){return xy()}var Xt=Dy;var GTe=Symbol("rawContent");function DW(t){return typeof t[GTe]=="function"}function HTe(t){return DW(t)?t[GTe]():t}var Hk=sx;function OW(){let t=Lk();return{name:Hk,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)DW(i.body)&&(i.body=HTe(i.body));return t.sendRequest(e,r)}}}var PW=gk;function kW(){return yk()}function QW(t={}){return wk(t)}function LW(){return Ck()}function Wm(t){return wW(t)}function MW(t,e){return Dk(t,e)}var jTe="setClientRequestIdPolicy";function FW(t="x-ms-client-request-id"){return{name:jTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function UW(t){return Ok(t)}function qW(t){return Pk(t)}var Gw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function VTe(t={}){let e=new GW(t.parentContext);return t.span&&(e=e.setValue(Gw.span,t.span)),t.namespace&&(e=e.setValue(Gw.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 $Te=O(zTe(),1),Vk=$Te.state;function gRt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function yRt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:gRt(),tracingContext:VTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function ax(){return Vk.instrumenterImplementation||(Vk.instrumenterImplementation=yRt()),Vk.instrumenterImplementation}function cx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=ax().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--),!UTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",vi("InvalidTag",f,go(t,s))}let u=kTt(t,s);if(u===!1)return vi("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=xNe(l,e);if(h===!0)i=!0;else return vi(h.err.code,h.err.msg,go(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return vi("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",go(t,o));if(r.length===0)return vi("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 vi("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 vi("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",go(t,s));else{let f=xNe(l,e);if(f!==!0)return vi(f.err.code,f.err.msg,go(t,s-l.length+f.err.line));if(n===!0)return vi("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=_Ne(t,s);continue}else if(t[s+1]==="?"){if(s=vNe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=MTt(t,s);if(f==-1)return vi("InvalidChar","char '&' is not expected.",go(t,s));s=f}else if(n===!0&&!BNe(t[s]))return vi("InvalidXml","Extra text at the end",go(t,s));t[s]==="<"&&s--}}else{if(BNe(t[s]))continue;return vi("InvalidChar","char '"+t[s]+"' is not expected.",go(t,s))}if(i){if(r.length==1)return vi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",go(t,r[0].tagStartPos));if(r.length>0)return vi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return vi("InvalidXml","Start tag expected.",1);return!0}function BNe(t){return t===" "||t===" "||t===`
`||t==="\r"}function vNe(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 vi("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 _Ne(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 OTt='"',PTt="'";function kTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===OTt||t[e]===PTt)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 QTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function xNe(t,e){let r=eQ(t,QTt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",yx(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",yx(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return vi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",yx(r[n]));let s=r[n][2];if(!FTt(s))return vi("InvalidAttr","Attribute '"+s+"' is an invalid name.",yx(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return vi("InvalidAttr","Attribute '"+s+"' is repeated.",yx(r[n]))}return!0}function LTt(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 MTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,LTt(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 vi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function FTt(t){return oJ(t)}function UTt(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 yx(t){return t.startIndex+t[1].length}var RNe={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"},TNe={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"},NNe={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 wx(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=$w(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=$w(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=$w(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 Q=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Q}"`)}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=uNt(h),f!==e.tagname&&this.matcher.push(f,{},S),f!==d&&m&&(E=this.buildAttributesMap(d,this.matcher,f),E&&(C=cNt(E,n))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let Q="";if(g)a=l.closeIndex;else if(n.unpairedTagsSet.has(f))a=l.closeIndex;else{let G=this.readStopNodeData(t,h,A+1);if(!G)throw new Error(`Unexpected end of ${h}`);a=G.i,Q=G.tagContent}let T=new la(f);E&&(T[":@"]=E),T.add(n.textNodeName,Q),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 Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(f)){let Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=l.closeIndex;continue}else{let Q=new la(f);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}i="",a=A}}}else i+=t[a];return e.child};function mNt(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 ANt(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 gNt(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 yNt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function ENt(t,e,r=">"){Line truncated
`;function _Nt(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 KNe(t,e,r,i,n){return!r.sanitizeName||My(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function bJ(t,e){let r="";e.format&&(r=vNt);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=_Nt(t,e),s=new Sf;return XNe(t,e,r,s,i,n)}function XNe(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:KNe(l,!1,e,i,s),d=xNt(u[":@"],e);i.push(h,d);let m=TNt(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=aQ(C);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let C=u[l][0][e.textNodeName],S=oQ(C);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let C=YNe(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=YNe(u[":@"],e,m,i,s),g=r+`<${h}${y}`,E;m?E=ZNe(u[l],e):E=XNe(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 xNt(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]=Km(t[n]),i=!0}return i?r:null}function ZNe(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=RNt(n[":@"],e),a=ZNe(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function RNt(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)}="${Km(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 YNe(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:KNe(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}="${Km(u)}"`}return s}function TNt(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 NNt={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({},NNt,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=eRt(i);n&&t.headers.set("Content-Length",n),t.body=await kTe(i)}var sx="multipartPolicy",rRt=70,iRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function nRt(t){if(t.length>rRt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!iRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Lk(){return{name:sx,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?nRt(r):r=Kxt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await tRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Mk(){return ck()}var QTe=sk({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),fLr=QTe.logger;function bf(t){return QTe.createClientLogger(t)}var wf=bf("core-rest-pipeline");function vW(t={}){return pk({logger:wf.info,...t})}var _W=mk;function xW(t={}){return Ak(t)}var Fk=O(require("node:os"),1),Uk=O(require("node:process"),1);function LTe(){return"User-Agent"}async function MTe(t){if(Uk.default&&Uk.default.versions){let e=`${Fk.default.type()} ${Fk.default.release()}; ${Fk.default.arch()}`,r=Uk.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 qk="1.22.2";function hRt(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 Gk(t){let e=new Map;e.set("core-rest-pipeline",qk),await MTe(e);let r=hRt(e);return t?`${t} ${r}`:r}var UTe=FTe(),qTe="userAgentPolicy";function RW(t={}){let e=Gk(t.userAgentPrefix);return{name:qTe,async sendRequest(r,i){return r.headers.has(UTe)||r.headers.set(UTe,await e),i(r)}}}var ic=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 ic(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 gRt="The delay was aborted.";function ox(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return TW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??gRt})}function $m(t){if(Ry(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 Ry(t)}function qw(){return xy()}var Xt=Dy;var HTe=Symbol("rawContent");function DW(t){return typeof t[HTe]=="function"}function jTe(t){return DW(t)?t[HTe]():t}var Hk=sx;function OW(){let t=Lk();return{name:Hk,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=gk;function kW(){return yk()}function QW(t={}){return wk(t)}function LW(){return Ck()}function Wm(t){return wW(t)}function MW(t,e){return Dk(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 Ok(t)}function qW(t){return Pk(t)}var Gw={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(Gw.span,t.span)),t.namespace&&(e=e.setValue(Gw.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),Vk=WTe.state;function yRt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function ERt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:yRt(),tracingContext:zTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function ax(){return Vk.instrumenterImplementation||(Vk.instrumenterImplementation=ERt()),Vk.instrumenterImplementation}function cx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=ax().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--),!qTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",vi("InvalidTag",f,go(t,s))}let u=QTt(t,s);if(u===!1)return vi("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 vi(h.err.code,h.err.msg,go(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return vi("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",go(t,o));if(r.length===0)return vi("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 vi("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 vi("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",go(t,s));else{let f=RNe(l,e);if(f!==!0)return vi(f.err.code,f.err.msg,go(t,s-l.length+f.err.line));if(n===!0)return vi("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=FTt(t,s);if(f==-1)return vi("InvalidChar","char '&' is not expected.",go(t,s));s=f}else if(n===!0&&!vNe(t[s]))return vi("InvalidXml","Extra text at the end",go(t,s));t[s]==="<"&&s--}}else{if(vNe(t[s]))continue;return vi("InvalidChar","char '"+t[s]+"' is not expected.",go(t,s))}if(i){if(r.length==1)return vi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",go(t,r[0].tagStartPos));if(r.length>0)return vi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return vi("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 vi("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 PTt='"',kTt="'";function QTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===PTt||t[e]===kTt)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 LTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function RNe(t,e){let r=eQ(t,LTt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",yx(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",yx(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return vi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",yx(r[n]));let s=r[n][2];if(!UTt(s))return vi("InvalidAttr","Attribute '"+s+"' is an invalid name.",yx(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return vi("InvalidAttr","Attribute '"+s+"' is repeated.",yx(r[n]))}return!0}function MTt(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 FTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,MTt(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 vi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function UTt(t){return oJ(t)}function qTt(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 yx(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 wx(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=$w(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=$w(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=$w(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 Q=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Q}"`)}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=lNt(h),f!==e.tagname&&this.matcher.push(f,{},S),f!==d&&m&&(E=this.buildAttributesMap(d,this.matcher,f),E&&(C=uNt(E,n))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let Q="";if(g)a=l.closeIndex;else if(n.unpairedTagsSet.has(f))a=l.closeIndex;else{let G=this.readStopNodeData(t,h,A+1);if(!G)throw new Error(`Unexpected end of ${h}`);a=G.i,Q=G.tagContent}let T=new la(f);E&&(T[":@"]=E),T.add(n.textNodeName,Q),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 Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(f)){let Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=l.closeIndex;continue}else{let Q=new la(f);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}i="",a=A}}}else i+=t[a];return e.child};function ANt(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 gNt(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 yNt(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 ENt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function bNt(t,e,r=">"){Line truncated
`;function xNt(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||My(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function bJ(t,e){let r="";e.format&&(r=_Nt);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 oc(a)):a instanceof oc&&i.push(a)}let n=xNt(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=RNt(u[":@"],e);i.push(h,d);let m=NNt(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=aQ(C);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let C=u[l][0][e.textNodeName],S=oQ(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 RNt(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]=Km(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=TNt(n[":@"],e),a=e1e(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function TNt(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)}="${Km(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}="${Km(u)}"`}return s}function NNt(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 DNt={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({},DNt,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 oc(r)):r instanceof oc&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function DNt(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||My(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=DNt(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+'="'+Km(e)+'"'};function ONt(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]=Km(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]=Km(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="")}function ONt(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||My(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=ONt(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+'="'+Km(e)+'"'};function PNt(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]=Km(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]=Km(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.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)=>yQ(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=mQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=AQ(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 qy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new vx(e,r,this)}computeHMACSHA256(e){return(0,a1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var an=bf("storage-common");var ru;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ru||(ru={}));var Zm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},GNt=new rc("The operation was aborted."),_x=class extends Bf{retryOptions;constructor(e,r,i=Zm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Zm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Zm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Zm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs):Zm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Zm.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=pQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Xm(n.url,Qd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(an.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(an.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 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 o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return an.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 an.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return an.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.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')?(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 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 an.info(`RetryPolicy: Delay for ${n}ms`),gQ(n,i,GNt)}};var xx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new _x(e,r,this.retryOptions)}};var HNt="storageBrowserPolicy";function c1e(){return{name:HNt,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Xm(t.url,Qd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var jNt="StorageCorrectContentLengthPolicy";function u1e(){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{name:jNt,async sendRequest(e,r){return t(e),r(e)}}}var VNt="storageRetryPolicy",Jw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zNt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$Nt=new rc("The operation was aborted.");function l1e(t={}){let e=t.retryPolicyType??Jw.retryPolicyType,r=t.maxTries??Jw.maxTries,i=t.retryDelayInMs??Jw.retryDelayInMs,n=t.maxRetryDelayInMs??Jw.maxRetryDelayInMs,s=t.secondaryHost??Jw.secondaryHost,o=t.tryTimeoutInMs??Jw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return an.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of zNt)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return Line truncated
${a}:${decodeURIComponent(s[a])}`}return i}};var oi=class extends qy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new vx(e,r,this)}computeHMACSHA256(e){return(0,c1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var an=bf("storage-common");var ru;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ru||(ru={}));var Zm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},HNt=new ic("The operation was aborted."),_x=class extends Bf{retryOptions;constructor(e,r,i=Zm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Zm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Zm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Zm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs):Zm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Zm.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=pQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Xm(n.url,Qd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(an.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(an.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 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 o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return an.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 an.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return an.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.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')?(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 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 an.info(`RetryPolicy: Delay for ${n}ms`),gQ(n,i,HNt)}};var xx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new _x(e,r,this.retryOptions)}};var jNt="storageBrowserPolicy";function u1e(){return{name:jNt,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Xm(t.url,Qd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var VNt="StorageCorrectContentLengthPolicy";function l1e(){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{name:VNt,async sendRequest(e,r){return t(e),r(e)}}}var zNt="storageRetryPolicy",Jw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$Nt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],WNt=new ic("The operation was aborted.");function f1e(t={}){let e=t.retryPolicyType??Jw.retryPolicyType,r=t.maxTries??Jw.maxTries,i=t.retryDelayInMs??Jw.retryDelayInMs,n=t.maxRetryDelayInMs??Jw.maxRetryDelayInMs,s=t.secondaryHost??Jw.secondaryHost,o=t.tryTimeoutInMs??Jw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return an.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of $Nt)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return Line truncated
`)+`
`+i(s)+n(s),a=(0,f1e.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>yQ(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()}
`+i(s)+n(s),a=(0,h1e.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>yQ(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=mQ(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AQ(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:WNt,async sendRequest(s,o){return e(s),o(s)}}}var JNt="storageRequestFailureDetailsParserPolicy";function h1e(){return{name:JNt,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 d1e=require("node:crypto"),EQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,d1e.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var bQ="12.31.0",wQ="2026-02-06";var CQ="https://storage.azure.com/.default",Ld={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var pl="",RJ="*",YNt=1*1024*1024;var KNt=4*YNt;var p1e="AES256",m1e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",A1e=["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"],g1e=["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"],y1e="BlobUsesCustomerSpecifiedEncryption",E1e="BlobDoesNotUseCustomerSpecifiedEncryption",b1e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Md(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 Rx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function _i(t,e={}){t||(t=new qr);let r=new Rx([],e);return r._credential=t,r}function XNt(t){let e=[ZNt,w1e,e1t,t1t,r1t,i1t,s1t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>n1t(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/${bQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=fx({...r,loggingOptions:{additionalAllowedHeaderNames:A1e,additionalAllowedQueryParameters:g1e,logger:uQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:cQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:BJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:PW}),n.addPolicy(u1e()),n.addPolicy(l1e(r.retryOptions),{phase:"Retry"}),n.addPolicy(h1e()),n.addPolicy(c1e());let a=XNt(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=NJ(t);ic(c)?n.addPolicy(Hw({credential:c,scopes:r.audience??CQ 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}}function Z2t(t,e){if(t=Yy(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):"",Jy(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(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(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 eDt(t,e){if(t=Yy(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):"",Jy(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(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(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 tDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 rDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 iDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 nDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 Jy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function Yy(t){let e=t.version?t.version:wQ;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 qx=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=qw()),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 values are not acceptable.");return Re.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
${f}:${decodeURIComponent(u[f])}`}return a}return{name:JNt,async sendRequest(s,o){return e(s),o(s)}}}var YNt="storageRequestFailureDetailsParserPolicy";function d1e(){return{name:YNt,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"),EQ=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 bQ="12.31.0",wQ="2026-02-06";var CQ="https://storage.azure.com/.default",Ld={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var pl="",RJ="*",KNt=1*1024*1024;var XNt=4*KNt;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 Md(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 Rx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function _i(t,e={}){t||(t=new qr);let r=new Rx([],e);return r._credential=t,r}function ZNt(t){let e=[e1t,C1e,t1t,r1t,i1t,n1t,o1t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>s1t(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/${bQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=fx({...r,loggingOptions:{additionalAllowedHeaderNames:g1e,additionalAllowedQueryParameters:y1e,logger:uQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:cQ,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=ZNt(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=NJ(t);nc(c)?n.addPolicy(Hw({credential:c,scopes:r.audience??CQ 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}}function eDt(t,e){if(t=Yy(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):"",Jy(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(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(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 tDt(t,e){if(t=Yy(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):"",Jy(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(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(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 rDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 iDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 nDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 sDt(t,e){if(t=Yy(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):"",Jy(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?yl(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 El(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 Jy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function Yy(t){let e=t.version?t.version:wQ;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 qx=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=qw()),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 values are not acceptable.");return Re.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"}};aC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eE=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};eE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Kx=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pOt=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);$i(`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 SDe(t,e,r){return pOt(this,void 0,void 0,function*(){var i;let n=new bl(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(),ce(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new vL(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ll(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var vDe=O(require("buffer"),1),jf=O(require("fs"),1),_De=O(require("stream"),1),xDe=O(require("util"),1);var _L=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 xL(t){return t?t>=200&&t<300:!1}function mOt(t){return t?t>=500:!0}function AOt(t){return t?[lr.BadGateway,lr.ServiceUnavailable,lr.GatewayTimeout].includes(t):!1}function gOt(t){return _L(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function BDe(t,e,r){return _L(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),!mOt(h)))return f;if(h&&(d=AOt(h),u=`Cache service responded with ${h}`),ce(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){ce(`${i} - Error is not retryable`);break}yield gOt(a),l++}throw Error(`${i} failed: ${u}`)})}function Xx(t,e){return _L(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield BDe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof lf)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function cC(t,e){return _L(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield BDe(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 yOt(t,e){return au(this,void 0,void 0,function*(){yield xDe.promisify(_De.pipeline)(t.message,e)})}var RL=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,ce(`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);$i(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of s?.artifactCaches||[])ce(`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 MDe.URL(t),n=DDe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield TDe(t,e,n):n.concurrentBlobDownloads?yield RDe(t,e,n):yield TL(t,e):yield TL(t,e)})}function UDe(t,e,r){return pa(this,void 0,void 0,function*(){let i=IX(),n=Ow(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield Xx("reserveCache",()=>pa(this,void 0,void 0,function*(){return i.postJson(eR("caches"),s)}))})}function LDe(t,e){return`bytes ${t}-${e}/*`}function vOt(t,e,r,i,n){return pa(this,void 0,void 0,function*(){ce(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${LDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":LDe(i,n)},o=yield cC(`uploadChunk (start: ${i}, end: ${n})`,()=>pa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!xL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function _Ot(t,e,r,i){return pa(this,void 0,void 0,function*(){let n=Af(r),s=eR(`caches/${e.toString()}`),o=uC.openSync(r,"r"),a=wX(i),c=J$("uploadConcurrency",a.uploadConcurrency),u=J$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];ce("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 vOt(t,s,()=>uC.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{uC.closeSync(o)}})}function xOt(t,e,r){return pa(this,void 0,void 0,function*(){let i={size:r};return yield Xx("commitCache",()=>pa(this,void 0,void 0,function*(){return t.postJson(eR(`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 SDe(r,e,i)}else{let s=IX();ce("Upload cache"),yield _Ot(s,t,e,i),ce("Commiting cache");let o=Af(e);$i(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield xOt(s,t,o);if(!xL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$i("Cache saved successfully")}})}var POe=O(_Oe(),1),Ti=O(Ri(),1),cc=O(Ri(),1),sE=O(Ri(),1),oE=O(Ri(),1),aE=O(Ri(),1);var EZ=O(Ri(),1),bZ=O(Ri(),1),NOe=O(Ri(),1),DOe=O(Ri(),1),OOe=O(Ri(),1);var AZ=O(Ri(),1),gZ=O(Ri(),1),xOe=O(Ri(),1),ROe=O(Ri(),1),TOe=O(Ri(),1),yZ=class extends TOe.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,ROe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xOe.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}},gM=new yZ;var wZ=class extends OOe.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:()=>gM}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,DOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,NOe.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(gM.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++)gM.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)(th Line truncated
`));let i=yield QZ(r,"create");yield LZ(i,t)})}var vC=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())})},Il=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},BC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},wM=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function MOe(t){if(!t||t.length===0)throw new Il("Path Validation Error: At least one directory or file path is required")}function UZ(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.`)}function qZ(){return Zx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function FOe(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=Zx();return ce(`Cache service version: ${u}`),MOe(n),u==="v2"?yield Hkt(n,s,o,a,c):yield Gkt(n,s,o,a,c)})}function Gkt(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UZ(h);let l=yield Z_(),f="";try{let h=yield FDe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return $i("Lookup only - skipping download"),h.cacheKey;f=AR.join(yield K_(),Vm(l)),ce(`Archive Path: ${f}`),yield SX(h.archiveLocation,f,a),Cy()&&(yield mR(f,l));let d=Af(f);return $i(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield MZ(f,l),$i("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===Il.name)throw h;d instanceof lf&&typeof d.statusCode=="number"&&d.statusCode>=500?P_(`Failed to restore: ${h.message}`):ll(`Failed to restore: ${h.message}`)}finally{try{yield X_(f)}catch(h){ce(`Failed to delete archive: ${h}`)}}})}function Hkt(t,e,r,i){return vC(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(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("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 Z_(),d={key:s,restoreKeys:o,version:Ow(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){ce(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?$i(`Cache hit for restore-key: ${m.matchedKey}`):$i(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return $i("Lookup only - skipping download"),m.matchedKey;l=AR.join(yield K_(),Vm(h)),ce(`Archive path: ${l}`),ce(`Starting download of archive to: ${l}`),yield SX(m.signedDownloadUrl,l,a);let y=Af(l);return $i(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Cy()&&(yield mR(l,h)),yield MZ(l,h),$i("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===Il.name)throw f;h instanceof lf&&typeof h.statusCode=="number"&&h.statusCode>=500?P_(`Failed to restore: ${f.message}`):ll(`Failed to restore: ${f.message}`)}finally{try{l&&(yield X_(l))}catch(f){ce(`Failed to delete archive: ${f}`)}}})}function GZ(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){let a=Zx();return ce(`Cache service version: ${a}`),MOe(i),UZ(n),a==="v2"?yield Vkt(i,n,s,o):yield jkt(i,n,s,o)})}function jkt(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield Z_(),d=-1,m=yield W$(i);if(ce("Cache Paths:"),ce(`${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 K_(),y=AR.join(A,Vm(h));ce(`Archive Path: ${y}`);try{yield FZ(A,m,h),Cy()&&(yield mR(y,h));let g=10*1024*1024*1024,E=Af(y);if(ce(`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.`);ce("Reserving Cache");let C=yield UDe(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 BC(`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}`);ce(`Saving Cache (ID: ${d})`),yield BX(d,y,"",s)}catch(g){let E=g;if(E.name===Il.nam 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:Q}=this.options,{bomSkipped:T,previousBuf:G,rawBuffer:D,escapeIsQuote:H}=this.state,L;if(G===void 0)if(i===void 0){o();return}else L=i;else G!==void 0&&i===void 0?L=G:L=Buffer.concat([G,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(n===!1){this.state.previousBuf=L;return}}else{for(let De in qC)if(qC[De].compare(L,0,qC[De].length)===0){let de=qC[De].length;this.state.bufBytesStart+=de,L=L.slice(de);let Qe=lte({...this.original_options,encoding:De});for(let K in Qe)this.options[K]=Qe[K];({comment:C,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=L.length,W;for(W=0;W<Z&&!this.__needMoreData(W,Z,n);W++){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&&Q.length===0&&this.__autoDiscoverRecordDelimiter(L,W)&&(Q=this.options.record_delimiter);let De=L[W];if(d===!0&&D.append(De),(De===d3t||De===p3t)&&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(L,W,De)&&W+S.length<Z)if(H){if(this.__isQuote(L,W+S.length)){this.state.escaping=!0,W+=S.length-1;continue}}else{this.state.escaping=!0,W+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,W))if(this.state.quoting===!0){let K=L[W+N.length],Te=A&&this.__isCharTrimable(L,W+N.length),Ie=C!==null&&this.__compareBytes(C,L,W+N.length,K),Rt=this.__isDelimiter(L,W+N.length,K),Lt=Q.length===0?this.__autoDiscoverRecordDelimiter(L,W+N.length):this.__isRecordDelimiter(K,L,W+N.length);if(S!==null&&this.__isEscape(L,W,De)&&this.__isQuote(L,W+S.length))W+=S.length-1;else if(!K||Rt||Lt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,W+=N.length-1;continue}else if(m===!1){let nn=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(K)}"`,`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(N),W+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let K=this.__infoField(),Te=Object.keys(qC).map(Rt=>qC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(K.column)} at line ${K.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Te?`(${Te} bom)`:void 0],this.options,K,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,W+=N.length-1;continue}if(this.state.quoting===!1){let K=this.__isRecordDelimiter(De,L,W);if(K!==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(),W+=K-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,W+=K-1;continue}this.info.bytes=this.state.bufBytesStart+W;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+W+K;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,W+=K-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,L,W,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(L,W,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+W;let Ie=this.__onField();if(Ie!==void 0)return Ie;W+=Te-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 de=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,W),Qe=A===!1||this.state.wasQuoting===!1;if(de===!0&&Qe===!0)this.state.field.append(De);else{if(A===!0&&!this.__isCharTrimable(L,W))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()));de===!1&&(W+=this.__isCharTrimable(L,W)-1);continue}}if(n===!0)if(this.state.quoting===!0){le Line truncated
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"}};eE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Kx=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var mOt=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);$i(`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 mOt(this,void 0,void 0,function*(){var i;let n=new bl(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(),ce(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new vL(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ll(`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 _L=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 xL(t){return t?t>=200&&t<300:!1}function AOt(t){return t?t>=500:!0}function gOt(t){return t?[lr.BadGateway,lr.ServiceUnavailable,lr.GatewayTimeout].includes(t):!1}function yOt(t){return _L(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function vDe(t,e,r){return _L(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),!AOt(h)))return f;if(h&&(d=gOt(h),u=`Cache service responded with ${h}`),ce(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){ce(`${i} - Error is not retryable`);break}yield yOt(a),l++}throw Error(`${i} failed: ${u}`)})}function Xx(t,e){return _L(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 lf)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function cC(t,e){return _L(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 EOt(t,e){return au(this,void 0,void 0,function*(){yield RDe.promisify(xDe.pipeline)(t.message,e)})}var RL=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,ce(`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);$i(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of s?.artifactCaches||[])ce(`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 TL(t,e):yield TL(t,e)})}function qDe(t,e,r){return pa(this,void 0,void 0,function*(){let i=IX(),n=Ow(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield Xx("reserveCache",()=>pa(this,void 0,void 0,function*(){return i.postJson(eR("caches"),s)}))})}function MDe(t,e){return`bytes ${t}-${e}/*`}function _Ot(t,e,r,i,n){return pa(this,void 0,void 0,function*(){ce(`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 cC(`uploadChunk (start: ${i}, end: ${n})`,()=>pa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!xL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function xOt(t,e,r,i){return pa(this,void 0,void 0,function*(){let n=Af(r),s=eR(`caches/${e.toString()}`),o=uC.openSync(r,"r"),a=wX(i),c=J$("uploadConcurrency",a.uploadConcurrency),u=J$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];ce("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 _Ot(t,s,()=>uC.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{uC.closeSync(o)}})}function ROt(t,e,r){return pa(this,void 0,void 0,function*(){let i={size:r};return yield Xx("commitCache",()=>pa(this,void 0,void 0,function*(){return t.postJson(eR(`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();ce("Upload cache"),yield xOt(s,t,e,i),ce("Commiting cache");let o=Af(e);$i(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield ROt(s,t,o);if(!xL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$i("Cache saved successfully")}})}var kOe=O(xOe(),1),Ti=O(Ri(),1),uc=O(Ri(),1),sE=O(Ri(),1),oE=O(Ri(),1),aE=O(Ri(),1);var EZ=O(Ri(),1),bZ=O(Ri(),1),DOe=O(Ri(),1),OOe=O(Ri(),1),POe=O(Ri(),1);var AZ=O(Ri(),1),gZ=O(Ri(),1),ROe=O(Ri(),1),TOe=O(Ri(),1),NOe=O(Ri(),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}},gM=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:()=>gM}])}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(gM.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++)gM.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)(th Line truncated
`));let i=yield QZ(r,"create");yield LZ(i,t)})}var vC=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())})},Il=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},BC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},wM=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 Il("Path Validation Error: At least one directory or file path is required")}function UZ(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.`)}function qZ(){return Zx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function UOe(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=Zx();return ce(`Cache service version: ${u}`),FOe(n),u==="v2"?yield jkt(n,s,o,a,c):yield Hkt(n,s,o,a,c)})}function Hkt(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UZ(h);let l=yield Z_(),f="";try{let h=yield UDe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return $i("Lookup only - skipping download"),h.cacheKey;f=AR.join(yield K_(),Vm(l)),ce(`Archive Path: ${f}`),yield SX(h.archiveLocation,f,a),Cy()&&(yield mR(f,l));let d=Af(f);return $i(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield MZ(f,l),$i("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===Il.name)throw h;d instanceof lf&&typeof d.statusCode=="number"&&d.statusCode>=500?P_(`Failed to restore: ${h.message}`):ll(`Failed to restore: ${h.message}`)}finally{try{yield X_(f)}catch(h){ce(`Failed to delete archive: ${h}`)}}})}function jkt(t,e,r,i){return vC(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(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("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 Z_(),d={key:s,restoreKeys:o,version:Ow(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){ce(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?$i(`Cache hit for restore-key: ${m.matchedKey}`):$i(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return $i("Lookup only - skipping download"),m.matchedKey;l=AR.join(yield K_(),Vm(h)),ce(`Archive path: ${l}`),ce(`Starting download of archive to: ${l}`),yield SX(m.signedDownloadUrl,l,a);let y=Af(l);return $i(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Cy()&&(yield mR(l,h)),yield MZ(l,h),$i("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===Il.name)throw f;h instanceof lf&&typeof h.statusCode=="number"&&h.statusCode>=500?P_(`Failed to restore: ${f.message}`):ll(`Failed to restore: ${f.message}`)}finally{try{l&&(yield X_(l))}catch(f){ce(`Failed to delete archive: ${f}`)}}})}function GZ(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){let a=Zx();return ce(`Cache service version: ${a}`),FOe(i),UZ(n),a==="v2"?yield zkt(i,n,s,o):yield Vkt(i,n,s,o)})}function Vkt(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield Z_(),d=-1,m=yield W$(i);if(ce("Cache Paths:"),ce(`${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 K_(),y=AR.join(A,Vm(h));ce(`Archive Path: ${y}`);try{yield FZ(A,m,h),Cy()&&(yield mR(y,h));let g=10*1024*1024*1024,E=Af(y);if(ce(`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.`);ce("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 BC(`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}`);ce(`Saving Cache (ID: ${d})`),yield BX(d,y,"",s)}catch(g){let E=g;if(E.name===Il.nam 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:Q}=this.options,{bomSkipped:T,previousBuf:G,rawBuffer:D,escapeIsQuote:H}=this.state,L;if(G===void 0)if(i===void 0){o();return}else L=i;else G!==void 0&&i===void 0?L=G:L=Buffer.concat([G,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(n===!1){this.state.previousBuf=L;return}}else{for(let De in qC)if(qC[De].compare(L,0,qC[De].length)===0){let de=qC[De].length;this.state.bufBytesStart+=de,L=L.slice(de);let Qe=fte({...this.original_options,encoding:De});for(let K in Qe)this.options[K]=Qe[K];({comment:C,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=L.length,W;for(W=0;W<Z&&!this.__needMoreData(W,Z,n);W++){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&&Q.length===0&&this.__autoDiscoverRecordDelimiter(L,W)&&(Q=this.options.record_delimiter);let De=L[W];if(d===!0&&D.append(De),(De===p3t||De===m3t)&&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(L,W,De)&&W+S.length<Z)if(H){if(this.__isQuote(L,W+S.length)){this.state.escaping=!0,W+=S.length-1;continue}}else{this.state.escaping=!0,W+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,W))if(this.state.quoting===!0){let K=L[W+N.length],Te=A&&this.__isCharTrimable(L,W+N.length),Ie=C!==null&&this.__compareBytes(C,L,W+N.length,K),Rt=this.__isDelimiter(L,W+N.length,K),Lt=Q.length===0?this.__autoDiscoverRecordDelimiter(L,W+N.length):this.__isRecordDelimiter(K,L,W+N.length);if(S!==null&&this.__isEscape(L,W,De)&&this.__isQuote(L,W+S.length))W+=S.length-1;else if(!K||Rt||Lt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,W+=N.length-1;continue}else if(m===!1){let nn=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(K)}"`,`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(N),W+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let K=this.__infoField(),Te=Object.keys(qC).map(Rt=>qC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(K.column)} at line ${K.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Te?`(${Te} bom)`:void 0],this.options,K,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,W+=N.length-1;continue}if(this.state.quoting===!1){let K=this.__isRecordDelimiter(De,L,W);if(K!==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(),W+=K-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,W+=K-1;continue}this.info.bytes=this.state.bufBytesStart+W;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+W+K;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,W+=K-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,L,W,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(L,W,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+W;let Ie=this.__onField();if(Ie!==void 0)return Ie;W+=Te-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 de=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,W),Qe=A===!1||this.state.wasQuoting===!1;if(de===!0&&Qe===!0)this.state.field.append(De);else{if(A===!0&&!this.__isCharTrimable(L,W))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()));de===!1&&(W+=this.__isCharTrimable(L,W)-1);continue}}if(n===!0)if(this.state.quoting===!0){le 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 pc=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=$Le(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 Ke=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=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=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 is("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 WLe.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 fte.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 fte.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return JLe.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 Ni=class t{static get configDir(){return process.env.DOCKER_CONFIG||MR.default.join(YLe.default.homedir(),".docker")}static configFile(){let e=MR.default.join(t.configDir,"config.json");if(hte.default.existsSync(e))return JSON.parse(hte.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await is("docker",!0).then(e=>(X(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(X(`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 qe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={} Line truncated
`,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 pc=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 Ke=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=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=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 hte.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 hte.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 Ni=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(dte.default.existsSync(e))return JSON.parse(dte.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ns("docker",!0).then(e=>(X(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(X(`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 qe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={} Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var a4t=class extends Error{constructor(t,e,r){super(o4t(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"],u4t=["query","method","url"],PMe=/\/api\/v3\/?$/;function l4t(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(u4t.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)=>c4t.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 PMe.test(s)&&(n.url=s.replace(PMe,"/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 a4t(n,a,o.data)}return o.data.data})}function Ite(t,e){let r=t.defaults(e);return Object.assign((n,s)=>l4t(r,n,s),{defaults:Ite.bind(null,r),endpoint:r.endpoint})}var AWr=Ite(GR,{headers:{"user-agent":`octokit-graphql.js/${s4t} ${fA()}`},method:"POST",url:"/graphql"});function kMe(t){return Ite(t,{method:"POST",url:"/graphql"})}var Ste="(?:[a-zA-Z0-9_-]+)",QMe="\\.",LMe=new RegExp(`^${Ste}${QMe}${Ste}${QMe}${Ste}$`),f4t=LMe.test.bind(LMe);async function h4t(t){let e=f4t(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 d4t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function p4t(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=d4t(t),e(n)}var MMe=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(h4t.bind(null,e),{hook:p4t.bind(null,e)})};var Bte="7.0.6";var FMe=()=>{},m4t=console.warn.bind(console),A4t=console.error.bind(console);function g4t(t={}){return typeof t.debug!="function"&&(t.debug=FMe),typeof t.info!="function"&&(t.info=FMe),typeof t.warn!="function"&&(t.warn=m4t),typeof t.error!="function"&&(t.error=A4t),t}var UMe=`octokit-core.js/${Bte} ${fA()}`,VC=class{static VERSION=Bte;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 dMe.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} ${UMe}`:UMe,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=kMe(this.request).defaults(i),this.log=g4t(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=MMe(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 vte="17.0.0";var y4t={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||X(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var kte=O(require("fs"),1),Qte=O(require("path"),1);var LF=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 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 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=Qte.default.join(Dt.tmpDir(),"export");$(`exporting build record to ${s}`),kte.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Ke.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:Ke.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Qte.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 qe.getExecOutput(u.command,u.args);let l=kte.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}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 F9e=O(require("fs"),1),yae=O(require("path"),1);var YMe=O(require("os"),1);function $R(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Lte(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 Mte(t,e,r);process.stdout.write(i.toString()+YMe.EOL)}var JMe="::",Mte=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=JMe+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}=${Q4t(n)}`)}}return e+=`${JMe}${k4t(this.message)}`,e}};function k4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Q4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var eFe=O(require("os"),1);var XMe=require("os"),JR=require("fs"),Fte=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:L4t,appendFile:M4t,writeFile:F4t}=JR.promises,KMe="GITHUB_STEP_SUMMARY";var Ute=class{constructor(){this._buffer=""}filePath(){return Fte(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[KMe];if(!e)throw new Error(`Unable to find environment variable for $${KMe}. Check if your runtime environment supports job summaries.`);try{yield L4t(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 Fte(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?F4t:M4t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Fte(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(XMe.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()}},AJr=new Ute;var qte=O(require("os"),1);var EJr=qte.default.platform(),bJr=qte.default.arch();var ZMe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ZMe||(ZMe={}));function MF(t){WR("add-mask",{},t)}function ft(t){WR("debug",{},t)}function YR(t,e={}){WR("error",Lte(e),t insLine truncated
`," Line feed \\n"]]),ZFe=new Map([...die,["\\"," Backslash \\"],["/"," Forward slash /"]]);function eUe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of ZFe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}var c4t=class extends Error{constructor(t,e,r){super(a4t(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},u4t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],l4t=["query","method","url"],kMe=/\/api\/v3\/?$/;function f4t(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(l4t.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)=>u4t.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 c4t(n,a,o.data)}return o.data.data})}function Ste(t,e){let r=t.defaults(e);return Object.assign((n,s)=>f4t(r,n,s),{defaults:Ste.bind(null,r),endpoint:r.endpoint})}var gWr=Ste(GR,{headers:{"user-agent":`octokit-graphql.js/${o4t} ${fA()}`},method:"POST",url:"/graphql"});function QMe(t){return Ste(t,{method:"POST",url:"/graphql"})}var Bte="(?:[a-zA-Z0-9_-]+)",LMe="\\.",MMe=new RegExp(`^${Bte}${LMe}${Bte}${LMe}${Bte}$`),h4t=MMe.test.bind(MMe);async function d4t(t){let e=h4t(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 p4t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function m4t(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=p4t(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(d4t.bind(null,e),{hook:m4t.bind(null,e)})};var vte="7.0.6";var UMe=()=>{},A4t=console.warn.bind(console),g4t=console.error.bind(console);function y4t(t={}){return typeof t.debug!="function"&&(t.debug=UMe),typeof t.info!="function"&&(t.info=UMe),typeof t.warn!="function"&&(t.warn=A4t),typeof t.error!="function"&&(t.error=g4t),t}var qMe=`octokit-core.js/${vte} ${fA()}`,VC=class{static VERSION=vte;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=y4t(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 _te="17.0.0";var E4t={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||X(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var Qte=O(require("fs"),1),Lte=O(require("path"),1);var LF=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 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 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=Lte.default.join(Dt.tmpDir(),"export");$(`exporting build record to ${s}`),Qte.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Ke.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:Ke.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Lte.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 qe.getExecOutput(u.command,u.args);let l=Qte.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}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 U9e=O(require("fs"),1),Eae=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 Mte(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 Fte(t,e,r);process.stdout.write(i.toString()+KMe.EOL)}var YMe="::",Fte=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}=${L4t(n)}`)}}return e+=`${YMe}${Q4t(this.message)}`,e}};function Q4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function L4t(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"),Ute=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:M4t,appendFile:F4t,writeFile:U4t}=JR.promises,XMe="GITHUB_STEP_SUMMARY";var qte=class{constructor(){this._buffer=""}filePath(){return Ute(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 M4t(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 Ute(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?U4t:F4t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Ute(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()}},gJr=new qte;var Gte=O(require("os"),1);var bJr=Gte.default.platform(),wJr=Gte.default.arch();var eFe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(eFe||(eFe={}));function MF(t){WR("add-mask",{},t)}function ft(t){WR("debug",{},t)}function YR(t,e={}){WR("error",Mte(e),t insLine truncated
`," Line feed \\n"]]),eUe=new Map([...pie,["\\"," 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}
Invalid characters include: ${Array.from(ZFe.values()).toString()}
Invalid characters include: ${Array.from(eUe.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.`);Ct("Artifact name is valid!")}function pie(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of die)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!")}function mie(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of pie)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(die.values()).toString()}
Invalid characters include: ${Array.from(pie.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 nUe=O(iUe(),1);function ch(){return`@actions/artifact-${nUe.version}`}var lI=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"}},xl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rp=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},AA=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"}},ip=class extends Error{constructor(e){let r=`Unable to make request: ${e}
`)}var sUe=O(nUe(),1);function ch(){return`@actions/artifact-${sUe.version}`}var lI=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"}},xl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rp=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},AA=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"}},ip=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"}};ip.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var CE=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"}};CE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var BU=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uh(){let t=FF(),e=QF(t);if(!e.scp)throw BU;let r=e.scp.split(" ");if(r.length===0)throw BU;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw BU;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 BU}function sUe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(MF(r),MF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function oUe(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"&&sUe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&sUe(t.signed_url)}var vU=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())})},mie=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=FF();this.baseUrl=rFe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new zi(e,[new $a(s)])}request(e,r,i,n){return vU(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>vU(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 vU(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(),ft(`[Response] - ${a.message.statusCode}`),ft(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(oUe(u),ft(`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(CE.isUsageErrorMessage(u.msg))throw new CE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&ft(`Raw Body: ${n}`),a instanceof CE)throw a;if(ip.isNetworkErrorCode(a?.code))throw new ip(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);Ct(`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?[lr.BadGateway,lr.GatewayTimeout,lr.InternalServerError,lr.ServiceUnavailable,lr.TooManyRequests].includes(e):!1}sleep(e){return vU(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 mie(ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new SU(e)}var hI=O(require("fs"),1);var fI=require("path");function aUe(t){if(!hI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!hI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}function cUe(t,e){let r=[];e=(0,fI.normalize)(e),e=(0,fI.resolve)(e);for(let i of t){let n=hI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");pie(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,fI.normalize)(i),i=(0,fI.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,"");pie(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}return r}var lUe=O(require("crypto"),1),fUe=O(require("stream"),1);var uUe=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&&ls("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);Ct(`Redirecting to blob download url: ${w9e(l)}`);try{Ct(`Starting download of artifact to: ${r}`);let f=yield C9e(l,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,ft(`Computed digest: ${f.sha256Digest}`),ft(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:n}})}function B9e(){return uS(this,arguments,void 0,function*(t=iFe()){return(yield uir(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield mae.default.mkdir(t,{recursive:!0})),t})}var fir=5,hir=[400,401,403,404,422];function lS(t,e=fir,r=hir){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]}var v9e="6.0.0";function ZE(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})})}ZE.VERSION=v9e;var R9e=O(_9e(),1);var dir="0.0.0-development";function pir(t){return t.request!==void 0}async function x9e(t,e,r,i){if(!pir(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 mir(t,e,r,i){let n=new R9e.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(Air.bind(null,t,e,r),i)}async function Air(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 Xd(n.data.errors[0].message,500,{request:i,response:n});return x9e(t,e,s,i)}return n}function e0(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",x9e.bind(null,r,i)),t.hook.wrap("request",mir.bind(null,r,i))),i}e0.VERSION=dir;var T9e=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 V3(t,e,r,i,n){return T9e(this,void 0,void 0,function*(){var s;let[o,a]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},l=yield LA(n,c,e0,ZE).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 xl(`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 rp(`Artifact not found for name: ${t}
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"}};CE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var BU=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uh(){let t=FF(),e=QF(t);if(!e.scp)throw BU;let r=e.scp.split(" ");if(r.length===0)throw BU;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw BU;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 BU}function oUe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(MF(r),MF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function aUe(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"&&oUe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&oUe(t.signed_url)}var vU=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())})},Aie=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=FF();this.baseUrl=iFe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new zi(e,[new Wa(s)])}request(e,r,i,n){return vU(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>vU(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 vU(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(),ft(`[Response] - ${a.message.statusCode}`),ft(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(aUe(u),ft(`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(CE.isUsageErrorMessage(u.msg))throw new CE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&ft(`Raw Body: ${n}`),a instanceof CE)throw a;if(ip.isNetworkErrorCode(a?.code))throw new ip(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);Ct(`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?[lr.BadGateway,lr.GatewayTimeout,lr.InternalServerError,lr.ServiceUnavailable,lr.TooManyRequests].includes(e):!1}sleep(e){return vU(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 Aie(ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new SU(e)}var hI=O(require("fs"),1);var fI=require("path");function cUe(t){if(!hI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!hI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}function uUe(t,e){let r=[];e=(0,fI.normalize)(e),e=(0,fI.resolve)(e);for(let i of t){let n=hI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");mie(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,fI.normalize)(i),i=(0,fI.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,"");mie(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&&ls("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);Ct(`Redirecting to blob download url: ${C9e(l)}`);try{Ct(`Starting download of artifact to: ${r}`);let f=yield I9e(l,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,ft(`Computed digest: ${f.sha256Digest}`),ft(`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 uS(this,arguments,void 0,function*(t=nFe()){return(yield lir(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield Aae.default.mkdir(t,{recursive:!0})),t})}var hir=5,dir=[400,401,403,404,422];function lS(t,e=hir,r=dir){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]}var _9e="6.0.0";function ZE(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})})}ZE.VERSION=_9e;var T9e=O(x9e(),1);var pir="0.0.0-development";function mir(t){return t.request!==void 0}async function R9e(t,e,r,i){if(!mir(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 Air(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(gir.bind(null,t,e,r),i)}async function gir(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 Xd(n.data.errors[0].message,500,{request:i,response:n});return R9e(t,e,s,i)}return n}function e0(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",Air.bind(null,r,i))),i}e0.VERSION=pir;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 V3(t,e,r,i,n){return N9e(this,void 0,void 0,function*(){var s;let[o,a]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},l=yield LA(n,c,e0,ZE).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 xl(`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 rp(`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],ft(`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 N9e(t){return T9e(this,void 0,void 0,function*(){var e;let r=lh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=uh(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Yi.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new rp(`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 f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],ft(`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:Yi.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new rp(`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],ft(`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?Ac.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var D9e=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 O9e(t,e,r,i,n){return D9e(this,void 0,void 0,function*(){var s;let[o,a]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},u=LA(n,c,e0,ZE),l=yield V3(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 xl(`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 P9e(t){return D9e(this,void 0,void 0,function*(){let e=lh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Yi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new rp(`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],ft(`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 Ct(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var k9e=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())})},z3=oFe(),$3=100,gir=Math.ceil(z3/$3);function Q9e(t,e,r,i){return k9e(this,arguments,void 0,function*(n,s,o,a,c=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=lS(YE),h={log:void 0,userAgent:ch(),previews:void 0,retry:l,request:f},d=LA(a,h,e0,ZE),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:$3,page:m}),y=Math.ceil(A.total_count/$3),g=A.total_count;g>z3&&(ls(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${z3}. Results will be incomplete as only the first ${z3} artifacts will be returned`),y=gir);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++){ft(`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:$3,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=M9e(u)),Ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}function L9e(){return k9e(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?Ac.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=M9e(o)),Ct(`Found ${o.length} artifact(s)`),{artifacts:o}})}function M9e(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())})},yir=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},fS=class{uploadArtifact(e,r,i,n){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;return Ize(e,r,i,n)}catch(s){throw ls(`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 a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],ft(`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?Ac.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]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},u=LA(n,c,e0,ZE),l=yield V3(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 xl(`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:Yi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new rp(`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],ft(`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 Ct(`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())})},z3=aFe(),$3=100,yir=Math.ceil(z3/$3);function L9e(t,e,r,i){return Q9e(this,arguments,void 0,function*(n,s,o,a,c=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=lS(YE),h={log:void 0,userAgent:ch(),previews:void 0,retry:l,request:f},d=LA(a,h,e0,ZE),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:$3,page:m}),y=Math.ceil(A.total_count/$3),g=A.total_count;g>z3&&(ls(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${z3}. Results will be incomplete as only the first ${z3} artifacts will be returned`),y=yir);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++){ft(`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:$3,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)),Ct(`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?Ac.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=F9e(o)),Ct(`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())})},Eir=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},fS=class{uploadArtifact(e,r,i,n){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;return Sze(e,r,i,n)}catch(s){throw ls(`Artifact upload failed with error: ${s}.
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(zC())throw new AA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=yir(r,["findBy"]);return I9e(e,i,n,s,o)}return S9e(e,r)}catch(i){throw ls(`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 kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=Eir(r,["findBy"]);return S9e(e,i,n,s,o)}return B9e(e,r)}catch(i){throw ls(`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(zC())throw new AA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return Q9e(r,i,n,s,e?.latest)}return L9e(e?.latest)}catch(r){throw ls(`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 kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;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 ls(`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(zC())throw new AA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return V3(e,i,n,s,o)}return N9e(e)}catch(i){throw ls(`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 kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return V3(e,i,n,s,o)}return D9e(e)}catch(i){throw ls(`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(zC())throw new AA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:o}}=r;return O9e(e,s,i,n,o)}return P9e(e)}catch(i){throw ls(`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 kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;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 ls(`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 dri=new fS;var W3=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=yae.default.basename(e.filename),i=new fS;$(`Uploading ${r} as an artifact`);let n=yae.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 o=s.size??F9e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${s.id}`;return $(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Dae=O(U9e(),1);function r$e(t){return typeof t>"u"||t===null}function Eir(t){return typeof t=="object"&&t!==null}function bir(t){return Array.isArray(t)?t:r$e(t)?[]:[t]}function wir(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 Cir(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Iir(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Sir=r$e,Bir=Eir,vir=bir,_ir=Cir,xir=Iir,Rir=wir,gn={isNothing:Sir,isObject:Bir,toArray:vir,repeat:_ir,isNegativeZero:xir,extend:Rir};function i$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 pri=new fS;var W3=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=Eae.default.basename(e.filename),i=new fS;$(`Uploading ${r} as an artifact`);let n=Eae.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 o=s.size??U9e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${s.id}`;return $(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Oae=O(q9e(),1);function i$e(t){return typeof t>"u"||t===null}function bir(t){return typeof t=="object"&&t!==null}function wir(t){return Array.isArray(t)?t:i$e(t)?[]:[t]}function Cir(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 Iir(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Sir(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Bir=i$e,vir=bir,_ir=wir,xir=Iir,Rir=Sir,Tir=Cir,yn={isNothing:Bir,isObject:vir,toArray:_ir,repeat:xir,isNegativeZero:Rir,extend:Tir};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+=`
`+t.mark.snippet),i+" "+r):i}function MN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=i$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+": "+i$e(this,e)};var Ca=MN;function Eae(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 bae(t,e){return gn.repeat(" ",e-t.length)+t}function Tir(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=Eae(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=gn.repeat(" ",e.indent)+bae((t.line-c+1).toString(),l)+" | "+u.str+`
`+a;for(u=Eae(t.buffer,i[o],n[o],t.position,f),a+=gn.repeat(" ",e.indent)+bae((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=Eae(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=gn.repeat(" ",e.indent)+bae((t.line+c+1).toString(),l)+" | "+u.str+`
`;return a.replace(/\n$/,"")}var Nir=Tir,Dir=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Oir=["scalar","sequence","mapping"];function Pir(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kir(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Dir.indexOf(r)===-1)throw new Ca('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=Pir(e.styleAliases||null),Oir.indexOf(this.kind)===-1)throw new Ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Us=kir;function q9e(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 Qir(){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 Cae(t){return this.extend(t)}Cae.prototype.extend=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 Ca("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Us))throw new Ca("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ca("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 Ca("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 Ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Cae.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=q9e(n,"implicit"),n.compiledExplicit=q9e(n,"explicit"),n.compiledTypeMap=Qir(n.compiledImplicit,n.compiledExplicit),n};var Lir=Cae,Mir=new Us("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Fir=new Us("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Uir=new Us("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),qir=new Lir({explicit:[Mir,Fir,Uir]});function Gir(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Hir(){return null}function jir(t){return t===null}var Vir=new Us("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gir,construct:Hir,predicate:jir,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zir(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 $ir(t){return t==="true"||t==="True"||t==="TRUE"}function Wir(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Jir=new Us("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zir,construct:$ir,predicate:Wir,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 Yir(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Kir(t){return 48<=t&&t<=55}function Xir(t){return 48<=t&&t<=57}function Zir(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(!Yir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Kir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Xir(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function enr(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 ynr(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=_ae;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 Enr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=_ae,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 bnr(t){var e="",r=0,i,n,s=t.length,o=_ae;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 wnr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Cnr=new Us("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ynr,construct:Enr,predicate:wnr,represent:bnr}),Inr=Object.prototype.hasOwnProperty,Snr=Object.prototype.toString;function Bnr(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,Snr.call(n)!=="[object Object]")return!1;for(s in n)if(Inr.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 vnr(t){return t!==null?t:[]}var _nr=new Us("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bnr,construct:vnr}),xnr=Object.prototype.toString;function Rnr(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],xnr.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Tnr(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 Nnr=new Us("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rnr,construct:Tnr}),Dnr=Object.prototype.hasOwnProperty;function Onr(t){if(t===null)return!0;var e,r=t;for(e in r)if(Dnr.call(r,e)&&r[e]!==null)return!1;return!0}function Pnr(t){return t!==null?t:{}}var knr=new Us("tag:yaml.org,2002:set",{kind:"mapping",resolve:Onr,construct:Pnr}),o$e=fnr.extend({implicit:[mnr,gnr],explicit:[Cnr,_nr,Nnr,knr]}),GA=Object.prototype.hasOwnProperty,Y3=1,a$e=2,c$e=3,K3=4,wae=1,Qnr=2,G9e=3,Lnr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mnr=/[\x85\u2028\u2029]/,Fnr=/[,\[\]\{\}]/,u$e=/^(?:!|!!|![a-z\-]+!)$/i,l$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function H9e(t){return Object.prototype.toString.call(t)}function Ih(t){return t===10||t===13}function r0(t){return t===9||t===32}function Ia(t){return t===9||t===32||t===10||t===13}function dS(t){return t===44||t===91||t===93||t===123||t===125}function Unr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qnr(t){return t===120?2:t===117?4:t===85?8:0}function Gnr(t){return 48<=t&&t<=57?t-48:-1}function j9e(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 Hnr(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function f$e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var h$e=new Array(256),d$e=new Array(256);for(t0=0;t0<256;t0++)h$e[t0]=j9e(t0)?1:0,d$e[t0]=j9e(t0);var t0;function jnr(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||o$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 p$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=Nir(r),new Ca(e,r)}function Me(t,e){throw p$e(t,e)}function X3(t,e){t.onWarning&&t.onWarning.call(null,p$e(t,e))}var V9e={YAML:function(e,r,i){var n,s,o;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),o=parseInt(n[2],10),s!==1&&Me(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&X3(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Me(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],u$e.test(n)||Me(e,"ill-formed tag handle (first argument) of the TAG directive"),GA.call(e.tagMap,n)&&Me(e,'there is a previously declared suffix for "'+n+'" tag handle'),l$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}};function qA(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||Me(t,"expected valid JSON character");else Lnr.test(a)&&Me(t,"the stream contains non-printable characters");t.result+=a}}function z9e(t,e,r,i){var n,s,o,a;for(gn.isObject(r)||Me(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],GA.call(e,s)||(f$e(e,s,r[s]),i[s]=!0)}function pS(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])&&Me(t,"nested arrays are not supported inside keys"),typeof n=="object"&&H9e(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&H9e(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)z9e(t,e,s[u],r);else z9e(t,e,s,r);else!t.json&&!GA.call(r,n)&&GA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Me(t,"duplicated mapping key")),f$e(e,n,s),delete r[n];return e}function xae(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}function Zi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;r0(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(xae(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&&X3(t,"deficient indentation"),i}function t4(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||Ia(r)))}function Rae(t,e){e===1?t.result+=" ":e>1&&(t.result+=gn.repeat(`
`,e-1))}function Vnr(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),Ia(d)||dS(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),Ia(n)||r&&dS(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),Ia(n)||r&&dS(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Ia(i))break}else{if(t.position===t.lineStart&&t4(t)||r&&dS(d))break;if(Ih(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Zi(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&&(qA(t,s,o,!1),Rae(t,t.line-c),s=o=t.position,a=!1),r0(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return qA(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function znr(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(qA(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)?(qA(t,i,n,!0),Rae(t,Zi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&t4(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")}function $nr(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 qA(t,r,t.position,!0),t.position++,!0;if(a===92){if(qA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ih(a))Zi(t,!1,e);else if(a<256&&h$e[a])t.result+=d$e[a],t.position++;else if((o=qnr(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Unr(a))>=0?s=(s<<4)+o:Me(t,"expected hexadecimal character");t.result+=Hnr(s),t.position++}else Me(t,"unknown escape sequence");r=i=t.position}else Ih(a)?(qA(t,r,i,!0),Rae(t,Zi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&t4(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")}function Wnr(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(Zi(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&&Me(t,"expected the node content, but found ','"):Me(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),Ia(u)&&(f=h=!0,t.position++,Zi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,mS(t,e,Y3,!1,!0),y=t.tag,A=t.result,Zi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Zi(t,!0,e),mS(t,e,Y3,!1,!0),g=t.result),d?pS(t,a,m,y,A,g,i,n,s):f?a.push(pS(t,null,m,y,A,g,i,n,s)):a.push(A),Zi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Me(t,"unexpected end of the stream within a flow collection")}function Jnr(t,e){var r,i,n=wae,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)wae===n?n=f===43?G9e:Qnr:Me(t,"repeat of a chomping mode identifier");else if((l=Gnr(f))>=0)l===0?Me(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Me(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(r0(f)){do f=t.input.charCodeAt(++t.position);while(r0(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Ih(f)&&f!==0)}for(;f!==0;){for(xae(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===G9e?t.result+=gn.repeat(`
`,s?1+c:c):n===wae&&s&&(t.result+=`
`);break}for(i?r0(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);qA(t,r,t.position,!1)}return!0}function $9e(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,Me(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!Ia(o))));){if(a=!0,t.position++,Zi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,mS(t,e,c$e,!1,!0),s.push(t.result),Zi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Me(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 Ynr(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,Me(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(E===63||E===58)&&Ia(i))E===63?(y&&(pS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!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,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!mS(t,r,a$e,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);r0(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),Ia(E)||Me(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(pS(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)Me(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Me(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),mS(t,e,K3,!0,n)&&(y?m=t.result:A=t.result),y||(pS(t,f,h,d,m,A,o,a,c),d=m=A=null),Zi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Me(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&pS(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function Knr(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&&Me(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)):Me(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ia(o);)o===33&&(i?Me(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),u$e.test(n)||Me(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),Fnr.test(s)&&Me(t,"tag suffix cannot contain flow indicator characters")}s&&!l$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:GA.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}function Xnr(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&&!Ia(r)&&!dS(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}function Znr(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&&!Ia(i)&&!dS(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),GA.call(t.anchorMap,r)||Me(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Zi(t,!0,-1),!0}function mS(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=K3===r||c$e===r,i&&Zi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;Knr(t)||Xnr(t);)Zi(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||K3===r)&&(Y3===r||a$e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&($9e(t,y)||Ynr(t,y,A))||Wnr(t,A)?l=!0:(o&&Jnr(t,A)||znr(t,A)||$nr(t,A)?l=!0:Znr(t)?(l=!0,(t.tag!==null||t. Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new jnr(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;)esr(r);return r.documents}function tsr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=m$e(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function rsr(t,e){var r=m$e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ca("expected a single document in the stream, but found more")}}var isr=tsr,nsr=rsr,A$e={loadAll:isr,load:nsr},g$e=Object.prototype.toString,y$e=Object.prototype.hasOwnProperty,Tae=65279,ssr=9,FN=10,osr=13,asr=32,csr=33,usr=34,Iae=35,lsr=37,fsr=38,hsr=39,dsr=42,E$e=44,psr=45,Z3=58,msr=61,Asr=62,gsr=63,ysr=64,b$e=91,w$e=93,Esr=96,C$e=123,bsr=124,I$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 wsr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Csr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Isr(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&&y$e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function Ssr(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 Ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+gn.repeat("0",i-e.length)+e}var Bsr=1,UN=2;function vsr(t){this.schema=t.schema||o$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=Isr(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:Bsr,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 W9e(t,e){for(var r=gn.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`+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 bae(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 wae(t,e){return yn.repeat(" ",e-t.length)+t}function Nir(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=bae(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=yn.repeat(" ",e.indent)+wae((t.line-c+1).toString(),l)+" | "+u.str+`
`+a;for(u=bae(t.buffer,i[o],n[o],t.position,f),a+=yn.repeat(" ",e.indent)+wae((t.line+1).toString(),l)+" | "+u.str+`
`,a+=yn.repeat("-",e.indent+l+3+u.pos)+`^
`,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)u=bae(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=yn.repeat(" ",e.indent)+wae((t.line+c+1).toString(),l)+" | "+u.str+`
`;return a.replace(/\n$/,"")}var Dir=Nir,Oir=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Pir=["scalar","sequence","mapping"];function kir(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Qir(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Oir.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=kir(e.styleAliases||null),Pir.indexOf(this.kind)===-1)throw new Ia('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Us=Qir;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 Lir(){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 Iae(t){return this.extend(t)}Iae.prototype.extend=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 Ia("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Us))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 Us))throw new Ia("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Iae.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=Lir(n.compiledImplicit,n.compiledExplicit),n};var Mir=Iae,Fir=new Us("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Uir=new Us("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),qir=new Us("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Gir=new Mir({explicit:[Fir,Uir,qir]});function Hir(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function jir(){return null}function Vir(t){return t===null}var zir=new Us("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hir,construct:jir,predicate:Vir,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $ir(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 Wir(t){return t==="true"||t==="True"||t==="TRUE"}function Jir(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Yir=new Us("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$ir,construct:Wir,predicate:Jir,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 Kir(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Xir(t){return 48<=t&&t<=55}function Zir(t){return 48<=t&&t<=57}function enr(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(!Kir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Xir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Zir(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function tnr(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 Enr(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=xae;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 bnr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=xae,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 wnr(t){var e="",r=0,i,n,s=t.length,o=xae;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 Cnr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Inr=new Us("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Enr,construct:bnr,predicate:Cnr,represent:wnr}),Snr=Object.prototype.hasOwnProperty,Bnr=Object.prototype.toString;function vnr(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,Bnr.call(n)!=="[object Object]")return!1;for(s in n)if(Snr.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 _nr(t){return t!==null?t:[]}var xnr=new Us("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vnr,construct:_nr}),Rnr=Object.prototype.toString;function Tnr(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],Rnr.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Nnr(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 Dnr=new Us("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Tnr,construct:Nnr}),Onr=Object.prototype.hasOwnProperty;function Pnr(t){if(t===null)return!0;var e,r=t;for(e in r)if(Onr.call(r,e)&&r[e]!==null)return!1;return!0}function knr(t){return t!==null?t:{}}var Qnr=new Us("tag:yaml.org,2002:set",{kind:"mapping",resolve:Pnr,construct:knr}),a$e=hnr.extend({implicit:[Anr,ynr],explicit:[Inr,xnr,Dnr,Qnr]}),GA=Object.prototype.hasOwnProperty,Y3=1,c$e=2,u$e=3,K3=4,Cae=1,Lnr=2,H9e=3,Mnr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Fnr=/[\x85\u2028\u2029]/,Unr=/[,\[\]\{\}]/,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 r0(t){return t===9||t===32}function Sa(t){return t===9||t===32||t===10||t===13}function dS(t){return t===44||t===91||t===93||t===123||t===125}function qnr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Gnr(t){return t===120?2:t===117?4:t===85?8:0}function Hnr(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 jnr(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(t0=0;t0<256;t0++)d$e[t0]=V9e(t0)?1:0,p$e[t0]=V9e(t0);var t0;function Vnr(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=Dir(r),new Ia(e,r)}function Me(t,e){throw m$e(t,e)}function X3(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&&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),o=parseInt(n[2],10),s!==1&&Me(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&X3(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Me(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],l$e.test(n)||Me(e,"ill-formed tag handle (first argument) of the TAG directive"),GA.call(e.tagMap,n)&&Me(e,'there is a previously declared suffix for "'+n+'" tag handle'),f$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}};function qA(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||Me(t,"expected valid JSON character");else Mnr.test(a)&&Me(t,"the stream contains non-printable characters");t.result+=a}}function $9e(t,e,r,i){var n,s,o,a;for(yn.isObject(r)||Me(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],GA.call(e,s)||(h$e(e,s,r[s]),i[s]=!0)}function pS(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])&&Me(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&&!GA.call(r,n)&&GA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Me(t,"duplicated mapping key")),h$e(e,n,s),delete r[n];return e}function Rae(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}function Zi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;r0(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(Rae(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&&X3(t,"deficient indentation"),i}function t4(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 Tae(t,e){e===1?t.result+=" ":e>1&&(t.result+=yn.repeat(`
`,e-1))}function znr(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)||dS(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&&dS(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&&dS(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Sa(i))break}else{if(t.position===t.lineStart&&t4(t)||r&&dS(d))break;if(Ih(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Zi(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&&(qA(t,s,o,!1),Tae(t,t.line-c),s=o=t.position,a=!1),r0(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return qA(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function $nr(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(qA(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)?(qA(t,i,n,!0),Tae(t,Zi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&t4(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")}function Wnr(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 qA(t,r,t.position,!0),t.position++,!0;if(a===92){if(qA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ih(a))Zi(t,!1,e);else if(a<256&&d$e[a])t.result+=p$e[a],t.position++;else if((o=Gnr(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=qnr(a))>=0?s=(s<<4)+o:Me(t,"expected hexadecimal character");t.result+=jnr(s),t.position++}else Me(t,"unknown escape sequence");r=i=t.position}else Ih(a)?(qA(t,r,i,!0),Tae(t,Zi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&t4(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")}function Jnr(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(Zi(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&&Me(t,"expected the node content, but found ','"):Me(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++,Zi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,mS(t,e,Y3,!1,!0),y=t.tag,A=t.result,Zi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Zi(t,!0,e),mS(t,e,Y3,!1,!0),g=t.result),d?pS(t,a,m,y,A,g,i,n,s):f?a.push(pS(t,null,m,y,A,g,i,n,s)):a.push(A),Zi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Me(t,"unexpected end of the stream within a flow collection")}function Ynr(t,e){var r,i,n=Cae,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)Cae===n?n=f===43?H9e:Lnr:Me(t,"repeat of a chomping mode identifier");else if((l=Hnr(f))>=0)l===0?Me(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Me(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(r0(f)){do f=t.input.charCodeAt(++t.position);while(r0(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Ih(f)&&f!==0)}for(;f!==0;){for(Rae(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+=yn.repeat(`
`,s?1+c:c):n===Cae&&s&&(t.result+=`
`);break}for(i?r0(f)?(u=!0,t.result+=yn.repeat(`
`,s?1+c:c)):u?(u=!1,t.result+=yn.repeat(`
`,c+1)):c===0?s&&(t.result+=" "):t.result+=yn.repeat(`
`,c):t.result+=yn.repeat(`
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ih(f)&&f!==0;)f=t.input.charCodeAt(++t.position);qA(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,Me(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++,Zi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,mS(t,e,u$e,!1,!0),s.push(t.result),Zi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Me(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 Knr(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,Me(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&&(pS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!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,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!mS(t,r,c$e,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);r0(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),Sa(E)||Me(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(pS(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)Me(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Me(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),mS(t,e,K3,!0,n)&&(y?m=t.result:A=t.result),y||(pS(t,f,h,d,m,A,o,a,c),d=m=A=null),Zi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Me(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&pS(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function Xnr(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&&Me(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)):Me(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Sa(o);)o===33&&(i?Me(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),l$e.test(n)||Me(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),Unr.test(s)&&Me(t,"tag suffix cannot contain flow indicator characters")}s&&!f$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:GA.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}function Znr(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&&!Sa(r)&&!dS(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}function esr(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)&&!dS(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),GA.call(t.anchorMap,r)||Me(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Zi(t,!0,-1),!0}function mS(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=K3===r||u$e===r,i&&Zi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;Xnr(t)||Znr(t);)Zi(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||K3===r)&&(Y3===r||c$e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(W9e(t,y)||Knr(t,y,A))||Jnr(t,A)?l=!0:(o&&Ynr(t,A)||$nr(t,A)||Wnr(t,A)?l=!0:esr(t)?(l=!0,(t.tag!==null||t. Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Vnr(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;)tsr(r);return r.documents}function rsr(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 isr(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 nsr=rsr,ssr=isr,g$e={loadAll:nsr,load:ssr},y$e=Object.prototype.toString,E$e=Object.prototype.hasOwnProperty,Nae=65279,osr=9,FN=10,asr=13,csr=32,usr=33,lsr=34,Sae=35,fsr=37,hsr=38,dsr=39,psr=42,b$e=44,msr=45,Z3=58,Asr=61,gsr=62,ysr=63,Esr=64,w$e=91,C$e=93,bsr=96,I$e=123,wsr=124,S$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 Csr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Isr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ssr(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 Bsr(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+yn.repeat("0",i-e.length)+e}var vsr=1,UN=2;function _sr(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=yn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Ssr(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:vsr,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=yn.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 Sae(t,e){return`
`+gn.repeat(" ",t.indent*e)}function _sr(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 e4(t){return t===asr||t===ssr}function qN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Tae||65536<=t&&t<=1114111}function J9e(t){return qN(t)&&t!==Tae&&t!==osr&&t!==FN}function Y9e(t,e,r){var i=J9e(t),n=i&&!e4(t);return(r?i:i&&t!==E$e&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e)&&t!==Iae&&!(e===Z3&&!n)||J9e(e)&&!e4(e)&&t===Iae||e===Z3&&n}function xsr(t){return qN(t)&&t!==Tae&&!e4(t)&&t!==psr&&t!==gsr&&t!==Z3&&t!==E$e&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==Iae&&t!==fsr&&t!==dsr&&t!==csr&&t!==bsr&&t!==msr&&t!==Asr&&t!==hsr&&t!==usr&&t!==lsr&&t!==ysr&&t!==Esr}function Rsr(t){return!e4(t)&&t!==Z3}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 S$e(t){var e=/^\n* /;return e.test(t)}var B$e=1,Bae=2,v$e=3,_$e=4,hS=5;function Tsr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=xsr(LN(t,0))&&Rsr(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 hS;A=A&&Y9e(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 hS;A=A&&Y9e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!n(t)?B$e:s===UN?hS:Bae:r>9&&S$e(t)?hS:o?s===UN?hS:Bae:h?_$e:v$e}function Nsr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===UN?'""':"''";if(!t.noCompatMode&&(wsr.indexOf(e)!==-1||Csr.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 _sr(t,u)}switch(Tsr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case B$e:return e;case Bae:return"'"+e.replace(/'/g,"''")+"'";case v$e:return"|"+K9e(e,t.indent)+X9e(W9e(e,s));case _$e:return">"+K9e(e,t.indent)+X9e(W9e(Dsr(e,o),s));case hS:return'"'+Osr(e)+'"';default:throw new Ca("impossible error: invalid scalar style")}})()}function K9e(t,e){var r=S$e(t)?String(e):"",i=t[t.length-1]===`
`&&(s+=r),s+=o;return s}function Bae(t,e){return`
`+yn.repeat(" ",t.indent*e)}function xsr(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 e4(t){return t===csr||t===osr}function qN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Nae||65536<=t&&t<=1114111}function Y9e(t){return qN(t)&&t!==Nae&&t!==asr&&t!==FN}function K9e(t,e,r){var i=Y9e(t),n=i&&!e4(t);return(r?i:i&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e)&&t!==Sae&&!(e===Z3&&!n)||Y9e(e)&&!e4(e)&&t===Sae||e===Z3&&n}function Rsr(t){return qN(t)&&t!==Nae&&!e4(t)&&t!==msr&&t!==ysr&&t!==Z3&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e&&t!==Sae&&t!==hsr&&t!==psr&&t!==usr&&t!==wsr&&t!==Asr&&t!==gsr&&t!==dsr&&t!==lsr&&t!==fsr&&t!==Esr&&t!==bsr}function Tsr(t){return!e4(t)&&t!==Z3}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,vae=2,_$e=3,x$e=4,hS=5;function Nsr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=Rsr(LN(t,0))&&Tsr(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 hS;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 hS;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?hS:vae:r>9&&B$e(t)?hS:o?s===UN?hS:vae:h?x$e:_$e}function Dsr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===UN?'""':"''";if(!t.noCompatMode&&(Csr.indexOf(e)!==-1||Isr.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 xsr(t,u)}switch(Nsr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case v$e:return e;case vae: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(Osr(e,o),s));case hS:return'"'+Psr(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]===`
`,n=i&&(t[t.length-2]===`
`||t===`
`),s=n?"+":i?"":"-";return r+s+`
`}function X9e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Dsr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,Z9e(t.slice(0,u),e)})(),n=t[0]===`
`}function Z9e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Osr(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!==""?`
`:"")+Z9e(c,e),n=s}return i}function Z9e(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+=`
`:"")+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 Osr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=LN(t,n),i=qs[r],!i&&qN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Ssr(r);return e}function Psr(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)),(yp(t,e,a,!1,!1)||typeof a>"u"&&yp(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function e$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)),(yp(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&yp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Sae(t,e)),t.dump&&FN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function ksr(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)),yp(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yp(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function Qsr(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 Ca("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||n!=="")&&(h+=Sae(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),yp(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+=Sae(t,e)),yp(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 t$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,g$e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(y$e.call(a.represent,c))i=a.represent[c](e,c);else throw new Ca("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function yp(t,e,r,i,n,s,o){t.tag=null,t.dump=r,t$e(t,r,!1)||t$e(t,r,!0);var a=g$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?(Qsr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(ksr(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?e$e(t,e-1,t.dump,n):e$e(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Psr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Nsr(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ca("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 Lsr(t,e){var r=[],i=[],n,s;for(vae(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function vae(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)vae(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)vae(t[i[n]],e,r)}function Msr(t,e){e=e||{};var r=new vsr(e);r.noRefs||Lsr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),yp(r,0,i,!0,!0)?r.dump+`
`:""}var Fsr=Msr,Usr={dump:Fsr};function Nae(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 wri=A$e.load,Cri=A$e.loadAll,x$e=Usr.dump;var Iri=Nae("safeLoad","load"),Sri=Nae("safeLoadAll","loadAll"),Bri=Nae("safeDump","dump");var R$e=O(require("os"),1);var r4=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?R$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=y9.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=`./${gt.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>${Ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Ke.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>${Ke.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>"),Ke.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Dae.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Dae.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(x$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>"),$("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 i0=O(require("fs"),1),Oae=O(require("path"),1);var Ep=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Ke.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ke.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=pc(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=pc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Ke.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&&y_(s),[n,s]}};var Pae=O(require("fs"),1),T$e=O(require("path"),1);var AS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Ke.generateRandomString()}.json`}getMetadataFilePath(){return T$e.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Pae.default.existsSync(e))return;let r=Pae.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(!Ke.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 qe.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=pc(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=Ke.parseBool(o);break;default:r[s]=o}}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,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=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,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=pc(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
`+t.slice(o+1):c+=t.slice(n),c.slice(1)}function Psr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=LN(t,n),i=qs[r],!i&&qN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Bsr(r);return e}function ksr(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)),(yp(t,e,a,!1,!1)||typeof a>"u"&&yp(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)),(yp(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&yp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Bae(t,e)),t.dump&&FN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function Qsr(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)),yp(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yp(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function Lsr(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+=Bae(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),yp(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+=Bae(t,e)),yp(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 yp(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?(Lsr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Qsr(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)):(ksr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Dsr(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 Msr(t,e){var r=[],i=[],n,s;for(_ae(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function _ae(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)_ae(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)_ae(t[i[n]],e,r)}function Fsr(t,e){e=e||{};var r=new _sr(e);r.noRefs||Msr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),yp(r,0,i,!0,!0)?r.dump+`
`:""}var Usr=Fsr,qsr={dump:Usr};function Dae(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 Cri=g$e.load,Iri=g$e.loadAll,R$e=qsr.dump;var Sri=Dae("safeLoad","load"),Bri=Dae("safeLoadAll","loadAll"),vri=Dae("safeDump","dump");var T$e=O(require("os"),1);var r4=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=y9.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=`./${gt.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>${Ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Ke.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>${Ke.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>"),Ke.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Oae.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Oae.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>"),$("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 i0=O(require("fs"),1),Pae=O(require("path"),1);var Ep=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Ke.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ke.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=pc(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=pc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Ke.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&&y_(s),[n,s]}};var kae=O(require("fs"),1),N$e=O(require("path"),1);var AS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Ke.generateRandomString()}.json`}getMetadataFilePath(){return N$e.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!kae.default.existsSync(e))return;let r=kae.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(!Ke.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 qe.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=pc(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=Ke.parseBool(o);break;default:r[s]=o}}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,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=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,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=pc(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"]);X(`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 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 Mot=require("crypto"),sd=O(require("fs"),1),Rg=O(require("path"),1);var K2=O(HN(),1),od=O(kit(),1),Fot=O(pme(),1),ZB=O(Not(),1);var dAe=O(HN(),1);var Oot=O(Sl(),1);var Dot="application/vnd.oci.empty.v1+json";var fm=class{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?(X(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(X(`Cosign.isAvailable error: ${r}`),!1));return X(`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 X("Cosign.versionSatisfies false: undefined version"),!1;let n=Oot.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return X(`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===dAe.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Dot&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===dAe.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var pAe=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=Dt.tmpName({tmpdir:Dt.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){$(`[command]${o.command} ${o.args.join(" ")}`),$("Skipped create command");return}return await qe.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(!pAe.default.existsSync(i))return;let c=pAe.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 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",sb="https://search.sigstore.dev";var Wxr="slsaprovenance1",Tg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new fm,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);$(`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 o=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),$(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 si(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];$(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await qe.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=fm.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 Fot=require("crypto"),sd=O(require("fs"),1),Rg=O(require("path"),1);var K2=O(HN(),1),od=O(Qit(),1),Uot=O(mme(),1),ZB=O(Dot(),1);var pAe=O(HN(),1);var Pot=O(Sl(),1);var Oot="application/vnd.oci.empty.v1+json";var fm=class{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?(X(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(X(`Cosign.isAvailable error: ${r}`),!1));return X(`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 X("Cosign.versionSatisfies false: undefined version"),!1;let n=Pot.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return X(`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===pAe.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Oot&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===pAe.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var mAe=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=Dt.tmpName({tmpdir:Dt.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){$(`[command]${o.command} ${o.args.join(" ")}`),$("Skipped create command");return}return await qe.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(!mAe.default.existsSync(i))return;let c=mAe.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 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 kot="application/vnd.in-toto+json";var Qot="https://fulcio.sigstore.dev",Lot="https://rekor.sigstore.dev",Mot="https://timestamp.sigstore.dev",sb="https://search.sigstore.dev";var Jxr="slsaprovenance1",Tg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new fm,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);$(`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 o=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),$(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 si(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];$(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await qe.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=fm.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(`
`);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&&$(`Uploaded to Rekor transparency log: ${sb}?logIndex=${d.tlogID}`),$(`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 si(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});$(`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);$(`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){$(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await qe.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=fm.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,s;$(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<n;o++){let a=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=fm.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(`
`);if(s=new Error(`Cosign verify command failed with errors:
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))$(`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);$(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await si(`Signing ${s}`,async()=>{let o=n[s],a=Rg.default.join(Rg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){ns(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:Pot},i),l=t.parseBundle(u);$("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];$(` - ${f.name} (${h}:${d})`)}l.tlogID&&$(`Attestation signature uploaded to Rekor transparency log: ${sb}?logIndex=${l.tlogID}`),$(`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=Rg.default.dirname(n);await si(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=Rg.default.join(o,a.name);$(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Wxr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await qe.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){$("Verifying keyless verification bundle signature");let n=JSON.parse(sd.default.readFileSync(r,"utf-8")),s=(0,K2.bundleFromJSON)(n);$("Fetching Sigstore TUF trusted root metadata");let o=await Fot.getTrustedRoot(),a=(0,ZB.toTrustMaterial)(o);try{$("Verifying artifact signature");let c=(0,ZB.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 ZB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return X(`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),$(`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=Rg.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(Rg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=Rg.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
${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);$(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await si(`Signing ${s}`,async()=>{let o=n[s],a=Rg.default.join(Rg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){ss(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:kot},i),l=t.parseBundle(u);$("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];$(` - ${f.name} (${h}:${d})`)}l.tlogID&&$(`Attestation signature uploaded to Rekor transparency log: ${sb}?logIndex=${l.tlogID}`),$(`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=Rg.default.dirname(n);await si(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=Rg.default.join(o,a.name);$(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Jxr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await qe.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){$("Verifying keyless verification bundle signature");let n=JSON.parse(sd.default.readFileSync(r,"utf-8")),s=(0,K2.bundleFromJSON)(n);$("Fetching Sigstore TUF trusted root metadata");let o=await Uot.getTrustedRoot(),a=(0,ZB.toTrustMaterial)(o);try{$("Verifying artifact signature");let c=(0,ZB.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 ZB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return X(`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),$(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Qot,rekorURL:e?void 0:Lot,tsaServerURL:Mot}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Rg.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(Rg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=Rg.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 Uot=O(Sl(),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=Dt.tmpName({tmpdir:Dt.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){ns(r)}return e.buildkit}async getVersionWithinImage(e){return X(`BuildKit.getVersionWithinImage nodeName: ${e}`),Ni.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return X(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Ni.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 tv({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(X(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return X(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(X(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!Uot.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 Ni.isAvailable();return X(`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?(X(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(X(`Compose.isAvailable error: ${i}`),!1));return X(`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 dm=O(require("fs"),1),cd=O(require("os"),1),rv=O(require("path"),1);var m6=O(Sl(),1),AAe=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);X(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);X(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);X(`Install.download vspec: ${s}`);let o=m6.clean(s)||"";if(!m6.valid(o))throw new Error(`Invalid Compose version "${s}".`);let a=new xn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:rv.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 $(`Compose binary found in ${c}`),c;let u=AAe.format(i.downloadURL,s,this.filename());$(`Downloading ${u}`);let l=await Wc(u,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return $(`Cached to ${f}`),f}async installStandalone(e,r){$("Standalone mode"),r=r||Dt.tmpDir();let i=rv.default.join(r,"compose-bin-standalone");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"compose.exe":"compose",s=rv.default.join(i,n);return dm.default.copyFileSync(e,s),$("Fixing perms"),dm.default.chmodSync(s,"0755"),hf(i),$("Added Compose to PATH"),$(`Binary path: ${s}`),s}async installPlugin(e,r){$("Docker plugin mode"),r=r||Ni.configDir;let i=rv.default.join(r,"cli-plugins");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=rv.default.join(i,n);return dm.defaul Line truncated
`),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 qot=O(Sl(),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=Dt.tmpName({tmpdir:Dt.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){ss(r)}return e.buildkit}async getVersionWithinImage(e){return X(`BuildKit.getVersionWithinImage nodeName: ${e}`),Ni.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return X(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Ni.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 tv({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(X(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return X(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(X(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!qot.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 Ni.isAvailable();return X(`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?(X(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(X(`Compose.isAvailable error: ${i}`),!1));return X(`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 dm=O(require("fs"),1),cd=O(require("os"),1),rv=O(require("path"),1);var m6=O(Sl(),1),gAe=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);X(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);X(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);X(`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:rv.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 $(`Compose binary found in ${c}`),c;let u=gAe.format(i.downloadURL,s,this.filename());$(`Downloading ${u}`);let l=await Wc(u,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return $(`Cached to ${f}`),f}async installStandalone(e,r){$("Standalone mode"),r=r||Dt.tmpDir();let i=rv.default.join(r,"compose-bin-standalone");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"compose.exe":"compose",s=rv.default.join(i,n);return dm.default.copyFileSync(e,s),$("Fixing perms"),dm.default.chmodSync(s,"0755"),hf(i),$("Added Compose to PATH"),$(`Binary path: ${s}`),s}async installPlugin(e,r){$("Docker plugin mode"),r=r||Ni.configDir;let i=rv.default.join(r,"cli-plugins");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=rv.default.join(i,n);return dm.defaul 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 Tg}async download(e){let r=await t.getDownloadVersion(e.version);X(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);X(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);X(`Install.download vspec: ${n}`);let s=nv.clean(n)||"";if(!nv.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new xn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return $(`Cosign binary found in ${a}`),a;let c=gAe.format(r.downloadURL,n,this.filename());$(`Downloading ${c}`);let u=await Wc(c,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&nv.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return $(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);X(`Install.build vspec: ${n}`);let s=new xn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return $(`Cosign binary found in ${o}`),o;let a=iv.default.join(Dt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await qe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(qot)}).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 $(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let i=iv.default.join(r,"cosign-bin");X2.default.existsSync(i)||X2.default.mkdirSync(i,{recursive:!0});let n=Wl.default.platform()=="win32"?"cosign.exe":"cosign",s=iv.default.join(i,n);return X2.default.copyFileSync(e,s),$("Fixing perms"),X2.default.chmodSync(s,"0755"),hf(i),$("Added Cosign to PATH"),$(`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)X("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)X("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)X("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)X("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`;$(`Downloading keyless verification bundle at ${i}`);let n=await Wc(i,void 0,this.githubToken);X(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});$(`Cosign binary signature verified! ${s.tlogID?`${sb}?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 gAe.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Ke.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return $(`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 gS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Ke.trimSuffix(o,".git")}/${n}`,c=Ke.hash(a);return $(`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 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=O(Sl(),1);var g6=class{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,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 si("Metadata",async()=>{let h=JSON.stringify(l,null,2);$(h),_Se("metadata",h)});let f=[];if(await si("Build references",async()=>{if(f=await tRr(r,t,e.builder),f.length>0){for(let h of f)$(h);nat(f)}else $("No build references found")}),rRr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);X(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await si(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)ns(m.message,m)})}}if(await si("Check build summary support",async()=>{iRr()?e.call&&e.call!=="build"?$(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?$("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?$("Build summary requires at least one build reference"):($("Build summary supported!"),sat()):$("Build summary requires Buildx >= 0.23.0"):$("Build summary disabled")}),u)throw u},async()=>{Zot&&await si("Generating build summary",async()=>{try{let t=nRr(),e;t&&(e=sRr());let i=await new LF().export({refs:Xot});$(`Build records written to ${i.dockerbuildFilename} (${Ke.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await W3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await r4.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Yot,bakeDefinition:Kot,driver:Wot,endpoint:Jot})}catch(t){ns(t.message)}}),B6.length>0&&await si(`Removing temp folder ${B6}`,async()=>{aat.rmSync(B6,{recursive:!0})})});async function tRr(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 rRr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Ke.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function iRr(){return process.env.DOCKER_BUILD_SUMMARY?Ke.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function nRr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Ke.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function sRr(){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 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 Tg}async download(e){let r=await t.getDownloadVersion(e.version);X(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);X(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);X(`Install.download vspec: ${n}`);let s=nv.clean(n)||"";if(!nv.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new Rn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return $(`Cosign binary found in ${a}`),a;let c=yAe.format(r.downloadURL,n,this.filename());$(`Downloading ${c}`);let u=await Wc(c,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&nv.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return $(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);X(`Install.build vspec: ${n}`);let s=new Rn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return $(`Cosign binary found in ${o}`),o;let a=iv.default.join(Dt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await qe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(Got)}).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 $(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let i=iv.default.join(r,"cosign-bin");X2.default.existsSync(i)||X2.default.mkdirSync(i,{recursive:!0});let n=Wl.default.platform()=="win32"?"cosign.exe":"cosign",s=iv.default.join(i,n);return X2.default.copyFileSync(e,s),$("Fixing perms"),X2.default.chmodSync(s,"0755"),hf(i),$("Added Cosign to PATH"),$(`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)X("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)X("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)X("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)X("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`;$(`Downloading keyless verification bundle at ${i}`);let n=await Wc(i,void 0,this.githubToken);X(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});$(`Cosign binary signature verified! ${s.tlogID?`${sb}?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 yAe.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Ke.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return $(`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 gS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Ke.trimSuffix(o,".git")}/${n}`,c=Ke.hash(a);return $(`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 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 Hot=O(Sl(),1);var g6=class{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,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 si("Metadata",async()=>{let h=JSON.stringify(l,null,2);$(h),xSe("metadata",h)});let f=[];if(await si("Build references",async()=>{if(f=await rRr(r,t,e.builder),f.length>0){for(let h of f)$(h);sat(f)}else $("No build references found")}),iRr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);X(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await si(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)ss(m.message,m)})}}if(await si("Check build summary support",async()=>{nRr()?e.call&&e.call!=="build"?$(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?$("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?$("Build summary requires at least one build reference"):($("Build summary supported!"),oat()):$("Build summary requires Buildx >= 0.23.0"):$("Build summary disabled")}),u)throw u},async()=>{eat&&await si("Generating build summary",async()=>{try{let t=sRr(),e;t&&(e=oRr());let i=await new LF().export({refs:Zot});$(`Build records written to ${i.dockerbuildFilename} (${Ke.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await W3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await r4.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Kot,bakeDefinition:Xot,driver:Jot,endpoint:Yot})}catch(t){ss(t.message)}}),B6.length>0&&await si(`Removing temp folder ${B6}`,async()=>{cat.rmSync(B6,{recursive:!0})})});async function rRr(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 iRr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Ke.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function nRr(){return process.env.DOCKER_BUILD_SUMMARY?Ke.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function sRr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Ke.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function oRr(){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}}
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "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
"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
}
Generated Vendored
+1 -1
View File
@@ -4985,7 +4985,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- tmp@0.2.5
- tmp@0.2.7
This package contains the following license:
+3 -3
View File
@@ -5647,9 +5647,9 @@ __metadata:
linkType: hard
"tmp@npm:^0.2.5":
version: 0.2.5
resolution: "tmp@npm:0.2.5"
checksum: 10/dd4b78b32385eab4899d3ae296007b34482b035b6d73e1201c4a9aede40860e90997a1452c65a2d21aee73d53e93cd167d741c3db4015d90e63b6d568a93d7ec
version: 0.2.7
resolution: "tmp@npm:0.2.7"
checksum: 10/0a3bc90beb0c6275273c3475fb57e466eaab1c9c4a101d029ff62b18146ce136e7f75d09de34863d9f2c2a492751402508f9e028bc98eb34a1416195d4b15619
languageName: node
linkType: hard