diff --git a/dist/post/index.mjs b/dist/post/index.mjs index b2f0f9c1..9a1f6a0e 100644 --- a/dist/post/index.mjs +++ b/dist/post/index.mjs @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={7889:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},1409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},6826:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},4420:(e,t,r)=>{var n;n={value:true};var s=r(6892);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return s.ServiceType}});var i=r(2496);n={enumerable:true,get:function(){return i.readMethodOptions}};n={enumerable:true,get:function(){return i.readMethodOption}};n={enumerable:true,get:function(){return i.readServiceOption}};var o=r(8636);n={enumerable:true,get:function(){return o.RpcError}};var a=r(8576);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var A=r(2726);n={enumerable:true,get:function(){return A.RpcOutputStreamController}};var c=r(9122);n={enumerable:true,get:function(){return c.TestTransport}};var l=r(1409);n={enumerable:true,get:function(){return l.Deferred}};n={enumerable:true,get:function(){return l.DeferredState}};var u=r(6826);n={enumerable:true,get:function(){return u.DuplexStreamingCall}};var d=r(7889);n={enumerable:true,get:function(){return d.ClientStreamingCall}};var m=r(6173);n={enumerable:true,get:function(){return m.ServerStreamingCall}};var p=r(9288);n={enumerable:true,get:function(){return p.UnaryCall}};var g=r(2849);n={enumerable:true,get:function(){return g.stackIntercept}};n={enumerable:true,get:function(){return g.stackDuplexStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackClientStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackServerStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackUnaryInterceptors}};var h=r(3352);n={enumerable:true,get:function(){return h.ServerCallContextController}}},2496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const n=r(8886);function normalizeMethodInfo(e,t){var r,s,i;let o=e;o.service=t;o.localName=(r=o.localName)!==null&&r!==void 0?r:n.lowerCamelCase(o.name);o.serverStreaming=!!o.serverStreaming;o.clientStreaming=!!o.clientStreaming;o.options=(s=o.options)!==null&&s!==void 0?s:{};o.idempotency=(i=o.idempotency)!==null&&i!==void 0?i:undefined;return o}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,r,n){var s;const i=(s=e.methods.find(((e,r)=>e.localName===t||r===t)))===null||s===void 0?void 0:s.options;return i&&i[r]?n.fromJson(i[r]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,r,n){var s;const i=(s=e.methods.find(((e,r)=>e.localName===t||r===t)))===null||s===void 0?void 0:s.options;if(!i){return undefined}const o=i[r];if(o===undefined){return o}return n?n.fromJson(o):o}t.readMethodOption=readMethodOption;function readServiceOption(e,t,r){const n=e.options;if(!n){return undefined}const s=n[t];if(s===undefined){return s}return r?r.fromJson(s):s}t.readServiceOption=readServiceOption},8636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",r){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=r!==null&&r!==void 0?r:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[r,n]of t){e.push(` ${r}: ${n}`)}}return e.join("\n")}}t.RpcError=RpcError},2849:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const n=r(8886);function stackIntercept(e,t,r,s,i){var o,a,A,c;if(e=="unary"){let tail=(e,r,n)=>t.unary(e,r,n);for(const e of((o=s.interceptors)!==null&&o!==void 0?o:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(r,n,s)=>e.interceptUnary(t,r,n,s)}return tail(r,i,s)}if(e=="serverStreaming"){let tail=(e,r,n)=>t.serverStreaming(e,r,n);for(const e of((a=s.interceptors)!==null&&a!==void 0?a:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(r,n,s)=>e.interceptServerStreaming(t,r,n,s)}return tail(r,i,s)}if(e=="clientStreaming"){let tail=(e,r)=>t.clientStreaming(e,r);for(const e of((A=s.interceptors)!==null&&A!==void 0?A:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(r,n)=>e.interceptClientStreaming(t,r,n)}return tail(r,s)}if(e=="duplex"){let tail=(e,r)=>t.duplex(e,r);for(const e of((c=s.interceptors)!==null&&c!==void 0?c:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(r,n)=>e.interceptDuplex(t,r,n)}return tail(r,s)}n.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,r,n){return stackIntercept("unary",e,t,n,r)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,r,n){return stackIntercept("serverStreaming",e,t,n,r)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,r){return stackIntercept("clientStreaming",e,t,r)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,r){return stackIntercept("duplex",e,t,r)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},8576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const n=r(8886);function mergeRpcOptions(e,t){if(!t)return e;let r={};copy(e,r);copy(t,r);for(let s of Object.keys(t)){let i=t[s];switch(s){case"jsonOptions":r.jsonOptions=n.mergeJsonOptions(e.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=n.mergeBinaryOptions(e.binaryOptions,r.binaryOptions);break;case"meta":r.meta={};copy(e.meta,r.meta);copy(t.meta,r.meta);break;case"interceptors":r.interceptors=e.interceptors?e.interceptors.concat(i):i.concat();break}}return r}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let r=t;for(let[t,n]of Object.entries(e)){if(n instanceof Date)r[t]=new Date(n.getTime());else if(Array.isArray(n))r[t]=n.concat();else r[t]=n}}},2726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const n=r(1409);const s=r(8886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;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,t){t.push(e);return()=>{let r=t.indexOf(e);if(r>=0)t.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,r){s.assert((e?1:0)+(t?1:0)+(r?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(r)this.notifyComplete()}notifyMessage(e){s.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){s.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){s.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;s.assert(e,"bad state");s.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new n.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const r=t.p;s.assert(r.state==n.DeferredState.PENDING,"iterator contract broken");"value"in e?r.resolve(e):r.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},3352:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,r,n,s={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=r;this.trailers={};this._sendRH=n;this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let r=t.indexOf(e);if(r>=0)t.splice(r,1)}}}t.ServerCallContextController=ServerCallContextController},6173:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.request=r;this.headers=n;this.responses=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:r}}))}}t.ServerStreamingCall=ServerStreamingCall},6892:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const n=r(2496);class ServiceType{constructor(e,t,r){this.typeName=e;this.methods=t.map((e=>n.normalizeMethodInfo(e,this)));this.options=r!==null&&r!==void 0?r:{}}}t.ServiceType=ServiceType},9122:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const s=r(8636);const i=r(8886);const o=r(2726);const a=r(8576);const A=r(9288);const c=r(6173);const l=r(7889);const u=r(6826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof s.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){i.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}i.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,r){return n(this,void 0,void 0,(function*(){const n=[];if(this.data.response===undefined){n.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){i.assert(e.O.is(t));n.push(t)}}else if(!(this.data.response instanceof s.RpcError)){i.assert(e.O.is(this.data.response));n.push(this.data.response)}try{yield delay(this.responseDelay,r)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof s.RpcError){t.notifyError(this.data.response);return}for(let e of n){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,r)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof s.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof s.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,r){var n;const s=(n=r.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,r.abort)),o=i.catch((e=>{})).then(delay(this.responseDelay,r.abort)).then((t=>this.promiseSingleResponse(e))),a=o.catch((e=>{})).then(delay(this.afterResponseDelay,r.abort)).then((e=>this.promiseStatus())),c=o.catch((e=>{})).then(delay(this.afterResponseDelay,r.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(a,c);this.lastInput={single:t};return new A.UnaryCall(e,s,t,i,o,a,c)}serverStreaming(e,t,r){var n;const s=(n=r.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,r.abort)),a=new o.RpcOutputStreamController,A=i.then(delay(this.responseDelay,r.abort)).catch((()=>{})).then((()=>this.streamResponses(e,a,r.abort))).then(delay(this.afterResponseDelay,r.abort)),l=A.then((()=>this.promiseStatus())),u=A.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(l,u);this.lastInput={single:t};return new c.ServerStreamingCall(e,s,t,i,a,l,u)}clientStreaming(e,t){var r;const n=(r=t.meta)!==null&&r!==void 0?r:{},s=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),i=s.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),o=i.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),a=i.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(o,a);this.lastInput=new TestInputStream(this.data,t.abort);return new l.ClientStreamingCall(e,n,this.lastInput,s,i,o,a)}duplex(e,t){var r;const n=(r=t.meta)!==null&&r!==void 0?r:{},s=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),i=new o.RpcOutputStreamController,a=s.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,i,t.abort))).then(delay(this.afterResponseDelay,t.abort)),A=a.then((()=>this.promiseStatus())),c=a.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(A,c);this.lastInput=new TestInputStream(this.data,t.abort);return new u.DuplexStreamingCall(e,n,this.lastInput,s,i,A,c)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return r=>new Promise(((n,i)=>{if(t===null||t===void 0?void 0:t.aborted){i(new s.RpcError("user cancel","CANCELLED"))}else{const o=setTimeout((()=>n(r)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(o);i(new s.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof s.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof s.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},9288:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.request=r;this.headers=n;this.response=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,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:t,status:r,trailers:n}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const r=34028234663852886e22,n=-34028234663852886e22,s=4294967295,i=2147483647,o=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>i||es||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>r||e{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let n=[];for(let e=0;e>4;a=o;i=2;break;case 2:r[s++]=(a&15)<<4|(o&60)>>2;a=o;i=3;break;case 3:r[s++]=(a&3)<<6|o;i=0;break}}if(i==1)throw Error(`invalid base64 string.`);return r.subarray(0,s)}t.base64decode=base64decode;function base64encode(e){let t="",n=0,s,i=0;for(let o=0;o>2];i=(s&3)<<4;n=1;break;case 1:t+=r[i|s>>4];i=(s&15)<<2;n=2;break;case 2:t+=r[i|s>>6];t+=r[s&63];n=0;break}}if(n){t+=r[i];t+="=";if(n==1)t+="="}return t}t.base64encode=base64encode},4816:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var r;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,r,n,s,i)=>{let o=is(r)?r[e.symbol]:r[e.symbol]=[];o.push({no:n,wireType:s,data:i})};e.onWrite=(t,r,n)=>{for(let{no:t,wireType:s,data:i}of e.list(r))n.tag(t,s).raw(i)};e.list=(t,r)=>{if(is(t)){let n=t[e.symbol];return r?n.filter((e=>e.no==r)):n}return[]};e.last=(t,r)=>e.list(t,r).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(r=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var n;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(n=t.WireType||(t.WireType={}))},2889:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const n=r(4816);const s=r(1753);const i=r(3223);const o={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=i.varint64read;this.uint32=i.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,r=e&7;if(t<=0||r<0||r>5)throw new Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case n.WireType.Varint:while(this.buf[this.pos++]&128){}break;case n.WireType.Bit64:this.pos+=4;case n.WireType.Bit32:this.pos+=4;break;case n.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case n.WireType.StartGroup:let r;while((r=this.tag()[1])!==n.WireType.EndGroup){this.skip(r)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new s.PbLong(...this.varint64())}uint64(){return new s.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let r=-(e&1);e=(e>>>1|(t&1)<<31)^r;t=t>>>1^r;return new s.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new s.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new s.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},3957:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const n=r(1753);const s=r(3223);const i=r(8602);const o={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){i.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){i.assertInt32(e);s.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){i.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){i.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){i.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){i.assertInt32(e);e=(e<<1^e>>31)>>>0;s.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let r=new DataView(t.buffer);let s=n.PbLong.from(e);r.setInt32(0,s.lo,true);r.setInt32(4,s.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let r=new DataView(t.buffer);let s=n.PbULong.from(e);r.setInt32(0,s.lo,true);r.setInt32(4,s.hi,true);return this.raw(t)}int64(e){let t=n.PbLong.from(e);s.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=n.PbLong.from(e),r=t.hi>>31,i=t.lo<<1^r,o=(t.hi<<1|t.lo>>>31)^r;s.varint64write(i,o,this.buf);return this}uint64(e){let t=n.PbULong.from(e);s.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let r=parseInt(t);if(!Number.isNaN(r)){let t=e[r];if(t===undefined)return false;if(e[t]!==r)return false}else{let r=e[t];if(r===undefined)return false;if(typeof r!=="number")return false;if(e[r]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[r,n]of Object.entries(e))if(typeof n=="number")t.push({name:r,number:n});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,r)=>r.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},3223:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let r=0;r<28;r+=7){let n=this.buf[this.pos++];e|=(n&127)<>4;if((r&128)==0){this.assertBounds();return[e,t]}for(let r=3;r<=31;r+=7){let n=this.buf[this.pos++];t|=(n&127)<>>n;const i=!(s>>>7==0&&t==0);const o=(i?s|128:s)&255;r.push(o);if(!i){return}}const n=e>>>28&15|(t&7)<<4;const s=!(t>>3==0);r.push((s?n|128:n)&255);if(!s){return}for(let e=3;e<31;e=e+7){const n=t>>>e;const s=!(n>>>7==0);const i=(s?n|128:n)&255;r.push(i);if(!s){return}}r.push(t>>>31&1)}t.varint64write=varint64write;const r=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const n=1e6;let s=0;let i=0;function add1e6digit(t,o){const a=Number(e.slice(t,o));i*=n;s=s*n+a;if(s>=r){i=i+(s/r|0);s=s%r}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,s,i]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(r*t+(e>>>0))}let n=e&16777215;let s=(e>>>24|t<<8)>>>0&16777215;let i=t>>16&65535;let o=n+s*6777216+i*6710656;let a=s+i*8147497;let A=i*2;let c=1e7;if(o>=c){a+=Math.floor(o/c);o%=c}if(a>=c){A+=Math.floor(a/c);a%=c}function decimalFrom1e7(e,t){let r=e?String(e):"";if(t){return"0000000".slice(r.length)+r}return r}return decimalFrom1e7(A,0)+decimalFrom1e7(a,A)+decimalFrom1e7(o,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let r=0;r<9;r++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});var n=r(9999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return n.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return n.isJsonObject}});var s=r(6335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return s.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return s.base64encode}});var i=r(8950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return i.utf8read}});var o=r(4816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return o.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return o.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return o.UnknownFieldHandler}});var a=r(2889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return a.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return a.binaryReadOptions}});var A=r(3957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return A.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return A.binaryWriteOptions}});var c=r(1753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return c.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return c.PbULong}});var l=r(9367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return l.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return l.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return l.mergeJsonOptions}});var u=r(3785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return u.MESSAGE_TYPE}});var d=r(5106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return d.MessageType}});var m=r(7910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return m.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return m.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return m.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return m.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return m.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return m.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return m.readMessageOption}});var p=r(5167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return p.ReflectionTypeCheck}});var g=r(5726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return g.reflectionCreate}});var h=r(9526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return h.reflectionScalarDefault}});var f=r(8044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return f.reflectionMergePartial}});var y=r(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return y.reflectionEquals}});var C=r(9611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return C.ReflectionBinaryReader}});var E=r(6907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return E.ReflectionBinaryWriter}});var B=r(6790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return B.ReflectionJsonReader}});var I=r(1094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return I.ReflectionJsonWriter}});var Q=r(9946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return Q.containsMessageType}});var b=r(8063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return b.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return b.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return b.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return b.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return b.getSelectedOneofValue}});var S=r(257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return S.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return S.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return S.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return S.isEnumObject}});var N=r(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return N.lowerCamelCase}});var w=r(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return w.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return w.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return w.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return w.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return w.assertFloat32}})},9367:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const r={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},n={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},r),e):r}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var r,n;let s=Object.assign(Object.assign({},e),t);s.typeRegistry=[...(r=e===null||e===void 0?void 0:e.typeRegistry)!==null&&r!==void 0?r:[],...(n=t===null||t===void 0?void 0:t.typeRegistry)!==null&&n!==void 0?n:[]];return s}t.mergeJsonOptions=mergeJsonOptions},9999:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const r=[];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},5106:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const n=r(3785);const s=r(7910);const i=r(5167);const o=r(6790);const a=r(1094);const A=r(9611);const c=r(6907);const l=r(5726);const u=r(8044);const d=r(9999);const m=r(9367);const p=r(4827);const g=r(3957);const h=r(2889);const f=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const y=f[n.MESSAGE_TYPE]={};class MessageType{constructor(e,t,r){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(s.normalizeFieldInfo);this.options=r!==null&&r!==void 0?r:{};y.value=this;this.messagePrototype=Object.create(null,f);this.refTypeCheck=new i.ReflectionTypeCheck(this);this.refJsonReader=new o.ReflectionJsonReader(this);this.refJsonWriter=new a.ReflectionJsonWriter(this);this.refBinReader=new A.ReflectionBinaryReader(this);this.refBinWriter=new c.ReflectionBinaryWriter(this)}create(e){let t=l.reflectionCreate(this);if(e!==undefined){u.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();u.reflectionMergePartial(this,t,e);return t}equals(e,t){return p.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){u.reflectionMergePartial(this,e,t)}fromBinary(e,t){let r=h.binaryReadOptions(t);return this.internalBinaryRead(r.readerFactory(e),e.byteLength,r)}fromJson(e,t){return this.internalJsonRead(e,m.jsonReadOptions(t))}fromJsonString(e,t){let r=JSON.parse(e);return this.fromJson(r,t)}toJson(e,t){return this.internalJsonWrite(e,m.jsonWriteOptions(t))}toJsonString(e,t){var r;let n=this.toJson(e,t);return JSON.stringify(n,null,(r=t===null||t===void 0?void 0:t.prettySpaces)!==null&&r!==void 0?r:0)}toBinary(e,t){let r=g.binaryWriteOptions(t);return this.internalBinaryWrite(e,r.writerFactory(),r).finish()}internalJsonRead(e,t,r){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let n=r!==null&&r!==void 0?r:this.create();this.refJsonReader.read(e,n,t);return n}throw new Error(`Unable to parse message ${this.typeName} from JSON ${d.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,r){this.refBinWriter.write(e,t,r);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create();this.refBinReader.read(e,s,r,t);return s}}t.MessageType=MessageType},8063:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,r){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(r!==undefined){e[t]=r}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,r){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(r!==undefined&&t!==undefined){e[t]=r}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},1753:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const n=r(3223);let s;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";s=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const i=/^-?[0-9]+$/;const o=4294967296;const a=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(s)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=s.C(e);case"number":if(e===0)return this.ZERO;e=s.C(e);case"bigint":if(!e)return this.ZERO;if(es.UMAX)throw new Error("ulong too large");s.V.setBigUint64(0,e,true);return new PbULong(s.V.getInt32(0,true),s.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!i.test(e))throw new Error("string is no integer");let[t,r,s]=n.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(r,s);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/o)}throw new Error("unknown value "+typeof e)}toString(){return s?this.toBigInt().toString():n.int64toString(this.lo,this.hi)}toBigInt(){assertBi(s);s.V.setInt32(0,this.lo,true);s.V.setInt32(4,this.hi,true);return s.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(s)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=s.C(e);case"number":if(e===0)return this.ZERO;e=s.C(e);case"bigint":if(!e)return this.ZERO;if(es.MAX)throw new Error("signed long too large");s.V.setBigInt64(0,e,true);return new PbLong(s.V.getInt32(0,true),s.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!i.test(e))throw new Error("string is no integer");let[t,r,s]=n.int64fromString(e);if(t){if(s>a||s==a&&r!=0)throw new Error("signed long too small")}else if(s>=a)throw new Error("signed long too large");let A=new PbLong(r,s);return t?A.negate():A;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/o):new PbLong(-e,-e/o).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&a)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(s)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+n.int64toString(e.lo,e.hi)}return n.int64toString(this.lo,this.hi)}toBigInt(){assertBi(s);s.V.setInt32(0,this.lo,true);s.V.setInt32(4,this.hi,true);return s.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},8950:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,r=[],n=[],s=0,i;let o=e.length;while(t191&&i<224)n[s++]=(i&31)<<6|e[t++]&63;else if(i>239&&i<365){i=((i&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;n[s++]=55296+(i>>10);n[s++]=56320+(i&1023)}else n[s++]=(i&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(s>8191){r.push(fromCharCodes(n));s=0}}if(r.length){if(s)r.push(fromCharCodes(n.slice(0,s)));return r.join("")}return fromCharCodes(n.slice(0,s))}t.utf8read=utf8read},9611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const n=r(4816);const s=r(7910);const i=r(3402);const o=r(9526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,r,i){this.prepare();const o=i===undefined?e.len:e.pos+i;while(e.pos{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const n=r(4816);const s=r(7910);const i=r(8602);const o=r(1753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,r){this.prepare();for(const n of this.fields){let o,a,A=n.repeat,c=n.localName;if(n.oneof){const t=e[n.oneof];if(t.oneofKind!==c)continue;o=t[c];a=true}else{o=e[c];a=false}switch(n.kind){case"scalar":case"enum":let e=n.kind=="enum"?s.ScalarType.INT32:n.T;if(A){i.assert(Array.isArray(o));if(A==s.RepeatType.PACKED)this.packed(t,e,n.no,o);else for(const r of o)this.scalar(t,e,n.no,r,true)}else if(o===undefined)i.assert(n.opt);else this.scalar(t,e,n.no,o,a||n.opt);break;case"message":if(A){i.assert(Array.isArray(o));for(const e of o)this.message(t,r,n.T(),n.no,e)}else{this.message(t,r,n.T(),n.no,o)}break;case"map":i.assert(typeof o=="object"&&o!==null);for(const[e,s]of Object.entries(o))this.mapEntry(t,r,n,e,s);break}}let o=r.writeUnknownFields;if(o!==false)(o===true?n.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,t)}mapEntry(e,t,r,o,a){e.tag(r.no,n.WireType.LengthDelimited);e.fork();let A=o;switch(r.K){case s.ScalarType.INT32:case s.ScalarType.FIXED32:case s.ScalarType.UINT32:case s.ScalarType.SFIXED32:case s.ScalarType.SINT32:A=Number.parseInt(o);break;case s.ScalarType.BOOL:i.assert(o=="true"||o=="false");A=o=="true";break}this.scalar(e,r.K,1,A,true);switch(r.V.kind){case"scalar":this.scalar(e,r.V.T,2,a,true);break;case"enum":this.scalar(e,s.ScalarType.INT32,2,a,true);break;case"message":this.message(e,t,r.V.T(),2,a);break}e.join()}message(e,t,r,s,i){if(i===undefined)return;r.internalBinaryWrite(i,e.tag(s,n.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,r,n,s){let[i,o,a]=this.scalarInfo(t,n);if(!a||s){e.tag(r,i);e[o](n)}}packed(e,t,r,o){if(!o.length)return;i.assert(t!==s.ScalarType.BYTES&&t!==s.ScalarType.STRING);e.tag(r,n.WireType.LengthDelimited);e.fork();let[,a]=this.scalarInfo(t);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const n=r(3785);function containsMessageType(e){return e[n.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},5726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const n=r(9526);const s=r(3785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},s.MESSAGE_TYPE,{value:e});for(let r of e.fields){let e=r.localName;if(r.opt)continue;if(r.oneof)t[r.oneof]={oneofKind:undefined};else if(r.repeat)t[e]=[];else switch(r.kind){case"scalar":t[e]=n.reflectionScalarDefault(r.T,r.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const n=r(7910);function reflectionEquals(e,t,r){if(t===r)return true;if(!t||!r)return false;for(let i of e.fields){let e=i.localName;let o=i.oneof?t[i.oneof][e]:t[e];let a=i.oneof?r[i.oneof][e]:r[e];switch(i.kind){case"enum":case"scalar":let e=i.kind=="enum"?n.ScalarType.INT32:i.T;if(!(i.repeat?repeatedPrimitiveEq(e,o,a):primitiveEq(e,o,a)))return false;break;case"map":if(!(i.V.kind=="message"?repeatedMsgEq(i.V.T(),s(o),s(a)):repeatedPrimitiveEq(i.V.kind=="enum"?n.ScalarType.INT32:i.V.T,s(o),s(a))))return false;break;case"message":let t=i.T();if(!(i.repeat?repeatedMsgEq(t,o,a):t.equals(o,a)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const s=Object.values;function primitiveEq(e,t,r){if(t===r)return true;if(e!==n.ScalarType.BYTES)return false;let s=t;let i=r;if(s.length!==i.length)return false;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const n=r(4073);var s;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(s=t.ScalarType||(t.ScalarType={}));var i;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(i=t.LongType||(t.LongType={}));var o;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(o=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,r,s,i;e.localName=(t=e.localName)!==null&&t!==void 0?t:n.lowerCamelCase(e.name);e.jsonName=(r=e.jsonName)!==null&&r!==void 0?r:n.lowerCamelCase(e.name);e.repeat=(s=e.repeat)!==null&&s!==void 0?s:o.NO;e.opt=(i=e.opt)!==null&&i!==void 0?i:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,r,n){var s;const i=(s=e.fields.find(((e,r)=>e.localName==t||r==t)))===null||s===void 0?void 0:s.options;return i&&i[r]?n.fromJson(i[r]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,r,n){var s;const i=(s=e.fields.find(((e,r)=>e.localName==t||r==t)))===null||s===void 0?void 0:s.options;if(!i){return undefined}const o=i[r];if(o===undefined){return o}return n?n.fromJson(o):o}t.readFieldOption=readFieldOption;function readMessageOption(e,t,r){const n=e.options;const s=n[t];if(s===undefined){return s}return r?r.fromJson(s):s}t.readMessageOption=readMessageOption},6790:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const n=r(9999);const s=r(6335);const i=r(7910);const o=r(1753);const a=r(8602);const A=r(3402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,r){if(!e){let e=n.typeofJsonValue(r);if(e=="number"||e=="boolean")e=r.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,r){this.prepare();const s=[];for(const[o,a]of Object.entries(e)){const e=this.fMap[o];if(!e){if(!r.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}const A=e.localName;let c;if(e.oneof){if(a===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(s.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(e.oneof);c=t[e.oneof]={oneofKind:A}}else{c=t}if(e.kind=="map"){if(a===null){continue}this.assert(n.isJsonObject(a),e.name,a);const t=c[A];for(const[n,s]of Object.entries(a)){this.assert(s!==null,e.name+" map value",null);let o;switch(e.V.kind){case"message":o=e.V.T().internalJsonRead(s,r);break;case"enum":o=this.enum(e.V.T(),s,e.name,r.ignoreUnknownFields);if(o===false)continue;break;case"scalar":o=this.scalar(s,e.V.T,e.V.L,e.name);break}this.assert(o!==undefined,e.name+" map value",s);let a=n;if(e.K==i.ScalarType.BOOL)a=a=="true"?true:a=="false"?false:a;a=this.scalar(a,e.K,i.LongType.STRING,e.name).toString();t[a]=o}}else if(e.repeat){if(a===null)continue;this.assert(Array.isArray(a),e.name,a);const t=c[A];for(const n of a){this.assert(n!==null,e.name,null);let s;switch(e.kind){case"message":s=e.T().internalJsonRead(n,r);break;case"enum":s=this.enum(e.T(),n,e.name,r.ignoreUnknownFields);if(s===false)continue;break;case"scalar":s=this.scalar(n,e.T,e.L,e.name);break}this.assert(s!==undefined,e.name,a);t.push(s)}}else{switch(e.kind){case"message":if(a===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}c[A]=e.T().internalJsonRead(a,r,c[A]);break;case"enum":if(a===null)continue;let t=this.enum(e.T(),a,e.name,r.ignoreUnknownFields);if(t===false)continue;c[A]=t;break;case"scalar":if(a===null)continue;c[A]=this.scalar(a,e.T,e.L,e.name);break}}}}enum(e,t,r,n){if(e[0]=="google.protobuf.NullValue")a.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${r}, enum can only be integral number, got ${t}.`);return t;case"string":let s=t;if(e[2]&&t.substring(0,e[2].length)===e[2])s=t.substring(e[2].length);let i=e[1][s];if(typeof i==="undefined"&&n){return false}a.assert(typeof i=="number",`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} has no value for "${t}".`);return i}a.assert(false,`Unable to parse field ${this.info.typeName}#${r}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,r,n){let c;try{switch(t){case i.ScalarType.DOUBLE:case i.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){c="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){c="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let n=Number(e);if(Number.isNaN(n)){c="not a number";break}if(!Number.isFinite(n)){c="too large or small";break}if(t==i.ScalarType.FLOAT)a.assertFloat32(n);return n;case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:case i.ScalarType.UINT32:if(e===null)return 0;let l;if(typeof e=="number")l=e;else if(e==="")c="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)c="extra whitespace";else l=Number(e)}if(l===undefined)break;if(t==i.ScalarType.UINT32)a.assertUInt32(l);else a.assertInt32(l);return l;case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:if(e===null)return A.reflectionLongConvert(o.PbLong.ZERO,r);if(typeof e!="number"&&typeof e!="string")break;return A.reflectionLongConvert(o.PbLong.from(e),r);case i.ScalarType.FIXED64:case i.ScalarType.UINT64:if(e===null)return A.reflectionLongConvert(o.PbULong.ZERO,r);if(typeof e!="number"&&typeof e!="string")break;return A.reflectionLongConvert(o.PbULong.from(e),r);case i.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case i.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){c="extra whitespace";break}try{encodeURIComponent(e)}catch(c){c="invalid UTF8";break}return e;case i.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return s.base64decode(e)}}catch(e){c=e.message}this.assert(false,n+(c?" - "+c:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},1094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const n=r(6335);const s=r(1753);const i=r(7910);const o=r(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const r={},n=e;for(const e of this.fields){if(!e.oneof){let s=this.field(e,n[e.localName],t);if(s!==undefined)r[t.useProtoFieldName?e.name:e.jsonName]=s;continue}const s=n[e.oneof];if(s.oneofKind!==e.localName)continue;const i=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let a=this.field(e,s[e.localName],i);o.assert(a!==undefined);r[t.useProtoFieldName?e.name:e.jsonName]=a}return r}field(e,t,r){let n=undefined;if(e.kind=="map"){o.assert(typeof t=="object"&&t!==null);const s={};switch(e.V.kind){case"scalar":for(const[r,n]of Object.entries(t)){const t=this.scalar(e.V.T,n,e.name,false,true);o.assert(t!==undefined);s[r.toString()]=t}break;case"message":const n=e.V.T();for(const[i,a]of Object.entries(t)){const t=this.message(n,a,e.name,r);o.assert(t!==undefined);s[i.toString()]=t}break;case"enum":const i=e.V.T();for(const[n,a]of Object.entries(t)){o.assert(a===undefined||typeof a=="number");const t=this.enum(i,a,e.name,false,true,r.enumAsInteger);o.assert(t!==undefined);s[n.toString()]=t}break}if(r.emitDefaultValues||Object.keys(s).length>0)n=s}else if(e.repeat){o.assert(Array.isArray(t));const s=[];switch(e.kind){case"scalar":for(let r=0;r0||r.emitDefaultValues)n=s}else{switch(e.kind){case"scalar":n=this.scalar(e.T,t,e.name,e.opt,r.emitDefaultValues);break;case"enum":n=this.enum(e.T(),t,e.name,e.opt,r.emitDefaultValues,r.enumAsInteger);break;case"message":n=this.message(e.T(),t,e.name,r);break}}return n}enum(e,t,r,n,s,i){if(e[0]=="google.protobuf.NullValue")return!s&&!n?undefined:null;if(t===undefined){o.assert(n);return undefined}if(t===0&&!s&&!n)return undefined;o.assert(typeof t=="number");o.assert(Number.isInteger(t));if(i||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,r,n){if(t===undefined)return n.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,n)}scalar(e,t,r,a,A){if(t===undefined){o.assert(a);return undefined}const c=A||a;switch(e){case i.ScalarType.INT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:if(t===0)return c?0:undefined;o.assertInt32(t);return t;case i.ScalarType.FIXED32:case i.ScalarType.UINT32:if(t===0)return c?0:undefined;o.assertUInt32(t);return t;case i.ScalarType.FLOAT:o.assertFloat32(t);case i.ScalarType.DOUBLE:if(t===0)return c?0:undefined;o.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case i.ScalarType.STRING:if(t==="")return c?"":undefined;o.assert(typeof t=="string");return t;case i.ScalarType.BOOL:if(t===false)return c?false:undefined;o.assert(typeof t=="boolean");return t;case i.ScalarType.UINT64:case i.ScalarType.FIXED64:o.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=s.PbULong.from(t);if(e.isZero()&&!c)return undefined;return e.toString();case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:o.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let r=s.PbLong.from(t);if(r.isZero()&&!c)return undefined;return r.toString();case i.ScalarType.BYTES:o.assert(t instanceof Uint8Array);if(!t.byteLength)return c?"":undefined;return n.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},3402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const n=r(7910);function reflectionLongConvert(e,t){switch(t){case n.LongType.BIGINT:return e.toBigInt();case n.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8044:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,r){let n,s=r,i;for(let r of e.fields){let e=r.localName;if(r.oneof){const o=s[r.oneof];if((o===null||o===void 0?void 0:o.oneofKind)==undefined){continue}n=o[e];i=t[r.oneof];i.oneofKind=o.oneofKind;if(n==undefined){delete i[e];continue}}else{n=s[e];i=t;if(n==undefined){continue}}if(r.repeat)i[e].length=n.length;switch(r.kind){case"scalar":case"enum":if(r.repeat)for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const n=r(7910);const s=r(3402);const i=r(1753);function reflectionScalarDefault(e,t=n.LongType.STRING){switch(e){case n.ScalarType.BOOL:return false;case n.ScalarType.UINT64:case n.ScalarType.FIXED64:return s.reflectionLongConvert(i.PbULong.ZERO,t);case n.ScalarType.INT64:case n.ScalarType.SFIXED64:case n.ScalarType.SINT64:return s.reflectionLongConvert(i.PbLong.ZERO,t);case n.ScalarType.DOUBLE:case n.ScalarType.FLOAT:return 0;case n.ScalarType.BYTES:return new Uint8Array(0);case n.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const n=r(7910);const s=r(8063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],r=[];for(let n of this.fields){if(n.oneof){if(!r.includes(n.oneof)){r.push(n.oneof);e.push(n.oneof);t.push(n.oneof)}}else{t.push(n.localName);switch(n.kind){case"scalar":case"enum":if(!n.opt||n.repeat)e.push(n.localName);break;case"message":if(n.repeat)e.push(n.localName);break;case"map":e.push(n.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(r)}}is(e,t,r=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let n=Object.keys(e),i=this.data;if(n.length!n.includes(e))))return false;if(!r){if(n.some((e=>!i.known.includes(e))))return false}if(t<1){return true}for(const n of i.oneofs){const i=e[n];if(!s.isOneofGroup(i))return false;if(i.oneofKind===undefined)continue;const o=this.fields.find((e=>e.localName===i.oneofKind));if(!o)return false;if(!this.field(i[i.oneofKind],o,r,t))return false}for(const n of this.fields){if(n.oneof!==undefined)continue;if(!this.field(e[n.localName],n,r,t))return false}return true}field(e,t,r,s){let i=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(i)return this.scalars(e,t.T,s,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(i)return this.scalars(e,n.ScalarType.INT32,s);return this.scalar(e,n.ScalarType.INT32);case"message":if(e===undefined)return true;if(i)return this.messages(e,t.T(),r,s);return this.message(e,t.T(),r,s);case"map":if(typeof e!="object"||e===null)return false;if(s<2)return true;if(!this.mapKeys(e,t.K,s))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,s,t.V.L);case"enum":return this.scalars(Object.values(e),n.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),t.V.T(),r,s)}break}return true}message(e,t,r,n){if(r){return t.isAssignable(e,n)}return t.is(e,n)}messages(e,t,r,n){if(!Array.isArray(e))return false;if(n<2)return true;if(r){for(let r=0;rparseInt(e))),t,r);case n.ScalarType.BOOL:return this.scalars(s.slice(0,r).map((e=>e=="true"?true:e=="false"?false:e)),t,r);default:return this.scalars(s,t,r,n.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},5183:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const o=i(r(8611));const a=i(r(5692));async function toBuffer(e){let t=0;const r=[];for await(const n of e){t+=n.length;r.push(n)}return Buffer.concat(r,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const r=t.toString("utf8");try{return JSON.parse(r)}catch(e){const t=e;t.message+=` (input: ${r})`;throw t}}t.json=json;function req(e,t={}){const r=typeof e==="string"?e:e.href;const n=(r.startsWith("https:")?a:o).request(e,t);const s=new Promise(((e,t)=>{n.once("response",e).once("error",t).end()}));n.then=s.then.bind(s);return n}t.req=req},8894:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var o=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const a=i(r(9278));const A=i(r(8611));const c=r(5692);o(r(5183),t);const l=Symbol("AgentBaseInternalState");class Agent extends A.Agent{constructor(e){super(e);this[l]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new a.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const r=this.sockets[e];const n=r.indexOf(t);if(n!==-1){r.splice(n,1);this.totalSocketCount--;if(r.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return c.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,r){const n={...t,secureEndpoint:this.isSecureEndpoint(t)};const s=this.getName(n);const i=this.incrementSockets(s);Promise.resolve().then((()=>this.connect(e,n))).then((o=>{this.decrementSockets(s,i);if(o instanceof A.Agent){try{return o.addRequest(e,n)}catch(e){return r(e)}}this[l].currentSocket=o;super.createSocket(e,t,r)}),(e=>{this.decrementSockets(s,i);r(e)}))}createConnection(){const e=this[l].currentSocket;this[l].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[l].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[l]){this[l].defaultPort=e}}get protocol(){return this[l].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[l]){this[l].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,s,i,o,a;var A=r.indexOf(e);var c=r.indexOf(t,A+1);var l=A;if(A>=0&&c>0){if(e===t){return[A,c]}n=[];i=r.length;while(l>=0&&!a){if(l==A){n.push(l);A=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),c]}else{s=n.pop();if(s=0?A:c}if(n.length){a=[i,o]}}return a}},4691:(e,t,r)=>{var n=r(7087);var s=r(9380);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var A="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(A).split("\\.").join(c)}function unescapeBraces(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(A).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+i+"}";var A=parseCommaParts(o);if(o.length){a[a.length-1]+=A.shift();a.push.apply(a,A)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=s("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var A=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var c=o||A;var l=i.body.indexOf(",")>=0;if(!c&&!l){if(i.post.match(/,(?!,).*\}/)){e=i.pre+"{"+i.body+a+i.post;return expand(e)}return[e]}var u;if(c){u=i.body.split(/\.\./)}else{u=parseCommaParts(i.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var d=i.post.length?expand(i.post,false):[""];return d.map((function(e){return i.pre+u[0]+e}))}}}var m=i.pre;var d=i.post.length?expand(i.post,false):[""];var p;if(c){var g=numeric(u[0]);var h=numeric(u[1]);var f=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var C=lte;var E=h0){var S=new Array(b+1).join("0");if(I<0)Q="-"+S+Q.slice(1);else Q=S+Q}}}p.push(Q)}}else{p=n(u,(function(e){return expand(e,false)}))}for(var N=0;N{e.exports=function(e,r){var n=[];for(var s=0;s{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(897)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let n=0;let s=-1;let i=0;while(r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(6110)}else{e.exports=r(5108)}},5108:(e,t,r)=>{const n=r(2018);const s=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n0){m("Patching connection write() output buffer with updated header");r=e.outputData[0].data;n=r.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+r.substring(n);m("Output buffer: %o",e.outputData[0].data)}let s;if(this.proxy.protocol==="https:"){m("Creating `tls.Socket`: %o",this.connectOpts);s=A.connect(this.connectOpts)}else{m("Creating `net.Socket`: %o",this.connectOpts);s=a.connect(this.connectOpts)}await(0,l.once)(s,"connect");return s}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},3669:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const a=i(r(9278));const A=i(r(4756));const c=o(r(2613));const l=o(r(2830));const u=r(8894);const d=r(7016);const m=r(7943);const p=(0,l.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!a.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends u.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new d.URL(e):e;this.proxyHeaders=t?.headers??{};p("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const r=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:r,port:n}}async connect(e,t){const{proxy:r}=this;if(!t.host){throw new TypeError('No "host" provided')}let n;if(r.protocol==="https:"){p("Creating `tls.Socket`: %o",this.connectOpts);n=A.connect(setServernameFromNonIpHost(this.connectOpts))}else{p("Creating `net.Socket`: %o",this.connectOpts);n=a.connect(this.connectOpts)}const s=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const i=a.isIPv6(t.host)?`[${t.host}]`:t.host;let o=`CONNECT ${i}:${t.port} HTTP/1.1\r\n`;if(r.username||r.password){const e=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}s.Host=`${i}:${t.port}`;if(!s["Proxy-Connection"]){s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(s)){o+=`${e}: ${s[e]}\r\n`}const l=(0,m.parseProxyResponse)(n);n.write(`${o}\r\n`);const{connect:u,buffered:d}=await l;e.emit("proxyConnect",u);this.emit("proxyConnect",u,e);if(u.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){p("Upgrading socket connection to TLS");return A.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:n})}return n}n.destroy();const g=new a.Socket({writable:false});g.readable=true;e.once("socket",(e=>{p("Replaying proxy buffer for failed request");(0,c.default)(e.listenerCount("data")>0);e.push(d);e.push(null)}));return g}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},7943:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const s=n(r(2830));const i=(0,s.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,r)=>{let n=0;const s=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();i("onend");r(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();i("onerror %o",e);r(e)}function ondata(o){s.push(o);n+=o.length;const a=Buffer.concat(s,n);const A=a.indexOf("\r\n\r\n");if(A===-1){i("have not received end of HTTP headers yet...");read();return}const c=a.slice(0,A).toString("ascii").split("\r\n");const l=c.shift();if(!l){e.destroy();return r(new Error("No header received from proxy CONNECT response"))}const u=l.split(" ");const d=+u[1];const m=u.slice(2).join(" ");const p={};for(const t of c){if(!t)continue;const n=t.indexOf(":");if(n===-1){e.destroy();return r(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const s=t.slice(0,n).toLowerCase();const i=t.slice(n+1).trimStart();const o=p[s];if(typeof o==="string"){p[s]=[o,i]}else if(Array.isArray(o)){o.push(i)}else{p[s]=i}}i("got proxy server response: %o %o",l,p);cleanup();t({connect:{statusCode:d,statusText:m,headers:p},buffered:a})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},3772:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var i=r(4691);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var A=a+"*?";var c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,s){return t(r,n,ext(e,s))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,s){return t.match(r,n,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.maxGlobstarRecursion=t.maxGlobstarRecursion!==undefined?t.maxGlobstarRecursion:200;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var s=0,i=e.length;sm){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var p={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var n="";var i=!!r.nocase;var c=false;var l=[];var d=[];var m;var g=false;var h=-1;var f=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var C=this;function clearStateChar(){if(m){switch(m){case"*":n+=A;i=true;break;case"?":n+=a;i=true;break;default:n+="\\"+m;break}C.debug("clearStateChar %j %j",m,n);m=false}}for(var E=0,B=e.length,I;E-1;x--){var D=d[x];var k=n.slice(0,D.reStart);var v=n.slice(D.reStart,D.reEnd-8);var T=n.slice(D.reEnd-8,D.reEnd);var P=n.slice(D.reEnd);T+=P;var M=k.split("(").length-1;var L=P;for(E=0;E=0;o--){i=e[o];if(i)break}for(o=0;o=0;o--){if(t[o]===s){A=o;break}}var c=t.slice(i,a);var l=r?t.slice(a+1):t.slice(a+1,A);var u=r?[]:t.slice(A+1);if(c.length){var d=e.slice(n,n+c.length);if(!this._matchOne(d,c,r,0,0)){return false}n+=c.length}var m=0;if(u.length){if(u.length+n>e.length)return false;var p=e.length-u.length;if(this._matchOne(e,u,r,p,0)){m=u.length}else{if(e[e.length-1]!==""||n+u.length===e.length){return false}p--;if(!this._matchOne(e,u,r,p,0)){return false}m=u.length+1}}if(!l.length){var g=!!m;for(o=n;o{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var A=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return A*o;case"weeks":case"week":case"w":return A*i;case"days":case"day":case"d":return A*s;case"hours":case"hour":case"hrs":case"hr":case"h":return A*n;case"minutes":case"minute":case"mins":case"min":case"m":return A*r;case"seconds":case"second":case"secs":case"sec":case"s":return A*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=s){return Math.round(e/s)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=s){return plural(e,i,s,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},9379:(e,t,r)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");A("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}A("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new c(r[2],this.options.loose)}}toString(){return this.value}test(e){A("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=s(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const s=r(356);const{safeRe:i,t:o}=r(5471);const a=r(8646);const A=r(1159);const c=r(7163);const l=r(6782)},6782:(e,t,r)=>{const n=/\s+/g;class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&g)|(this.options.loose&&h);const r=t+":"+e;const n=i.get(r);if(n){return n}const s=this.options.loose;const o=s?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,hyphenReplace(this.options.includePrerelease));A("hyphen replace",e);e=e.replace(l[u.COMPARATORTRIM],d);A("comparator trim",e);e=e.replace(l[u.TILDETRIM],m);A("tilde trim",e);e=e.replace(l[u.CARETTRIM],p);A("caret trim",e);let c=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(s){c=c.filter((e=>{A("loose invalid filter",e,this.options);return!!e.match(l[u.COMPARATORLOOSE])}))}A("range list",c);const f=new Map;const y=c.map((e=>new a(e,this.options)));for(const e of y){if(isNullSet(e)){return[e]}f.set(e.value,e)}if(f.size>1&&f.has("")){f.delete("")}const C=[...f.values()];i.set(r,C);return C}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const parseComparator=(e,t)=>{e=e.replace(l[u.BUILD],"");A("comp",e,t);e=replaceCarets(e,t);A("caret",e);e=replaceTildes(e,t);A("tildes",e);e=replaceXRanges(e,t);A("xrange",e);e=replaceStars(e,t);A("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,n,s,i)=>{A("tilde",e,t,r,n,s,i);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){A("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}A("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{A("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{A("caret",e,t,r,s,i,o);let a;if(isX(r)){a=""}else if(isX(s)){a=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{a=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){A("replaceCaret pr",o);if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{A("no pr");if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}A("caret return",a);return a}))};const replaceXRanges=(e,t)=>{A("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{A("xRange",e,r,n,s,i,o,a);const c=isX(s);const l=c||isX(i);const u=l||isX(o);const d=u;if(n==="="&&d){n=""}a=t.includePrerelease?"-0":"";if(c){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&d){if(l){i=0}o=0;if(n===">"){n=">=";if(l){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(l){s=+s+1}else{i=+i+1}}if(n==="<"){a="-0"}r=`${n+s}.${i}.${o}${a}`}else if(l){r=`>=${s}.0.0${a} <${+s+1}.0.0-0`}else if(u){r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`}A("xRange return",r);return r}))};const replaceStars=(e,t)=>{A("replaceStars",e,t);return e.trim().replace(l[u.STAR],"")};const replaceGTE0=(e,t)=>{A("replaceGTE0",e,t);return e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")};const hyphenReplace=e=>(t,r,n,s,i,o,a,A,c,l,u,d)=>{if(isX(n)){r=""}else if(isX(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(c)){A=""}else if(isX(l)){A=`<${+c+1}.0.0-0`}else if(isX(u)){A=`<${c}.${+l+1}.0-0`}else if(d){A=`<=${c}.${l}.${u}-${d}`}else if(e){A=`<${c}.${l}.${+u+1}-0`}else{A=`<=${A}`}return`${r} ${A}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},7163:(e,t,r)=>{const n=r(1159);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(5101);const{safeRe:o,t:a}=r(5471);const A=r(356);const{compareIdentifiers:c}=r(3348);class SemVer{constructor(e,t){t=A(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const r=this.prerelease[t];const s=e.prerelease[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return c(r,s)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const s=e.build[t];n("build compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return c(r,s)}}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&r===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,r);this.inc("pre",t,r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,r)}this.inc("pre",t,r);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let n=this.prerelease.length;while(--n>=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,r)=>{const n=r(6353);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},8646:(e,t,r)=>{const n=r(5082);const s=r(4974);const i=r(6599);const o=r(1236);const a=r(3872);const A=r(6717);const cmp=(e,t,r,c)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return i(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return A(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,r)=>{const n=r(7163);const s=r(6353);const{safeRe:i,t:o}=r(5471);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE])}else{const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;while((s=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}n.lastIndex=s.index+s[1].length+s[2].length}n.lastIndex=-1}if(r===null){return null}const a=r[2];const A=r[3]||"0";const c=r[4]||"0";const l=t.includePrerelease&&r[5]?`-${r[5]}`:"";const u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${A}.${c}${l}${u}`,t)};e.exports=coerce},7648:(e,t,r)=>{const n=r(7163);const compareBuild=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=compareBuild},6874:(e,t,r)=>{const n=r(8469);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},8469:(e,t,r)=>{const n=r(7163);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},711:(e,t,r)=>{const n=r(6353);const diff=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const i=r.compare(s);if(i===0){return null}const o=i>0;const a=o?r:s;const A=o?s:r;const c=!!a.prerelease.length;const l=!!A.prerelease.length;if(l&&!c){if(!A.patch&&!A.minor){return"major"}if(A.compareMain(a)===0){if(A.minor&&!A.patch){return"minor"}return"patch"}}const u=c?"pre":"";if(r.major!==s.major){return u+"major"}if(r.minor!==s.minor){return u+"minor"}if(r.patch!==s.patch){return u+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,r)=>{const n=r(8469);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},6599:(e,t,r)=>{const n=r(8469);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},1236:(e,t,r)=>{const n=r(8469);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},2338:(e,t,r)=>{const n=r(7163);const inc=(e,t,r,s,i)=>{if(typeof r==="string"){i=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}};e.exports=inc},3872:(e,t,r)=>{const n=r(8469);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},6717:(e,t,r)=>{const n=r(8469);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},8511:(e,t,r)=>{const n=r(7163);const major=(e,t)=>new n(e,t).major;e.exports=major},2603:(e,t,r)=>{const n=r(7163);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},4974:(e,t,r)=>{const n=r(8469);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},6353:(e,t,r)=>{const n=r(7163);const parse=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},8756:(e,t,r)=>{const n=r(7163);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},5714:(e,t,r)=>{const n=r(6353);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},2173:(e,t,r)=>{const n=r(8469);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},7192:(e,t,r)=>{const n=r(7648);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},8011:(e,t,r)=>{const n=r(6782);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,r)=>{const n=r(7648);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},6114:(e,t,r)=>{const n=r(6353);const s=r(5101);const i=r(7163);const truncate=(e,t,r)=>{if(!s.RELEASE_TYPES.includes(t)){return null}const n=cloneInputVersion(e,r);return n&&doTruncation(n,t)};const cloneInputVersion=(e,t)=>{const r=e instanceof i?e.version:e;return n(r,t)};const doTruncation=(e,t)=>{if(isPrerelease(t)){return e.version}e.prerelease=[];switch(t){case"major":e.minor=0;e.patch=0;break;case"minor":e.patch=0;break}return e.format()};const isPrerelease=e=>e.startsWith("pre");e.exports=truncate},8780:(e,t,r)=>{const n=r(6353);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},2088:(e,t,r)=>{const n=r(5471);const s=r(5101);const i=r(7163);const o=r(3348);const a=r(6353);const A=r(8780);const c=r(1799);const l=r(2338);const u=r(711);const d=r(8511);const m=r(2603);const p=r(8756);const g=r(5714);const h=r(8469);const f=r(2173);const y=r(6874);const C=r(7648);const E=r(9872);const B=r(7192);const I=r(6599);const Q=r(3872);const b=r(5082);const S=r(4974);const N=r(1236);const w=r(6717);const R=r(8646);const x=r(5385);const D=r(6114);const k=r(9379);const v=r(6782);const T=r(8011);const P=r(4750);const M=r(5574);const L=r(8595);const F=r(1866);const U=r(4737);const O=r(280);const H=r(2276);const _=r(5213);const z=r(3465);const q=r(2028);const G=r(1489);e.exports={parse:a,valid:A,clean:c,inc:l,diff:u,major:d,minor:m,patch:p,prerelease:g,compare:h,rcompare:f,compareLoose:y,compareBuild:C,sort:E,rsort:B,gt:I,lt:Q,eq:b,neq:S,gte:N,lte:w,cmp:R,coerce:x,truncate:D,Comparator:k,Range:v,satisfies:T,toComparators:P,maxSatisfying:M,minSatisfying:L,minVersion:F,validRange:U,outside:O,gtr:H,ltr:_,intersects:z,simplifyRange:q,subset:G,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const i=r-6;const o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{if(typeof e==="number"&&typeof r==="number"){return e===r?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(5101);const o=r(1159);t=e.exports={};const a=t.re=[];const A=t.safeRe=[];const c=t.src=[];const l=t.safeSrc=[];const u=t.t={};let d=0;const m="[a-zA-Z0-9-]";const p=[["\\s",1],["\\d",i],[m,s]];const makeSafeRegex=e=>{for(const[t,r]of p){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const n=makeSafeRegex(t);const s=d++;o(e,s,t);u[e]=s;c[s]=t;l[s]=n;a[s]=new RegExp(t,r?"g":undefined);A[s]=new RegExp(n,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`);createToken("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${m}+`);createToken("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`);createToken("FULL",`^${c[u.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`);createToken("LOOSE",`^${c[u.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);createToken("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",c[u.COERCE],true);createToken("COERCERTLFULL",c[u.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,r)=>{const n=r(280);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},3465:(e,t,r)=>{const n=r(6782);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=intersects},5213:(e,t,r)=>{const n=r(280);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},5574:(e,t,r)=>{const n=r(7163);const s=r(6782);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=maxSatisfying},8595:(e,t,r)=>{const n=r(7163);const s=r(6782);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=minSatisfying},1866:(e,t,r)=>{const n=r(7163);const s=r(6782);const i=r(6599);const minVersion=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},280:(e,t,r)=>{const n=r(7163);const s=r(9379);const{ANY:i}=s;const o=r(6782);const a=r(8011);const A=r(6599);const c=r(3872);const l=r(6717);const u=r(1236);const outside=(e,t,r,d)=>{e=new n(e,d);t=new o(t,d);let m,p,g,h,f;switch(r){case">":m=A;p=l;g=c;h=">";f=">=";break;case"<":m=c;p=u;g=A;h="<";f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d)){return false}for(let r=0;r{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(m(e.semver,o.semver,d)){o=e}else if(g(e.semver,a.semver,d)){a=e}}));if(o.operator===h||o.operator===f){return false}if((!a.operator||a.operator===h)&&p(e,a.semver)){return false}else if(a.operator===f&&g(e,a.semver)){return false}}return true};e.exports=outside},2028:(e,t,r)=>{const n=r(8011);const s=r(8469);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const A=e.sort(((e,t)=>s(e,t,r)));for(const e of A){const s=n(e,t,r);if(s){a=e;if(!o){o=e}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const c=[];for(const[e,t]of i){if(e===t){c.push(e)}else if(!t&&e===A[0]){c.push("*")}else if(!t){c.push(`>=${e}`)}else if(e===A[0]){c.push(`<=${t}`)}else{c.push(`${e} - ${t}`)}}const l=c.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return l.length{const n=r(6782);const s=r(9379);const{ANY:i}=s;const o=r(8011);const a=r(8469);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const A=[new s(">=0.0.0-0")];const c=[new s(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=A}else{e=c}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=c}}const n=new Set;let s,l;for(const t of e){if(t.operator===">"||t.operator===">="){s=higherGT(s,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let u;if(s&&l){u=a(s.semver,l.semver,r);if(u>0){return null}else if(u===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const e of n){if(s&&!o(e,String(s),r)){return null}if(l&&!o(e,String(l),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let d,m;let p,g;let h=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(h&&h.prerelease.length===1&&l.operator==="<"&&h.prerelease[0]===0){h=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";p=p||e.operator==="<"||e.operator==="<=";if(s){if(f){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch){f=false}}if(e.operator===">"||e.operator===">="){d=higherGT(s,e,r);if(d===e&&d!==s){return false}}else if(s.operator===">="&&!o(s.semver,String(e),r)){return false}}if(l){if(h){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===h.major&&e.semver.minor===h.minor&&e.semver.patch===h.patch){h=false}}if(e.operator==="<"||e.operator==="<="){m=lowerLT(l,e,r);if(m===e&&m!==l){return false}}else if(l.operator==="<="&&!o(l.semver,String(e),r)){return false}}if(!e.operator&&(l||s)&&u!==0){return false}}if(s&&p&&!l&&u!==0){return false}if(l&&g&&!s&&u!==0){return false}if(f||h){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,r)=>{const n=r(6782);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,r)=>{const n=r(6782);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,r)=>{const n=r(857);const s=r(2018);const i=r(3813);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},770:(e,t,r)=>{e.exports=r(218)},218:(e,t,r)=>{var n;var s=r(9278);var i=r(4756);var o=r(8611);var a=r(5692);var A=r(4434);var c=r(2613);var l=r(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var i=toOptions(r,n,s);for(var o=0,a=t.requests.length;o=this.maxSockets){s.requests.push(i);return}s.createSocket(i,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,i)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}u("making CONNECT request");var i=r.request(s);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,o,a){i.removeAllListeners();o.removeAllListeners();if(s.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",s.statusCode);o.destroy();var A=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);A.code="ECONNRESET";e.request.emit("error",A);r.removeSocket(n);return}if(a.length>0){u("got illegal response body from proxy");o.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET";e.request.emit("error",A);r.removeSocket(n);return}u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){i.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var n;const s=r(3701);const i=r(883);const o=r(628);const a=r(837);const A=r(7405);const c=r(6672);const l=r(3137);const u=r(50);const d=r(8707);const m=r(3440);const{InvalidArgumentError:p}=d;const g=r(6615);const h=r(9136);const f=r(7365);const y=r(7501);const C=r(4004);const E=r(2429);const B=r(7816);const{getGlobalDispatcher:I,setGlobalDispatcher:Q}=r(2581);const b=r(8155);const S=r(8754);const N=r(5092);Object.assign(i.prototype,g);n=i;n=s;n=o;n=a;n=A;e.exports.kT=c;n=l;n=u;n=B;n=b;n=S;n=N;n={redirect:r(1514),retry:r(2026),dump:r(8060),dns:r(379)};n=h;n=d;n={parseHeaders:m.parseHeaders,headerNameToString:m.headerNameToString};function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new p("invalid url")}if(r!=null&&typeof r!=="object"){throw new p("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new p("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(m.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=m.parseURL(t)}const{agent:s,dispatcher:i=I()}=r;if(s){throw new p("unsupported opts.agent. Did you mean opts.client?")}return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}n=Q;n=I;const w=r(4398).fetch;n=async function fetch(e,t=undefined){try{return await w(e,t)}catch(e){if(e&&typeof e==="object"){Error.captureStackTrace(e)}throw e}};r(660).Headers;r(9051).Response;r(9967).Request;r(5910).FormData;n=globalThis.File??r(4573).File;r(8355).FileReader;const{setGlobalOrigin:R,getGlobalOrigin:x}=r(1059);n=R;n=x;const{CacheStorage:D}=r(3245);const{kConstruct:k}=r(109);n=new D(k);const{deleteCookie:v,getCookies:T,getSetCookies:P,setCookie:M}=r(9061);n=v;n=T;n=P;n=M;const{parseMIMEType:L,serializeAMimeType:F}=r(1900);n=L;n=F;const{CloseEvent:U,ErrorEvent:O,MessageEvent:H}=r(5188);r(3726).WebSocket;n=U;n=O;n=H;n=makeDispatcher(g.request);n=makeDispatcher(g.stream);n=makeDispatcher(g.pipeline);n=makeDispatcher(g.connect);n=makeDispatcher(g.upgrade);n=f;n=C;n=y;n=E;const{EventSource:_}=r(1238);n=_},158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(8707);const i=Symbol("kListener");const o=Symbol("kSignal");function abort(e){if(e.abort){e.abort(e[o]?.reason)}else{e.reason=e[o]?.reason??new s}removeSignal(e)}function addSignal(e,t){e.reason=null;e[o]=null;e[i]=null;if(!t){return}if(t.aborted){abort(e);return}e[o]=t;e[i]=()=>{abort(e)};n(e[o],e[i])}function removeSignal(e){if(!e[o]){return}if("removeEventListener"in e[o]){e[o].removeEventListener("abort",e[i])}else{e[o].removeListener("abort",e[i])}e[o]=null;e[i]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(e,t,r)=>{const n=r(4589);const{AsyncResource:s}=r(6698);const{InvalidArgumentError:i,SocketError:o}=r(8707);const a=r(3440);const{addSignal:A,removeSignal:c}=r(158);class ConnectHandler extends s{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:r,opaque:n,responseHeaders:s}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=s||null;this.callback=t;this.abort=null;A(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(){throw new o("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:i}=this;c(this);this.callback=null;let o=t;if(o!=null){o=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:o,socket:r,opaque:s,context:i})}onError(e){const{callback:t,opaque:r}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},6862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:i}=r(7075);const{InvalidArgumentError:o,InvalidReturnValueError:a,RequestAbortedError:A}=r(8707);const c=r(3440);const{AsyncResource:l}=r(6698);const{addSignal:u,removeSignal:d}=r(158);const m=r(4589);const p=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[p]=null}_read(){const{[p]:e}=this;if(e){this[p]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[p]=e}_read(){this[p]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new A}t(e)}}class PipelineHandler extends l{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid handler")}const{signal:r,method:n,opaque:i,onInfo:a,responseHeaders:l}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new o("invalid method")}if(a&&typeof a!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=i||null;this.responseHeaders=l||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",c.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e?.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[p]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:i,abort:o}=this;if(!e&&!i._readableState.endEmitted){e=new A}if(o&&e){o()}c.destroy(r,e);c.destroy(n,e);c.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;u(this,r)}onConnect(e,t){const{ret:r,res:n}=this;if(this.reason){e(this.reason);return}m(!n,"pipeline cannot be retried");m(!r.destroyed);this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:i}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let o;try{this.handler=null;const r=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);o=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:i})}catch(e){this.res.on("error",c.nop);throw e}if(!o||typeof o.on!=="function"){throw new a("expected Readable")}o.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;c.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){c.destroy(e,new A)}}));this.body=o}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;c.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new i).destroy(e)}}e.exports=pipeline},4043:(e,t,r)=>{const n=r(4589);const{Readable:s}=r(9927);const{InvalidArgumentError:i,RequestAbortedError:o}=r(8707);const a=r(3440);const{getResolveErrorBodyCallback:A}=r(7655);const{AsyncResource:c}=r(6698);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}const{signal:r,method:n,opaque:s,body:A,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new i("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new i("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(c&&typeof c!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(a.isStream(A)){a.destroy(A.on("error",a.nop),e)}throw e}this.method=n;this.responseHeaders=l||null;this.opaque=s||null;this.callback=t;this.res=null;this.abort=null;this.body=A;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=u;this.highWaterMark=d;this.signal=r;this.reason=null;this.removeAbortListener=null;if(a.isStream(A)){A.on("error",(e=>{this.onError(e)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new o}else{this.removeAbortListener=a.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new o;if(this.res){a.destroy(this.res.on("error",a.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(e,t,r,n){const{callback:i,opaque:o,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this;const m=u==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:m})}return}const p=u==="raw"?a.parseHeaders(t):m;const g=p["content-type"];const h=p["content-length"];const f=new s({resume:r,abort:c,contentType:g,contentLength:this.method!=="HEAD"&&h?Number(h):null,highWaterMark:d});if(this.removeAbortListener){f.on("close",this.removeAbortListener)}this.callback=null;this.res=f;if(i!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(A,null,{callback:i,body:f,contentType:g,statusCode:e,statusMessage:n,headers:m})}else{this.runInAsyncScope(i,null,null,{statusCode:e,headers:m,trailers:this.trailers,opaque:o,body:f,context:l})}}}onData(e){return this.res.push(e)}onComplete(e){a.parseHeaders(e,this.trailers);this.res.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{a.destroy(t,e)}))}if(n){this.body=null;a.destroy(n,e)}if(this.removeAbortListener){t?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const n=r(4589);const{finished:s,PassThrough:i}=r(7075);const{InvalidArgumentError:o,InvalidReturnValueError:a}=r(8707);const A=r(3440);const{getResolveErrorBodyCallback:c}=r(7655);const{AsyncResource:l}=r(6698);const{addSignal:u,removeSignal:d}=r(158);class StreamHandler extends l{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:c,responseHeaders:l,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(c&&typeof c!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(A.isStream(a)){A.destroy(a.on("error",A.nop),e)}throw e}this.responseHeaders=l||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=c||null;this.throwOnError=d||false;if(A.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(e,t,r,n){const{factory:o,opaque:l,context:u,callback:d,responseHeaders:m}=this;const p=m==="raw"?A.parseRawHeaders(t):A.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}this.factory=null;let g;if(this.throwOnError&&e>=400){const r=m==="raw"?A.parseHeaders(t):p;const s=r["content-type"];g=new i;this.callback=null;this.runInAsyncScope(c,null,{callback:d,body:g,contentType:s,statusCode:e,statusMessage:n,headers:p})}else{if(o===null){return}g=this.runInAsyncScope(o,null,{statusCode:e,headers:p,opaque:l,context:u});if(!g||typeof g.write!=="function"||typeof g.end!=="function"||typeof g.on!=="function"){throw new a("expected Writable")}s(g,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:i}=this;this.res=null;if(e||!r.readable){A.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){i()}}))}g.on("drain",r);this.res=g;const h=g.writableNeedDrain!==undefined?g.writableNeedDrain:g._writableState?.needDrain;return h!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=A.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;A.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;A.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e?.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},1882:(e,t,r)=>{const{InvalidArgumentError:n,SocketError:s}=r(8707);const{AsyncResource:i}=r(6698);const o=r(3440);const{addSignal:a,removeSignal:A}=r(158);const c=r(4589);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:i}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=i||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;a(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}c(this.callback);this.abort=e;this.context=null}onHeaders(){throw new s("bad upgrade",null)}onUpgrade(e,t,r){c(e===101);const{callback:n,opaque:s,context:i}=this;A(this);this.callback=null;const a=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:a,socket:r,opaque:s,context:i})}onError(e){const{callback:t,opaque:r}=this;A(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},6615:(e,t,r)=>{e.exports.request=r(4043);e.exports.stream=r(3560);e.exports.pipeline=r(6862);e.exports.upgrade=r(1882);e.exports.connect=r(2279)},9927:(e,t,r)=>{const n=r(4589);const{Readable:s}=r(7075);const{RequestAbortedError:i,NotSupportedError:o,InvalidArgumentError:a,AbortError:A}=r(8707);const c=r(3440);const{ReadableStreamFrom:l}=r(3440);const u=Symbol("kConsume");const d=Symbol("kReading");const m=Symbol("kBody");const p=Symbol("kAbort");const g=Symbol("kContentType");const h=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",contentLength:n,highWaterMark:s=64*1024}){super({autoDestroy:true,read:e,highWaterMark:s});this._readableState.dataEmitted=false;this[p]=t;this[u]=null;this[m]=null;this[g]=r;this[h]=n;this[d]=false}destroy(e){if(!e&&!this._readableState.endEmitted){e=new i}if(e){this[p]()}return super.destroy(e)}_destroy(e,t){if(!this[d]){setImmediate((()=>{t(e)}))}else{t(e)}}on(e,...t){if(e==="data"||e==="readable"){this[d]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[d]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[u]&&e!==null){consumePush(this[u],e);return this[d]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new o}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[m]){this[m]=l(this);if(this[u]){this[m].getReader();n(this[m].locked)}}return this[m]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024;const r=e?.signal;if(r!=null&&(typeof r!=="object"||!("aborted"in r))){throw new a("signal must be an AbortSignal")}r?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((e,n)=>{if(this[h]>t){this.destroy(new A)}const onAbort=()=>{this.destroy(r.reason??new A)};r?.addEventListener("abort",onAbort);this.on("close",(function(){r?.removeEventListener("abort",onAbort);if(r?.aborted){n(r.reason??new A)}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}}function isLocked(e){return e[m]&&e[m].locked===true||e[u]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){n(!e[u]);return new Promise(((r,n)=>{if(isUnusable(e)){const t=e._readableState;if(t.destroyed&&t.closeEmitted===false){e.on("error",(e=>{n(e)})).on("close",(()=>{n(new TypeError("unusable"))}))}else{n(t.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{e[u]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[u],e)})).on("close",(function(){if(this[u].body!==null){consumeFinish(this[u],new i)}}));consumeStart(e[u])}))}}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;if(t.bufferIndex){const r=t.bufferIndex;const n=t.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}function chunksConcat(e,t){if(e.length===0||t===0){return new Uint8Array(0)}if(e.length===1){return new Uint8Array(e[0])}const r=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer);let n=0;for(let t=0;t{const n=r(4589);const{ResponseStatusCodeError:s}=r(8707);const{chunksDecode:i}=r(9927);const o=128*1024;async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:a,statusMessage:A,headers:c}){n(t);let l=[];let u=0;try{for await(const e of t){l.push(e);u+=e.length;if(u>o){l=[];u=0;break}}}catch{l=[];u=0}const d=`Response status code ${a}${A?`: ${A}`:""}`;if(a===204||!r||!u){queueMicrotask((()=>e(new s(d,a,c))));return}const m=Error.stackTraceLimit;Error.stackTraceLimit=0;let p;try{if(isContentTypeApplicationJson(r)){p=JSON.parse(i(l,u))}else if(isContentTypeText(r)){p=i(l,u)}}catch{}finally{Error.stackTraceLimit=m}queueMicrotask((()=>e(new s(d,a,c,p))))}const isContentTypeApplicationJson=e=>e.length>15&&e[11]==="/"&&e[0]==="a"&&e[1]==="p"&&e[2]==="p"&&e[3]==="l"&&e[4]==="i"&&e[5]==="c"&&e[6]==="a"&&e[7]==="t"&&e[8]==="i"&&e[9]==="o"&&e[10]==="n"&&e[12]==="j"&&e[13]==="s"&&e[14]==="o"&&e[15]==="n";const isContentTypeText=e=>e.length>4&&e[4]==="/"&&e[0]==="t"&&e[1]==="e"&&e[2]==="x"&&e[3]==="t";e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(e,t,r)=>{const n=r(7030);const s=r(4589);const i=r(3440);const{InvalidArgumentError:o,ConnectTimeoutError:a}=r(8707);const A=r(6603);function noop(){}let c;let l;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){l=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,session:d,...m}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new o("maxCachedSessions must be a positive integer or zero")}const p={path:a,...m};const g=new l(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:o,protocol:a,port:l,servername:m,localAddress:h,httpSocket:f},y){let C;if(a==="https:"){if(!c){c=r(1692)}m=m||p.servername||i.getServerName(o)||null;const n=m||t;s(n);const a=d||g.get(n)||null;l=l||443;C=c.connect({highWaterMark:16384,...p,servername:m,session:a,localAddress:h,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:f,port:l,host:t});C.on("session",(function(e){g.set(n,e)}))}else{s(!f,"httpSocket can only be sent on TLS update");l=l||80;C=n.connect({highWaterMark:64*1024,...p,localAddress:h,port:l,host:t})}if(p.keepAlive==null||p.keepAlive){const e=p.keepAliveInitialDelay===undefined?6e4:p.keepAliveInitialDelay;C.setKeepAlive(true,e)}const E=u(new WeakRef(C),{timeout:A,hostname:t,port:l});C.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){queueMicrotask(E);if(y){const e=y;y=null;e(null,this)}})).on("error",(function(e){queueMicrotask(E);if(y){const t=y;y=null;t(e)}}));return C}}const u=process.platform==="win32"?(e,t)=>{if(!t.timeout){return noop}let r=null;let n=null;const s=A.setFastTimeout((()=>{r=setImmediate((()=>{n=setImmediate((()=>onConnectTimeout(e.deref(),t)))}))}),t.timeout);return()=>{A.clearFastTimeout(s);clearImmediate(r);clearImmediate(n)}}:(e,t)=>{if(!t.timeout){return noop}let r=null;const n=A.setFastTimeout((()=>{r=setImmediate((()=>{onConnectTimeout(e.deref(),t)}))}),t.timeout);return()=>{A.clearFastTimeout(n);clearImmediate(r)}};function onConnectTimeout(e,t){if(e==null){return}let r="Connect Timeout Error";if(Array.isArray(e.autoSelectFamilyAttemptedAddresses)){r+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{r+=` (attempted address: ${t.hostname}:${t.port},`}r+=` timeout: ${t.timeout}ms)`;i.destroy(e,new a(r))}e.exports=buildConnector},735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{const n=r(3053);const s=r(7975);const i=s.debuglog("undici");const o=s.debuglog("fetch");const a=s.debuglog("websocket");let A=false;const c={beforeConnect:n.channel("undici:client:beforeConnect"),connected:n.channel("undici:client:connected"),connectError:n.channel("undici:client:connectError"),sendHeaders:n.channel("undici:client:sendHeaders"),create:n.channel("undici:request:create"),bodySent:n.channel("undici:request:bodySent"),headers:n.channel("undici:request:headers"),trailers:n.channel("undici:request:trailers"),error:n.channel("undici:request:error"),open:n.channel("undici:websocket:open"),close:n.channel("undici:websocket:close"),socketError:n.channel("undici:websocket:socket_error"),ping:n.channel("undici:websocket:ping"),pong:n.channel("undici:websocket:pong")};if(i.enabled||o.enabled){const e=o.enabled?o:i;n.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connecting to %s using %s%s",`${i}${s?`:${s}`:""}`,n,r)}));n.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connected to %s using %s%s",`${i}${s?`:${s}`:""}`,n,r)}));n.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i},error:o}=t;e("connection to %s using %s%s errored - %s",`${i}${s?`:${s}`:""}`,n,r,o.message)}));n.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("sending request to %s %s/%s",r,s,n)}));n.channel("undici:request:headers").subscribe((t=>{const{request:{method:r,path:n,origin:s},response:{statusCode:i}}=t;e("received response to %s %s/%s - HTTP %d",r,s,n,i)}));n.channel("undici:request:trailers").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("trailers received from %s %s/%s",r,s,n)}));n.channel("undici:request:error").subscribe((t=>{const{request:{method:r,path:n,origin:s},error:i}=t;e("request to %s %s/%s errored - %s",r,s,n,i.message)}));A=true}if(a.enabled){if(!A){const e=i.enabled?i:a;n.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connecting to %s%s using %s%s",i,s?`:${s}`:"",n,r)}));n.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connected to %s%s using %s%s",i,s?`:${s}`:"",n,r)}));n.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i},error:o}=t;e("connection to %s%s using %s%s errored - %s",i,s?`:${s}`:"",n,r,o.message)}));n.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("sending request to %s %s/%s",r,s,n)}))}n.channel("undici:websocket:open").subscribe((e=>{const{address:{address:t,port:r}}=e;a("connection opened %s%s",t,r?`:${r}`:"")}));n.channel("undici:websocket:close").subscribe((e=>{const{websocket:t,code:r,reason:n}=e;a("closed connection to %s - %s %s",t.url,r,n)}));n.channel("undici:websocket:socket_error").subscribe((e=>{a("connection errored - %s",e.message)}));n.channel("undici:websocket:ping").subscribe((e=>{a("ping received")}));n.channel("undici:websocket:pong").subscribe((e=>{a("pong received")}))}e.exports={channels:c}},8707:e=>{const t=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[t]===true}[t]=true}const r=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{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[r]===true}[r]=true}const n=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{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[n]===true}[n]=true}const s=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{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[s]===true}[s]=true}const i=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{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[i]===true}[i]=true}const o=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}static[Symbol.hasInstance](e){return e&&e[o]===true}[o]=true}const a=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[a]===true}[a]=true}const A=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[A]===true}[A]=true}const c=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[c]===true}[c]=true}const l=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[l]===true}[l]=true}const u=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[u]===true}[u]=true}const d=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[d]===true}[d]=true}const m=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[m]===true}[m]=true}const p=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[p]===true}[p]=true}const g=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[g]===true}[g]=true}const h=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(e,t){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}static[Symbol.hasInstance](e){return e&&e[h]===true}[h]=true}const f=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[f]===true}[f]=true}const y=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[y]===true}[y]=true}const C=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(e,t,r){super(e);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}static[Symbol.hasInstance](e){return e&&e[C]===true}[C]=true}const E=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[E]===true}[E]=true}const B=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}static[Symbol.hasInstance](e){return e&&e[B]===true}[B]=true}const I=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=t;this.data=n;this.headers=r}static[Symbol.hasInstance](e){return e&&e[I]===true}[I]=true}const Q=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(e,t,r){super(t,{cause:e,...r??{}});this.name="SecureProxyConnectionError";this.message=t||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}static[Symbol.hasInstance](e){return e&&e[Q]===true}[Q]=true}const b=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(e){super(e);this.name="MessageSizeExceededError";this.message=e||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[b]===true}get[b](){return true}}e.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(8707);const i=r(4589);const{isValidHTTPToken:o,isValidHeaderValue:a,isStream:A,destroy:c,isBuffer:l,isFormDataLike:u,isIterable:d,isBlobLike:m,buildURL:p,validateHandler:g,getServerName:h,normalizedMethodRecords:f}=r(3440);const{channels:y}=r(2414);const{headerNameLowerCasedRecord:C}=r(735);const E=/[^\u0021-\u00ff]/;const B=Symbol("handler");class Request{constructor(e,{path:t,method:r,body:s,headers:i,query:C,idempotent:I,blocking:Q,upgrade:b,headersTimeout:S,bodyTimeout:N,reset:w,throwOnError:R,expectContinue:x,servername:D},k){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(E.test(t)){throw new n("invalid request path")}if(typeof r!=="string"){throw new n("method must be a string")}else if(f[r]===undefined&&!o(r)){throw new n("invalid request method")}if(b&&typeof b!=="string"){throw new n("upgrade must be a string")}if(b&&!a(b)){throw new n("invalid upgrade header")}if(S!=null&&(!Number.isFinite(S)||S<0)){throw new n("invalid headersTimeout")}if(N!=null&&(!Number.isFinite(N)||N<0)){throw new n("invalid bodyTimeout")}if(w!=null&&typeof w!=="boolean"){throw new n("invalid reset")}if(x!=null&&typeof x!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=S;this.bodyTimeout=N;this.throwOnError=R===true;this.method=r;this.abort=null;if(s==null){this.body=null}else if(A(s)){this.body=s;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){c(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(l(s)){this.body=s.byteLength?s:null}else if(ArrayBuffer.isView(s)){this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null}else if(s instanceof ArrayBuffer){this.body=s.byteLength?Buffer.from(s):null}else if(typeof s==="string"){this.body=s.length?Buffer.from(s):null}else if(u(s)||d(s)||m(s)){this.body=s}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=b||null;this.path=C?p(t,C):t;this.origin=e;this.idempotent=I==null?r==="HEAD"||r==="GET":I;this.blocking=Q==null?false:Q;this.reset=w==null?null:w;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=x!=null?x:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.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")}},7752:(e,t,r)=>{const{wellknownHeaderNames:n,headerNameLowerCasedRecord:s}=r(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,t,r){if(r===undefined||r>=e.length){throw new TypeError("Unreachable")}const n=this.code=e.charCodeAt(r);if(n>127){throw new TypeError("key must be ascii string")}if(e.length!==++r){this.middle=new TstNode(e,t,r)}else{this.value=t}}add(e,t){const r=e.length;if(r===0){throw new TypeError("Unreachable")}let n=0;let s=this;while(true){const i=e.charCodeAt(n);if(i>127){throw new TypeError("key must be ascii string")}if(s.code===i){if(r===++n){s.value=t;break}else if(s.middle!==null){s=s.middle}else{s.middle=new TstNode(e,t,n);break}}else if(s.code=65){s|=32}while(n!==null){if(s===n.code){if(t===++r){return n}n=n.middle;break}n=n.code{const n=r(4589);const{kDestroyed:s,kBodyUsed:i,kListeners:o,kBody:a}=r(6443);const{IncomingMessage:A}=r(7067);const c=r(7075);const l=r(7030);const{Blob:u}=r(4573);const d=r(7975);const{stringify:m}=r(1792);const{EventEmitter:p}=r(8474);const{InvalidArgumentError:g}=r(8707);const{headerNameLowerCasedRecord:h}=r(735);const{tree:f}=r(7752);const[y,C]=process.versions.node.split(".").map((e=>Number(e)));class BodyAsyncIterable{constructor(e){this[a]=e;this[i]=false}async*[Symbol.asyncIterator](){n(!this[i],"disturbed");this[i]=true;yield*this[a]}}function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){n(false)}))}if(typeof e.readableDidRead!=="boolean"){e[i]=false;p.prototype.on.call(e,"data",(function(){this[i]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new BodyAsyncIterable(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new BodyAsyncIterable(e)}else{return e}}function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){if(e===null){return false}else if(e instanceof u){return true}else if(typeof e!=="object"){return false}else{const t=e[Symbol.toStringTag];return(t==="Blob"||t==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=m(t);if(r){e+="?"+r}return e}function isValidPort(e){const t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new g("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new g("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new g("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new g("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new g("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new g("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new g("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new g("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r[r.length-1]==="/"){r=r.slice(0,r.length-1)}if(n&&n[0]!=="/"){n=`/${n}`}return new URL(`${r}${n}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new g("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new g("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n(typeof e==="string");const t=getHostname(e);if(l.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return e&&!!(e.destroyed||e[s]||c.isDestroyed?.(e))}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===A){e.socket=null}e.destroy(t)}else if(t){queueMicrotask((()=>{e.emit("error",t)}))}if(e.destroyed!==true){e[s]=true}}const E=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(E);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return typeof e==="string"?h[e]??e.toLowerCase():f.lookup(e)??e.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(e){return f.lookup(e)??e.toString("latin1").toLowerCase()}function parseHeaders(e,t){if(t===undefined)t={};for(let r=0;re.toString("utf8"))):s.toString("utf8")}}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=e.length;const r=new Array(t);let n=false;let s=-1;let i;let o;let a=0;for(let t=0;t{e.close();e.byobRequest?.respond(0)}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);if(t.byteLength){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const B=typeof String.prototype.toWellFormed==="function";const I=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return B?`${e}`.toWellFormed():d.toUSVString(e)}function isUSVString(e){return I?`${e}`.isWellFormed():toUSVString(e)===`${e}`}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t{const{InvalidArgumentError:n}=r(8707);const{kClients:s,kRunning:i,kClose:o,kDestroy:a,kDispatch:A,kInterceptors:c}=r(6443);const l=r(1841);const u=r(628);const d=r(3701);const m=r(3440);const p=r(5092);const g=Symbol("onConnect");const h=Symbol("onDisconnect");const f=Symbol("onConnectionError");const y=Symbol("maxRedirections");const C=Symbol("onDrain");const E=Symbol("factory");const B=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}class Agent extends l{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...i}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[c]=i.interceptors?.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[p({maxRedirections:t})];this[B]={...m.deepClone(i),connect:r};this[B].interceptors=i.interceptors?{...i.interceptors}:undefined;this[y]=t;this[E]=e;this[s]=new Map;this[C]=(e,t)=>{this.emit("drain",e,[this,...t])};this[g]=(e,t)=>{this.emit("connect",e,[this,...t])};this[h]=(e,t,r)=>{this.emit("disconnect",e,[this,...t],r)};this[f]=(e,t,r)=>{this.emit("connectionError",e,[this,...t],r)}}get[i](){let e=0;for(const t of this[s].values()){e+=t[i]}return e}[A](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}let i=this[s].get(r);if(!i){i=this[E](e.origin,this[B]).on("drain",this[C]).on("connect",this[g]).on("disconnect",this[h]).on("connectionError",this[f]);this[s].set(r,i)}return i.dispatch(e,t)}async[o](){const e=[];for(const t of this[s].values()){e.push(t.close())}this[s].clear();await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){t.push(r.destroy(e))}this[s].clear();await Promise.all(t)}}e.exports=Agent},837:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(8707);const{PoolBase:i,kClients:o,kNeedDrain:a,kAddClient:A,kRemoveClient:c,kGetDispatcher:l}=r(2128);const u=r(628);const{kUrl:d,kInterceptors:m}=r(6443);const{parseOrigin:p}=r(3440);const g=Symbol("factory");const h=Symbol("options");const f=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const C=Symbol("kIndex");const E=Symbol("kWeight");const B=Symbol("kMaxWeightPerServer");const I=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(e===0)return t;while(t!==0){const r=t;t=e%t;e=r}return e}function defaultFactory(e,t){return new u(e,t)}class BalancedPool extends i{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[h]=r;this[C]=-1;this[y]=0;this[B]=this[h].maxWeightPerServer||100;this[I]=this[h].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[m]=r.interceptors?.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[g]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=p(e).origin;if(this[o].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[g](t,Object.assign({},this[h]));this[A](r);r.on("connect",(()=>{r[E]=Math.min(this[B],r[E]+this[I])}));r.on("connectionError",(()=>{r[E]=Math.max(1,r[E]-this[I]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[E]=Math.max(1,r[E]-this[I]);this._updateBalancedPoolStats()}}));for(const e of this[o]){e[E]=this[B]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[c](r)}return this}get upstreams(){return this[o].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[l](){if(this[o].length===0){throw new n}const e=this[o].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[o].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[o].findIndex((e=>!e[a]));while(r++this[o][s][E]&&!e[a]){s=this[C]}if(this[C]===0){this[y]=this[y]-this[f];if(this[y]<=0){this[y]=this[B]}}if(e[E]>=this[y]&&!e[a]){return e}}this[y]=this[o][s][E];this[C]=s;return this[o][s]}}e.exports=BalancedPool},637:(e,t,r)=>{const n=r(4589);const s=r(3440);const{channels:i}=r(2414);const o=r(6603);const{RequestContentLengthMismatchError:a,ResponseContentLengthMismatchError:A,RequestAbortedError:c,HeadersTimeoutError:l,HeadersOverflowError:u,SocketError:d,InformationalError:m,BodyTimeoutError:p,HTTPParserError:g,ResponseExceededMaxSizeError:h}=r(8707);const{kUrl:f,kReset:y,kClient:C,kParser:E,kBlocking:B,kRunning:I,kPending:Q,kSize:b,kWriting:S,kQueue:N,kNoRef:w,kKeepAliveDefaultTimeout:R,kHostHeader:x,kPendingIdx:D,kRunningIdx:k,kError:v,kPipelining:T,kSocket:P,kKeepAliveTimeoutValue:M,kMaxHeadersSize:L,kKeepAliveMaxTimeout:F,kKeepAliveTimeoutThreshold:U,kHeadersTimeout:O,kBodyTimeout:H,kStrictContentLength:_,kMaxRequests:z,kCounter:q,kMaxResponseSize:G,kOnError:V,kResume:Y,kHTTPContext:J}=r(6443);const W=r(2824);const j=Buffer.alloc(0);const $=Buffer[Symbol.species];const K=s.addListener;const X=s.removeAllListeners;let Z;async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(3870):undefined;let t;try{t=await WebAssembly.compile(r(3434))}catch(n){t=await WebAssembly.compile(e||r(3870))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onStatus(new $(ne.buffer,s,r))||0},wasm_on_message_begin:e=>{n(re.ptr===e);return re.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onHeaderField(new $(ne.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onHeaderValue(new $(ne.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n(re.ptr===e);return re.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onBody(new $(ne.buffer,s,r))||0},wasm_on_message_complete:e=>{n(re.ptr===e);return re.onMessageComplete()||0}}})}let ee=null;let te=lazyllhttp();te.catch();let re=null;let ne=null;let se=0;let ie=null;const oe=0;const ae=1;const Ae=2|ae;const ce=4|ae;const le=8|oe;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[L])&&e[L]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(W.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[L];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[G]}setTimeout(e,t){if(e!==this.timeoutValue||t&ae^this.timeoutType&ae){if(this.timeout){o.clearTimeout(this.timeout);this.timeout=null}if(e){if(t&ae){this.timeout=o.setFastTimeout(onParserTimeout,e,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,e,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=t}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(re==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||j);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(re==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>se){if(ie){r.free(ie)}se=Math.ceil(e.length/4096)*4096;ie=r.malloc(se)}new Uint8Array(r.memory.buffer,ie,se).set(e);try{let n;try{ne=e;re=this;n=r.llhttp_execute(this.ptr,ie,e.length)}catch(e){throw e}finally{re=null;ne=null}const s=r.llhttp_get_error_pos(this.ptr)-ie;if(n===W.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===W.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==W.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let i="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);i="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new g(i,W.ERROR[n],e.slice(s))}}catch(e){s.destroy(t,e)}}destroy(){n(this.ptr!=null);n(re==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&o.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[N][t[k]];if(!r){return-1}r.onResponseStarted()}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10){const t=s.bufferToLowerCasedHeaderName(r);if(t==="keep-alive"){this.keepAlive+=e.toString()}else if(t==="connection"){this.connection+=e.toString()}}else if(r.length===14&&s.bufferToLowerCasedHeaderName(r)==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){s.destroy(this.socket,new u)}}onUpgrade(e){const{upgrade:t,client:r,socket:i,headers:o,statusCode:a}=this;n(t);n(r[P]===i);n(!i.destroyed);n(!this.paused);n((o.length&1)===0);const A=r[N][r[k]];n(A);n(A.upgrade||A.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;i.unshift(e);i[E].destroy();i[E]=null;i[C]=null;i[v]=null;X(i);r[P]=null;r[J]=null;r[N][r[k]++]=null;r.emit("disconnect",r[f],[r],new m("upgrade"));try{A.onUpgrade(a,o,i)}catch(e){s.destroy(i,e)}r[Y]()}onHeadersComplete(e,t,r){const{client:i,socket:o,headers:a,statusText:A}=this;if(o.destroyed){return-1}const c=i[N][i[k]];if(!c){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){s.destroy(o,new d("bad response",s.getSocketInfo(o)));return-1}if(t&&!c.upgrade){s.destroy(o,new d("bad upgrade",s.getSocketInfo(o)));return-1}n(this.timeoutType===Ae);this.statusCode=e;this.shouldKeepAlive=r||c.method==="HEAD"&&!o[y]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=c.bodyTimeout!=null?c.bodyTimeout:i[H];this.setTimeout(e,ce)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(c.method==="CONNECT"){n(i[I]===1);this.upgrade=true;return 2}if(t){n(i[I]===1);this.upgrade=true;return 2}n((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&i[T]){const e=this.keepAlive?s.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-i[U],i[F]);if(t<=0){o[y]=true}else{i[M]=t}}else{i[M]=i[R]}}else{o[y]=true}const l=c.onHeaders(e,a,this.resume,A)===false;if(c.aborted){return-1}if(c.method==="HEAD"){return 1}if(e<200){return 1}if(o[B]){o[B]=false;i[Y]()}return l?W.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:i,maxResponseSize:o}=this;if(r.destroyed){return-1}const a=t[N][t[k]];n(a);n(this.timeoutType===ce);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(i>=200);if(o>-1&&this.bytesRead+e.length>o){s.destroy(r,new h);return-1}this.bytesRead+=e.length;if(a.onData(e)===false){return W.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:i,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(t.destroyed&&(!r||l)){return-1}if(i){return}n(r>=100);n((this.headers.length&1)===0);const u=e[N][e[k]];n(u);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(r<200){return}if(u.method!=="HEAD"&&a&&c!==parseInt(a,10)){s.destroy(t,new A);return-1}u.onComplete(o);e[N][e[k]++]=null;if(t[S]){n(e[I]===0);s.destroy(t,new m("reset"));return W.ERROR.PAUSED}else if(!l){s.destroy(t,new m("reset"));return W.ERROR.PAUSED}else if(t[y]&&e[I]===0){s.destroy(t,new m("reset"));return W.ERROR.PAUSED}else if(e[T]==null||e[T]===1){setImmediate((()=>e[Y]()))}else{e[Y]()}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:i,paused:o}=e.deref();if(r===Ae){if(!t[S]||t.writableNeedDrain||i[I]>1){n(!o,"cannot be paused while waiting for headers");s.destroy(t,new l)}}else if(r===ce){if(!o){s.destroy(t,new p)}}else if(r===le){n(i[I]===0&&i[M]);s.destroy(t,new m("socket idle timeout"))}}async function connectH1(e,t){e[P]=t;if(!ee){ee=await te;te=null}t[w]=false;t[S]=false;t[y]=false;t[B]=false;t[E]=new Parser(e,t,ee);K(t,"error",(function(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const t=this[E];if(e.code==="ECONNRESET"&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[v]=e;this[C][V](e)}));K(t,"readable",(function(){const e=this[E];if(e){e.readMore()}}));K(t,"end",(function(){const e=this[E];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}s.destroy(this,new d("other side closed",s.getSocketInfo(this)))}));K(t,"close",(function(){const e=this[C];const t=this[E];if(t){if(!this[v]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[E].destroy();this[E]=null}const r=this[v]||new d("closed",s.getSocketInfo(this));e[P]=null;e[J]=null;if(e.destroyed){n(e[Q]===0);const t=e[N].splice(e[k]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[N][e[k]];e[N][e[k]++]=null;s.errorRequest(e,t,r)}e[D]=e[k];n(e[I]===0);e.emit("disconnect",e[f],[e],r);e[Y]()}));let r=false;t.on("close",(()=>{r=true}));return{version:"h1",defaultPipelining:1,write(...t){return writeH1(e,...t)},resume(){resumeH1(e)},destroy(e,n){if(r){queueMicrotask(n)}else{t.destroy(e).on("close",n)}},get destroyed(){return t.destroyed},busy(r){if(t[S]||t[y]||t[B]){return true}if(r){if(e[I]>0&&!r.idempotent){return true}if(e[I]>0&&(r.upgrade||r.method==="CONNECT")){return true}if(e[I]>0&&s.bodyLength(r.body)!==0&&(s.isStream(r.body)||s.isAsyncIterable(r.body)||s.isFormDataLike(r.body))){return true}}return false}}}function resumeH1(e){const t=e[P];if(t&&!t.destroyed){if(e[b]===0){if(!t[w]&&t.unref){t.unref();t[w]=true}}else if(t[w]&&t.ref){t.ref();t[w]=false}if(e[b]===0){if(t[E].timeoutType!==le){t[E].setTimeout(e[M],le)}}else if(e[I]>0&&t[E].statusCode<200){if(t[E].timeoutType!==Ae){const r=e[N][e[k]];const n=r.headersTimeout!=null?r.headersTimeout:e[O];t[E].setTimeout(n,Ae)}}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH1(e,t){const{method:o,path:A,host:l,upgrade:u,blocking:d,reset:p}=t;let{body:g,headers:h,contentLength:f}=t;const C=o==="PUT"||o==="POST"||o==="PATCH"||o==="QUERY"||o==="PROPFIND"||o==="PROPPATCH";if(s.isFormDataLike(g)){if(!Z){Z=r(4492).extractBody}const[e,n]=Z(g);if(t.contentType==null){h.push("content-type",n)}g=e.stream;f=e.length}else if(s.isBlobLike(g)&&t.contentType==null&&g.type){h.push("content-type",g.type)}if(g&&typeof g.read==="function"){g.read(0)}const E=s.bodyLength(g);f=E??f;if(f===null){f=t.contentLength}if(f===0&&!C){f=null}if(shouldSendContentLength(o)&&f>0&&t.contentLength!==null&&t.contentLength!==f){if(e[_]){s.errorRequest(e,t,new a);return false}process.emitWarning(new a)}const I=e[P];const abort=r=>{if(t.aborted||t.completed){return}s.errorRequest(e,t,r||new c);s.destroy(g);s.destroy(I,new m("aborted"))};try{t.onConnect(abort)}catch(r){s.errorRequest(e,t,r)}if(t.aborted){return false}if(o==="HEAD"){I[y]=true}if(u||o==="CONNECT"){I[y]=true}if(p!=null){I[y]=p}if(e[z]&&I[q]++>=e[z]){I[y]=true}if(d){I[B]=true}let Q=`${o} ${A} HTTP/1.1\r\n`;if(typeof l==="string"){Q+=`host: ${l}\r\n`}else{Q+=e[x]}if(u){Q+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(e[T]&&!I[y]){Q+="connection: keep-alive\r\n"}else{Q+="connection: close\r\n"}if(Array.isArray(h)){for(let e=0;e{t.removeListener("error",onFinished)}));if(!u){const e=new c;queueMicrotask((()=>onFinished(e)))}};const onFinished=function(e){if(u){return}u=true;n(o.destroyed||o[S]&&r[I]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){s.destroy(t,e)}else{s.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished);if(t.errorEmitted??t.errored){setImmediate((()=>onFinished(t.errored)))}else if(t.endEmitted??t.readableEnded){setImmediate((()=>onFinished(null)))}if(t.closeEmitted??t.closed){setImmediate(onClose)}}function writeBuffer(e,t,r,i,o,a,A,c){try{if(!t){if(a===0){o.write(`${A}content-length: 0\r\n\r\n`,"latin1")}else{n(a===null,"no body must not have content length");o.write(`${A}\r\n`,"latin1")}}else if(s.isBuffer(t)){n(a===t.byteLength,"buffer body must have content length");o.cork();o.write(`${A}content-length: ${a}\r\n\r\n`,"latin1");o.write(t);o.uncork();i.onBodySent(t);if(!c&&i.reset!==false){o[y]=true}}i.onRequestSent();r[Y]()}catch(t){e(t)}}async function writeBlob(e,t,r,s,i,o,A,c){n(o===t.size,"blob body must have content length");try{if(o!=null&&o!==t.size){throw new a}const e=Buffer.from(await t.arrayBuffer());i.cork();i.write(`${A}content-length: ${o}\r\n\r\n`,"latin1");i.write(e);i.uncork();s.onBodySent(e);s.onRequestSent();if(!c&&s.reset!==false){i[y]=true}r[Y]()}catch(t){e(t)}}async function writeIterable(e,t,r,s,i,o,a,A){n(o!==0||r[I]===0,"iterator body cannot be pipelined");let c=null;function onDrain(){if(c){const e=c;c=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(c===null);if(i[v]){t(i[v])}else{c=e}}));i.on("close",onDrain).on("drain",onDrain);const l=new AsyncWriter({abort:e,socket:i,request:s,contentLength:o,client:r,expectsPayload:A,header:a});try{for await(const e of t){if(i[v]){throw i[v]}if(!l.write(e)){await waitForDrain()}}l.end()}catch(e){l.destroy(e)}finally{i.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:e,socket:t,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=t;this.request=r;this.contentLength=n;this.client=s;this.bytesWritten=0;this.expectsPayload=i;this.header=o;this.abort=e;t[S]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:i,expectsPayload:o,header:A}=this;if(t[v]){throw t[v]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&i+c>n){if(s[_]){throw new a}process.emitWarning(new a)}t.cork();if(i===0){if(!o&&r.reset!==false){t[y]=true}if(n===null){t.write(`${A}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${A}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const l=t.write(e);t.uncork();r.onBodySent(e);if(!l){if(t[E].timeout&&t[E].timeoutType===Ae){if(t[E].timeout.refresh){t[E].timeout.refresh()}}}return l}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:i,request:o}=this;o.onRequestSent();e[S]=false;if(e[v]){throw e[v]}if(e.destroyed){return}if(n===0){if(s){e.write(`${i}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${i}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[_]){throw new a}else{process.emitWarning(new a)}}if(e[E].timeout&&e[E].timeoutType===Ae){if(e[E].timeout.refresh){e[E].timeout.refresh()}}r[Y]()}destroy(e){const{socket:t,client:r,abort:s}=this;t[S]=false;if(e){n(r[I]<=1,"pipeline should only contain this request");s(e)}}}e.exports=connectH1},8788:(e,t,r)=>{const n=r(4589);const{pipeline:s}=r(7075);const i=r(3440);const{RequestContentLengthMismatchError:o,RequestAbortedError:a,SocketError:A,InformationalError:c}=r(8707);const{kUrl:l,kReset:u,kClient:d,kRunning:m,kPending:p,kQueue:g,kPendingIdx:h,kRunningIdx:f,kError:y,kSocket:C,kStrictContentLength:E,kOnError:B,kMaxConcurrentStreams:I,kHTTP2Session:Q,kResume:b,kSize:S,kHTTPContext:N}=r(6443);const w=Symbol("open streams");let R;let x=false;let D;try{D=r(2467)}catch{D={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:k,HTTP2_HEADER_METHOD:v,HTTP2_HEADER_PATH:T,HTTP2_HEADER_SCHEME:P,HTTP2_HEADER_CONTENT_LENGTH:M,HTTP2_HEADER_EXPECT:L,HTTP2_HEADER_STATUS:F}}=D;function parseH2Headers(e){const t=[];for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.push(Buffer.from(r),Buffer.from(e))}}else{t.push(Buffer.from(r),Buffer.from(n))}}return t}async function connectH2(e,t){e[C]=t;if(!x){x=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const r=D.connect(e[l],{createConnection:()=>t,peerMaxConcurrentStreams:e[I]});r[w]=0;r[d]=e;r[C]=t;i.addListener(r,"error",onHttp2SessionError);i.addListener(r,"frameError",onHttp2FrameError);i.addListener(r,"end",onHttp2SessionEnd);i.addListener(r,"goaway",onHTTP2GoAway);i.addListener(r,"close",(function(){const{[d]:e}=this;const{[C]:t}=e;const r=this[C][y]||this[y]||new A("closed",i.getSocketInfo(t));e[Q]=null;if(e.destroyed){n(e[p]===0);const t=e[g].splice(e[f]);for(let n=0;n{s=true}));return{version:"h2",defaultPipelining:Infinity,write(...t){return writeH2(e,...t)},resume(){resumeH2(e)},destroy(e,r){if(s){queueMicrotask(r)}else{t.destroy(e).on("close",r)}},get destroyed(){return t.destroyed},busy(){return false}}}function resumeH2(e){const t=e[C];if(t?.destroyed===false){if(e[S]===0&&e[I]===0){t.unref();e[Q].unref()}else{t.ref();e[Q].ref()}}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[C][y]=e;this[d][B](e)}function onHttp2FrameError(e,t,r){if(r===0){const r=new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[C][y]=r;this[d][B](r)}}function onHttp2SessionEnd(){const e=new A("other side closed",i.getSocketInfo(this[C]));this.destroy(e);i.destroy(this[C],e)}function onHTTP2GoAway(e){const t=this[y]||new A(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this));const r=this[d];r[C]=null;r[N]=null;if(this[Q]!=null){this[Q].destroy(t);this[Q]=null}i.destroy(this[C],t);if(r[f]{if(t.aborted||t.completed){return}r=r||new a;i.errorRequest(e,t,r);if(N!=null){i.destroy(N,r)}i.destroy(I,r);e[g][e[f]++]=null;e[b]()};try{t.onConnect(abort)}catch(r){i.errorRequest(e,t,r)}if(t.aborted){return false}if(A==="CONNECT"){s.ref();N=s.request(S,{endStream:false,signal:y});if(N.id&&!N.pending){t.onUpgrade(null,null,N);++s[w];e[g][e[f]++]=null}else{N.once("ready",(()=>{t.onUpgrade(null,null,N);++s[w];e[g][e[f]++]=null}))}N.once("close",(()=>{s[w]-=1;if(s[w]===0)s.unref()}));return true}S[T]=u;S[P]="https";const U=A==="PUT"||A==="POST"||A==="PATCH";if(I&&typeof I.read==="function"){I.read(0)}let O=i.bodyLength(I);if(i.isFormDataLike(I)){R??=r(4492).extractBody;const[e,t]=R(I);S["content-type"]=t;I=e.stream;O=e.length}if(O==null){O=t.contentLength}if(O===0||!U){O=null}if(shouldSendContentLength(A)&&O>0&&t.contentLength!=null&&t.contentLength!==O){if(e[E]){i.errorRequest(e,t,new o);return false}process.emitWarning(new o)}if(O!=null){n(I,"no body must not have content length");S[M]=`${O}`}s.ref();const H=A==="GET"||A==="HEAD"||I===null;if(p){S[L]="100-continue";N=s.request(S,{endStream:H,signal:y});N.once("continue",writeBodyH2)}else{N=s.request(S,{endStream:H,signal:y});writeBodyH2()}++s[w];N.once("response",(r=>{const{[F]:n,...s}=r;t.onResponseStarted();if(t.aborted){const r=new a;i.errorRequest(e,t,r);i.destroy(N,r);return}if(t.onHeaders(Number(n),parseH2Headers(s),N.resume.bind(N),"")===false){N.pause()}N.on("data",(e=>{if(t.onData(e)===false){N.pause()}}))}));N.once("end",(()=>{if(N.state?.state==null||N.state.state<6){t.onComplete([])}if(s[w]===0){s.unref()}abort(new c("HTTP/2: stream half-closed (remote)"));e[g][e[f]++]=null;e[h]=e[f];e[b]()}));N.once("close",(()=>{s[w]-=1;if(s[w]===0){s.unref()}}));N.once("error",(function(e){abort(e)}));N.once("frameError",((e,t)=>{abort(new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}));return true;function writeBodyH2(){if(!I||O===0){writeBuffer(abort,N,null,e,t,e[C],O,U)}else if(i.isBuffer(I)){writeBuffer(abort,N,I,e,t,e[C],O,U)}else if(i.isBlobLike(I)){if(typeof I.stream==="function"){writeIterable(abort,N,I.stream(),e,t,e[C],O,U)}else{writeBlob(abort,N,I,e,t,e[C],O,U)}}else if(i.isStream(I)){writeStream(abort,e[C],U,N,I,e,t,O)}else if(i.isIterable(I)){writeIterable(abort,N,I,e,t,e[C],O,U)}else{n(false)}}}function writeBuffer(e,t,r,s,o,a,A,c){try{if(r!=null&&i.isBuffer(r)){n(A===r.byteLength,"buffer body must have content length");t.cork();t.write(r);t.uncork();t.end();o.onBodySent(r)}if(!c){a[u]=true}o.onRequestSent();s[b]()}catch(t){e(t)}}function writeStream(e,t,r,o,a,A,c,l){n(l!==0||A[m]===0,"stream body cannot be pipelined");const d=s(a,o,(n=>{if(n){i.destroy(d,n);e(n)}else{i.removeAllListeners(d);c.onRequestSent();if(!r){t[u]=true}A[b]()}}));i.addListener(d,"data",onPipeData);function onPipeData(e){c.onBodySent(e)}}async function writeBlob(e,t,r,s,i,a,A,c){n(A===r.size,"blob body must have content length");try{if(A!=null&&A!==r.size){throw new o}const e=Buffer.from(await r.arrayBuffer());t.cork();t.write(e);t.uncork();t.end();i.onBodySent(e);i.onRequestSent();if(!c){a[u]=true}s[b]()}catch(t){e(t)}}async function writeIterable(e,t,r,s,i,o,a,A){n(a!==0||s[m]===0,"iterator body cannot be pipelined");let c=null;function onDrain(){if(c){const e=c;c=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(c===null);if(o[y]){t(o[y])}else{c=e}}));t.on("close",onDrain).on("drain",onDrain);try{for await(const e of r){if(o[y]){throw o[y]}const r=t.write(e);i.onBodySent(e);if(!r){await waitForDrain()}}t.end();i.onRequestSent();if(!A){o[u]=true}s[b]()}catch(t){e(t)}finally{t.off("close",onDrain).off("drain",onDrain)}}e.exports=connectH2},3701:(e,t,r)=>{const n=r(4589);const s=r(7030);const i=r(7067);const o=r(3440);const{channels:a}=r(2414);const A=r(4655);const c=r(1841);const{InvalidArgumentError:l,InformationalError:u,ClientDestroyedError:d}=r(8707);const m=r(9136);const{kUrl:p,kServerName:g,kClient:h,kBusy:f,kConnect:y,kResuming:C,kRunning:E,kPending:B,kSize:I,kQueue:Q,kConnected:b,kConnecting:S,kNeedDrain:N,kKeepAliveDefaultTimeout:w,kHostHeader:R,kPendingIdx:x,kRunningIdx:D,kError:k,kPipelining:v,kKeepAliveTimeoutValue:T,kMaxHeadersSize:P,kKeepAliveMaxTimeout:M,kKeepAliveTimeoutThreshold:L,kHeadersTimeout:F,kBodyTimeout:U,kStrictContentLength:O,kConnector:H,kMaxRedirections:_,kMaxRequests:z,kCounter:q,kClose:G,kDestroy:V,kDispatch:Y,kInterceptors:J,kLocalAddress:W,kMaxResponseSize:j,kOnError:$,kHTTPContext:K,kMaxConcurrentStreams:X,kResume:Z}=r(6443);const ee=r(637);const te=r(8788);let re=false;const ne=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(e){return e[v]??e[K]?.defaultPipelining??1}class Client extends c{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:a,requestTimeout:A,connectTimeout:c,bodyTimeout:u,idleTimeout:d,keepAlive:h,keepAliveTimeout:f,maxKeepAliveTimeout:y,keepAliveMaxTimeout:E,keepAliveTimeoutThreshold:B,socketPath:I,pipelining:b,tls:S,strictContentLength:k,maxCachedSessions:q,maxRedirections:G,connect:V,maxRequestsPerClient:Y,localAddress:ee,maxResponseSize:te,autoSelectFamily:ie,autoSelectFamilyAttemptTimeout:oe,maxConcurrentStreams:ae,allowH2:Ae}={}){super();if(h!==undefined){throw new l("unsupported keepAlive, use pipelining=0 instead")}if(a!==undefined){throw new l("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(A!==undefined){throw new l("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(d!==undefined){throw new l("unsupported idleTimeout, use keepAliveTimeout instead")}if(y!==undefined){throw new l("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new l("invalid maxHeaderSize")}if(I!=null&&typeof I!=="string"){throw new l("invalid socketPath")}if(c!=null&&(!Number.isFinite(c)||c<0)){throw new l("invalid connectTimeout")}if(f!=null&&(!Number.isFinite(f)||f<=0)){throw new l("invalid keepAliveTimeout")}if(E!=null&&(!Number.isFinite(E)||E<=0)){throw new l("invalid keepAliveMaxTimeout")}if(B!=null&&!Number.isFinite(B)){throw new l("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new l("headersTimeout must be a positive integer or zero")}if(u!=null&&(!Number.isInteger(u)||u<0)){throw new l("bodyTimeout must be a positive integer or zero")}if(V!=null&&typeof V!=="function"&&typeof V!=="object"){throw new l("connect must be a function or an object")}if(G!=null&&(!Number.isInteger(G)||G<0)){throw new l("maxRedirections must be a positive number")}if(Y!=null&&(!Number.isInteger(Y)||Y<0)){throw new l("maxRequestsPerClient must be a positive number")}if(ee!=null&&(typeof ee!=="string"||s.isIP(ee)===0)){throw new l("localAddress must be valid string IP address")}if(te!=null&&(!Number.isInteger(te)||te<-1)){throw new l("maxResponseSize must be a positive number")}if(oe!=null&&(!Number.isInteger(oe)||oe<-1)){throw new l("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ae!=null&&typeof Ae!=="boolean"){throw new l("allowH2 must be a valid boolean value")}if(ae!=null&&(typeof ae!=="number"||ae<1)){throw new l("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof V!=="function"){V=m({...S,maxCachedSessions:q,allowH2:Ae,socketPath:I,timeout:c,...ie?{autoSelectFamily:ie,autoSelectFamilyAttemptTimeout:oe}:undefined,...V})}if(t?.Client&&Array.isArray(t.Client)){this[J]=t.Client;if(!re){re=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[J]=[se({maxRedirections:G})]}this[p]=o.parseOrigin(e);this[H]=V;this[v]=b!=null?b:1;this[P]=r||i.maxHeaderSize;this[w]=f==null?4e3:f;this[M]=E==null?6e5:E;this[L]=B==null?2e3:B;this[T]=this[w];this[g]=null;this[W]=ee!=null?ee:null;this[C]=0;this[N]=0;this[R]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:""}\r\n`;this[U]=u!=null?u:3e5;this[F]=n!=null?n:3e5;this[O]=k==null?true:k;this[_]=G;this[z]=Y;this[ne]=null;this[j]=te>-1?te:-1;this[X]=ae!=null?ae:100;this[K]=null;this[Q]=[];this[D]=0;this[x]=0;this[Z]=e=>resume(this,e);this[$]=e=>onError(this,e)}get pipelining(){return this[v]}set pipelining(e){this[v]=e;this[Z](true)}get[B](){return this[Q].length-this[x]}get[E](){return this[x]-this[D]}get[I](){return this[Q].length-this[D]}get[b](){return!!this[K]&&!this[S]&&!this[K].destroyed}get[f](){return Boolean(this[K]?.busy(null)||this[I]>=(getPipelining(this)||1)||this[B]>0)}[y](e){connect(this);this.once("connect",e)}[Y](e,t){const r=e.origin||this[p].origin;const n=new A(r,e,t);this[Q].push(n);if(this[C]){}else if(o.bodyLength(n.body)==null&&o.isIterable(n.body)){this[C]=1;queueMicrotask((()=>resume(this)))}else{this[Z](true)}if(this[C]&&this[N]!==2&&this[f]){this[N]=2}return this[N]<2}async[G](){return new Promise((e=>{if(this[I]){this[ne]=e}else{e(null)}}))}async[V](e){return new Promise((t=>{const r=this[Q].splice(this[x]);for(let t=0;t{if(this[ne]){this[ne]();this[ne]=null}t(null)};if(this[K]){this[K].destroy(e,callback);this[K]=null}else{queueMicrotask(callback)}this[Z]()}))}}const se=r(5092);function onError(e,t){if(e[E]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[x]===e[D]);const r=e[Q].splice(e[D]);for(let n=0;n{e[H]({host:t,hostname:r,protocol:i,port:A,servername:e[g],localAddress:e[W]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){o.destroy(s.on("error",noop),new d);return}n(s);try{e[K]=s.alpnProtocol==="h2"?await te(e,s):await ee(e,s)}catch(e){s.destroy().on("error",noop);throw e}e[S]=false;s[q]=0;s[z]=e[z];s[h]=e;s[k]=null;if(a.connected.hasSubscribers){a.connected.publish({connectParams:{host:t,hostname:r,protocol:i,port:A,version:e[K]?.version,servername:e[g],localAddress:e[W]},connector:e[H],socket:s})}e.emit("connect",e[p],[e])}catch(s){if(e.destroyed){return}e[S]=false;if(a.connectError.hasSubscribers){a.connectError.publish({connectParams:{host:t,hostname:r,protocol:i,port:A,version:e[K]?.version,servername:e[g],localAddress:e[W]},connector:e[H],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[E]===0);while(e[B]>0&&e[Q][e[x]].servername===e[g]){const t=e[Q][e[x]++];o.errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[p],[e],s)}e[Z]()}function emitDrain(e){e[N]=0;e.emit("drain",e[p],[e])}function resume(e,t){if(e[C]===2){return}e[C]=2;_resume(e,t);e[C]=0;if(e[D]>256){e[Q].splice(0,e[D]);e[x]-=e[D];e[D]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[B]===0);return}if(e[ne]&&!e[I]){e[ne]();e[ne]=null;return}if(e[K]){e[K].resume()}if(e[f]){e[N]=2}else if(e[N]===2){if(t){e[N]=1;queueMicrotask((()=>emitDrain(e)))}else{emitDrain(e)}continue}if(e[B]===0){return}if(e[E]>=(getPipelining(e)||1)){return}const r=e[Q][e[x]];if(e[p].protocol==="https:"&&e[g]!==r.servername){if(e[E]>0){return}e[g]=r.servername;e[K]?.destroy(new u("servername changed"),(()=>{e[K]=null;resume(e)}))}if(e[S]){return}if(!e[K]){connect(e);return}if(e[K].destroyed){return}if(e[K].busy(r)){return}if(!r.aborted&&e[K].write(r)){e[x]++}else{e[Q].splice(e[x],1)}}}e.exports=Client},1841:(e,t,r)=>{const n=r(883);const{ClientDestroyedError:s,ClientClosedError:i,InvalidArgumentError:o}=r(8707);const{kDestroy:a,kClose:A,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=r(6443);const m=Symbol("onDestroyed");const p=Symbol("onClosed");const g=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[m]=null;this[c]=false;this[p]=[]}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[d][t];if(typeof e!=="function"){throw new o("interceptor must be an function")}}}this[d]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new o("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[c]){if(this[p]){this[p].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[c]=true;this[p].push(e);const onClosed=()=>{const e=this[p];this[p]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new o("invalid callback")}if(this[l]){if(this[m]){this[m].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[m]=this[m]||[];this[m].push(t);const onDestroyed=()=>{const e=this[m];this[m]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[g](e,t){if(!this[d]||this[d].length===0){this[g]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--){r=this[d][e](r)}this[g]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new o("handler must be an object")}try{if(!e||typeof e!=="object"){throw new o("opts must be an object.")}if(this[l]||this[m]){throw new s}if(this[c]){throw new i}return this[g](e,t)}catch(e){if(typeof t.onError!=="function"){throw new o("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},883:(e,t,r)=>{const n=r(8474);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const t=Array.isArray(e[0])?e[0]:e;let r=this.dispatch.bind(this);for(const e of t){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}r=e(r);if(r==null||typeof r!=="function"||r.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,r)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(e,t){super();this.#e=e;this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}}e.exports=Dispatcher},3137:(e,t,r)=>{const n=r(1841);const{kClose:s,kDestroy:i,kClosed:o,kDestroyed:a,kDispatch:A,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=r(6443);const d=r(6672);const m=r(7405);const p={"http:":80,"https:":443};let g=false;class EnvHttpProxyAgent extends n{#r=null;#n=null;#s=null;constructor(e={}){super();this.#s=e;if(!g){g=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:t,httpsProxy:r,noProxy:n,...s}=e;this[c]=new m(s);const i=t??process.env.http_proxy??process.env.HTTP_PROXY;if(i){this[l]=new d({...s,uri:i})}else{this[l]=this[c]}const o=r??process.env.https_proxy??process.env.HTTPS_PROXY;if(o){this[u]=new d({...s,uri:o})}else{this[u]=this[l]}this.#i()}[A](e,t){const r=new URL(e.origin);const n=this.#o(r);return n.dispatch(e,t)}async[s](){await this[c].close();if(!this[l][o]){await this[l].close()}if(!this[u][o]){await this[u].close()}}async[i](e){await this[c].destroy(e);if(!this[l][a]){await this[l].destroy(e)}if(!this[u][a]){await this[u].destroy(e)}}#o(e){let{protocol:t,host:r,port:n}=e;r=r.replace(/:\d*$/,"").toLowerCase();n=Number.parseInt(n,10)||p[t]||0;if(!this.#a(r,n)){return this[c]}if(t==="https:"){return this[u]}return this[l]}#a(e,t){if(this.#A){this.#i()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let r=0;r{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},2128:(e,t,r)=>{const n=r(1841);const s=r(4660);const{kConnected:i,kSize:o,kRunning:a,kPending:A,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:m,kDestroy:p,kDispatch:g}=r(6443);const h=r(3246);const f=Symbol("clients");const y=Symbol("needDrain");const C=Symbol("queue");const E=Symbol("closed resolve");const B=Symbol("onDrain");const I=Symbol("onConnect");const Q=Symbol("onDisconnect");const b=Symbol("onConnectionError");const S=Symbol("get dispatcher");const N=Symbol("add client");const w=Symbol("remove client");const R=Symbol("stats");class PoolBase extends n{constructor(){super();this[C]=new s;this[f]=[];this[c]=0;const e=this;this[B]=function onDrain(t,r){const n=e[C];let s=false;while(!s){const t=n.shift();if(!t){break}e[c]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[E]&&n.isEmpty()){Promise.all(e[f].map((e=>e.close()))).then(e[E])}};this[I]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[b]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[R]=new h(this)}get[l](){return this[y]}get[i](){return this[f].filter((e=>e[i])).length}get[u](){return this[f].filter((e=>e[i]&&!e[y])).length}get[A](){let e=this[c];for(const{[A]:t}of this[f]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[f]){e+=t}return e}get[o](){let e=this[c];for(const{[o]:t}of this[f]){e+=t}return e}get stats(){return this[R]}async[m](){if(this[C].isEmpty()){await Promise.all(this[f].map((e=>e.close())))}else{await new Promise((e=>{this[E]=e}))}}async[p](e){while(true){const t=this[C].shift();if(!t){break}t.handler.onError(e)}await Promise.all(this[f].map((t=>t.destroy(e))))}[g](e,t){const r=this[S]();if(!r){this[y]=true;this[C].push({opts:e,handler:t});this[c]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[S]()}return!this[y]}[N](e){e.on("drain",this[B]).on("connect",this[I]).on("disconnect",this[Q]).on("connectionError",this[b]);this[f].push(e);if(this[y]){queueMicrotask((()=>{if(this[y]){this[B](e[d],[this,e])}}))}return this}[w](e){e.close((()=>{const t=this[f].indexOf(e);if(t!==-1){this[f].splice(t,1)}}));this[y]=this[f].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:f,kNeedDrain:y,kAddClient:N,kRemoveClient:w,kGetDispatcher:S}},3246:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:i,kQueued:o,kRunning:a,kSize:A}=r(6443);const c=Symbol("pool");class PoolStats{constructor(e){this[c]=e}get connected(){return this[c][s]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][o]}get running(){return this[c][a]}get size(){return this[c][A]}}e.exports=PoolStats},628:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:i,kAddClient:o,kGetDispatcher:a}=r(2128);const A=r(3701);const{InvalidArgumentError:c}=r(8707);const l=r(3440);const{kUrl:u,kInterceptors:d}=r(6443);const m=r(9136);const p=Symbol("options");const g=Symbol("connections");const h=Symbol("factory");function defaultFactory(e,t){return new A(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:f,autoSelectFamilyAttemptTimeout:y,allowH2:C,...E}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new c("invalid connections")}if(typeof r!=="function"){throw new c("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new c("connect must be a function or an object")}if(typeof n!=="function"){n=m({...o,maxCachedSessions:a,allowH2:C,socketPath:A,timeout:i,...f?{autoSelectFamily:f,autoSelectFamilyAttemptTimeout:y}:undefined,...n})}this[d]=E.interceptors?.Pool&&Array.isArray(E.interceptors.Pool)?E.interceptors.Pool:[];this[g]=t||null;this[u]=l.parseOrigin(e);this[p]={...l.deepClone(E),connect:n,allowH2:C};this[p].interceptors=E.interceptors?{...E.interceptors}:undefined;this[h]=r;this.on("connectionError",((e,t,r)=>{for(const e of t){const t=this[s].indexOf(e);if(t!==-1){this[s].splice(t,1)}}}))}[a](){for(const e of this[s]){if(!e[i]){return e}}if(!this[g]||this[s].length{const{kProxy:n,kClose:s,kDestroy:i,kDispatch:o,kInterceptors:a}=r(6443);const{URL:A}=r(3136);const c=r(7405);const l=r(628);const u=r(1841);const{InvalidArgumentError:d,RequestAbortedError:m,SecureProxyConnectionError:p}=r(8707);const g=r(9136);const h=r(3701);const f=Symbol("proxy agent");const y=Symbol("proxy client");const C=Symbol("proxy headers");const E=Symbol("request tls settings");const B=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");const Q=Symbol("tunnel proxy");function defaultProtocolPort(e){return e==="https:"?443:80}function defaultFactory(e,t){return new l(e,t)}const noop=()=>{};function defaultAgentFactory(e,t){if(t.connections===1){return new h(e,t)}return new l(e,t)}class Http1ProxyWrapper extends u{#l;constructor(e,{headers:t={},connect:r,factory:n}){super();if(!e){throw new d("Proxy URL is mandatory")}this[C]=t;if(n){this.#l=n(e,{connect:r})}else{this.#l=new h(e,{connect:r})}}[o](e,t){const r=t.onHeaders;t.onHeaders=function(e,n,s){if(e===407){if(typeof t.onError==="function"){t.onError(new d("Proxy Authentication Required (407)"))}return}if(r)r.call(this,e,n,s)};const{origin:n,path:s="/",headers:i={}}=e;e.path=n+s;if(!("host"in i)&&!("Host"in i)){const{host:e}=new A(n);i.host=e}e.headers={...this[C],...i};return this.#l[o](e,t)}async[s](){return this.#l.close()}async[i](e){return this.#l.destroy(e)}}class ProxyAgent extends u{constructor(e){super();if(!e||typeof e==="object"&&!(e instanceof A)&&!e.uri){throw new d("Proxy uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new d("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:r=true}=e;const s=this.#u(e);const{href:i,origin:o,port:l,protocol:u,username:h,password:b,hostname:S}=s;this[n]={uri:i,protocol:u};this[a]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];this[E]=e.requestTls;this[B]=e.proxyTls;this[C]=e.headers||{};this[Q]=r;if(e.auth&&e.token){throw new d("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[C]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[C]["proxy-authorization"]=e.token}else if(h&&b){this[C]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(h)}:${decodeURIComponent(b)}`).toString("base64")}`}const N=g({...e.proxyTls});this[I]=g({...e.requestTls});const w=e.factory||defaultAgentFactory;const factory=(e,t)=>{const{protocol:r}=new A(e);if(!this[Q]&&r==="http:"&&this[n].protocol==="http:"){return new Http1ProxyWrapper(this[n].uri,{headers:this[C],connect:N,factory:w})}return w(e,t)};this[y]=t(s,{connect:N});this[f]=new c({...e,factory:factory,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:s}=await this[y].connect({origin:o,port:l,path:r,signal:e.signal,headers:{...this[C],host:e.host},servername:this[B]?.servername||S});if(s!==200){n.on("error",noop).destroy();t(new m(`Proxy response (${s}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let i;if(this[E]){i=this[E].servername}else{i=e.servername}this[I]({...e,servername:i,httpSocket:n},t)}catch(e){if(e.code==="ERR_TLS_CERT_ALTNAME_INVALID"){t(new p(e))}else{t(e)}}}})}dispatch(e,t){const r=buildHeaders(e.headers);throwIfProxyAuthIsSent(r);if(r&&!("host"in r)&&!("Host"in r)){const{host:t}=new A(e.origin);r.host=t}return this[f].dispatch({...e,headers:r},t)}#u(e){if(typeof e==="string"){return new A(e)}else if(e instanceof A){return e}else{return new A(e.uri)}}async[s](){await this[f].close();await this[y].close()}async[i](){await this[f].destroy();await this[y].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new d("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},50:(e,t,r)=>{const n=r(883);const s=r(7816);class RetryAgent extends n{#d=null;#m=null;constructor(e,t={}){super(t);this.#d=e;this.#m=t}dispatch(e,t){const r=new s({...e,retryOptions:this.#m},{dispatch:this.#d.dispatch.bind(this.#d),handler:t});return this.#d.dispatch(e,r)}close(){return this.#d.close()}destroy(){return this.#d.destroy()}}e.exports=RetryAgent},2581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(8707);const i=r(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new i)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:e=>{e.exports=class DecoratorHandler{#p;constructor(e){if(typeof e!=="object"||e===null){throw new TypeError("handler must be an object")}this.#p=e}onConnect(...e){return this.#p.onConnect?.(...e)}onError(...e){return this.#p.onError?.(...e)}onUpgrade(...e){return this.#p.onUpgrade?.(...e)}onResponseStarted(...e){return this.#p.onResponseStarted?.(...e)}onHeaders(...e){return this.#p.onHeaders?.(...e)}onData(...e){return this.#p.onData?.(...e)}onComplete(...e){return this.#p.onComplete?.(...e)}onBodySent(...e){return this.#p.onBodySent?.(...e)}}},8754:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(6443);const i=r(4589);const{InvalidArgumentError:o}=r(8707);const a=r(8474);const A=[300,301,302,303,307,308];const c=Symbol("body");class BodyAsyncIterable{constructor(e){this[c]=e;this[s]=false}async*[Symbol.asyncIterator](){i(!this[s],"disturbed");this[s]=true;yield*this[c]}}class RedirectHandler{constructor(e,t,r,A){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new o("maxRedirections must be a positive number")}n.validateHandler(A,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=A;this.history=[];this.redirectionLimitReached=false;if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){i(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:i,pathname:o,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const A=a?`${o}${a}`:o;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==i);this.opts.path=A;this.opts.origin=i;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(A.indexOf(e)===-1){return null}for(let e=0;e{const n=r(4589);const{kRetryHandlerDefaultRetry:s}=r(6443);const{RequestRetryError:i}=r(8707);const{isDisturbed:o,parseHeaders:a,parseRangeHeader:A,wrapRequestBody:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();return new Date(e).getTime()-t}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:l,methods:u,errorCodes:d,retryAfter:m,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts={...n,body:c(e.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:i??RetryHandler[s],retryAfter:m??true,maxTimeout:a??30*1e3,minTimeout:A??500,timeoutFactor:l??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:d??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:i,headers:o}=e;const{method:a,retryOptions:A}=r;const{maxRetries:c,minTimeout:l,maxTimeout:u,timeoutFactor:d,statusCodes:m,errorCodes:p,methods:g}=A;const{counter:h}=t;if(i&&i!=="UND_ERR_REQ_RETRY"&&!p.includes(i)){n(e);return}if(Array.isArray(g)&&!g.includes(a)){n(e);return}if(s!=null&&Array.isArray(m)&&!m.includes(s)){n(e);return}if(h>c){n(e);return}let f=o?.["retry-after"];if(f){f=Number(f);f=Number.isNaN(f)?calculateRetryAfterHeader(f):f*1e3}const y=f>0?Math.min(f,u):Math.min(l*d**(h-1),u);setTimeout((()=>n(null)),y)}onHeaders(e,t,r,s){const o=a(t);this.retryCount+=1;if(e>=300){if(this.retryOpts.statusCodes.includes(e)===false){return this.handler.onHeaders(e,t,r,s)}else{this.abort(new i("Request failed",e,{headers:o,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(e!==206&&(this.start>0||e!==200)){this.abort(new i("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}}));return false}const t=A(o["content-range"]);if(!t){this.abort(new i("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==o.etag){this.abort(new i("ETag mismatch",e,{headers:o,data:{count:this.retryCount}}));return false}const{start:s,size:a,end:c=a-1}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===c,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const i=A(o["content-range"]);if(i==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:c,end:l=c-1}=i;n(a!=null&&Number.isFinite(a),"content-range mismatch");n(l!=null&&Number.isFinite(l),"invalid content-length");this.start=a;this.end=l}if(this.end==null){const e=o["content-length"];this.end=e!=null?Number(e)-1:null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=o.etag!=null?o.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(e,t,r,s)}const c=new i("Request failed",e,{headers:o,data:{count:this.retryCount}});this.abort(c);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||o(this.opts.body)){return this.handler.onError(e)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||o(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){const e={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){e["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},379:(e,t,r)=>{const{isIP:n}=r(7030);const{lookup:s}=r(610);const i=r(8155);const{InvalidArgumentError:o,InformationalError:a}=r(8707);const A=Math.pow(2,31)-1;class DNSInstance{#g=0;#h=0;#f=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(e){this.#g=e.maxTTL;this.#h=e.maxItems;this.dualStack=e.dualStack;this.affinity=e.affinity;this.lookup=e.lookup??this.#y;this.pick=e.pick??this.#C}get full(){return this.#f.size===this.#h}runLookup(e,t,r){const n=this.#f.get(e.hostname);if(n==null&&this.full){r(null,e.origin);return}const s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#g,maxItems:this.#h};if(n==null){this.lookup(e,s,((t,n)=>{if(t||n==null||n.length===0){r(t??new a("No DNS entries found"));return}this.setRecords(e,n);const i=this.#f.get(e.hostname);const o=this.pick(e,i,s.affinity);let A;if(typeof o.port==="number"){A=`:${o.port}`}else if(e.port!==""){A=`:${e.port}`}else{A=""}r(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${A}`)}))}else{const i=this.pick(e,n,s.affinity);if(i==null){this.#f.delete(e.hostname);this.runLookup(e,t,r);return}let o;if(typeof i.port==="number"){o=`:${i.port}`}else if(e.port!==""){o=`:${e.port}`}else{o=""}r(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#y(e,t,r){s(e.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((e,t)=>{if(e){return r(e)}const n=new Map;for(const e of t){n.set(`${e.address}:${e.family}`,e)}r(null,n.values())}))}#C(e,t,r){let n=null;const{records:s,offset:i}=t;let o;if(this.dualStack){if(r==null){if(i==null||i===A){t.offset=0;r=4}else{t.offset++;r=(t.offset&1)===1?6:4}}if(s[r]!=null&&s[r].ips.length>0){o=s[r]}else{o=s[r===4?6:4]}}else{o=s[r]}if(o==null||o.ips.length===0){return n}if(o.offset==null||o.offset===A){o.offset=0}else{o.offset++}const a=o.offset%o.ips.length;n=o.ips[a]??null;if(n==null){return n}if(Date.now()-n.timestamp>n.ttl){o.ips.splice(a,1);return this.pick(e,t,r)}return n}setRecords(e,t){const r=Date.now();const n={records:{4:null,6:null}};for(const e of t){e.timestamp=r;if(typeof e.ttl==="number"){e.ttl=Math.min(e.ttl,this.#g)}else{e.ttl=this.#g}const t=n.records[e.family]??{ips:[]};t.ips.push(e);n.records[e.family]=t}this.#f.set(e.hostname,n)}getHandler(e,t){return new DNSDispatchHandler(this,e,t)}}class DNSDispatchHandler extends i{#E=null;#s=null;#t=null;#p=null;#B=null;constructor(e,{origin:t,handler:r,dispatch:n},s){super(r);this.#B=t;this.#p=r;this.#s={...s};this.#E=e;this.#t=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#E.dualStack){this.#E.runLookup(this.#B,this.#s,((e,t)=>{if(e){return this.#p.onError(e)}const r={...this.#s,origin:t};this.#t(r,this)}));return}this.#p.onError(e);return}case"ENOTFOUND":this.#E.deleteRecord(this.#B);default:this.#p.onError(e);break}}}e.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0)){throw new o("Invalid maxTTL. Must be a positive number")}if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1)){throw new o("Invalid maxItems. Must be a positive number and greater than zero")}if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6){throw new o("Invalid affinity. Must be either 4 or 6")}if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean"){throw new o("Invalid dualStack. Must be a boolean")}if(e?.lookup!=null&&typeof e?.lookup!=="function"){throw new o("Invalid lookup. Must be a function")}if(e?.pick!=null&&typeof e?.pick!=="function"){throw new o("Invalid pick. Must be a function")}const t=e?.dualStack??true;let r;if(t){r=e?.affinity??null}else{r=e?.affinity??4}const s={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??Infinity};const i=new DNSInstance(s);return e=>function dnsInterceptor(t,r){const s=t.origin.constructor===URL?t.origin:new URL(t.origin);if(n(s.hostname)!==0){return e(t,r)}i.runLookup(s,t,((n,o)=>{if(n){return r.onError(n)}let a=null;a={...t,servername:s.hostname,origin:o,headers:{host:s.hostname,...t.headers}};e(a,i.getHandler({origin:s,dispatch:e,handler:r},t))}));return true}}},8060:(e,t,r)=>{const n=r(3440);const{InvalidArgumentError:s,RequestAbortedError:i}=r(8707);const o=r(8155);class DumpHandler extends o{#I=1024*1024;#Q=null;#b=false;#S=false;#N=0;#w=null;#p=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1)){throw new s("maxSize must be a number greater than 0")}this.#I=e??this.#I;this.#p=t}onConnect(e){this.#Q=e;this.#p.onConnect(this.#R.bind(this))}#R(e){this.#S=true;this.#w=e}onHeaders(e,t,r,s){const o=n.parseHeaders(t);const a=o["content-length"];if(a!=null&&a>this.#I){throw new i(`Response size (${a}) larger than maxSize (${this.#I})`)}if(this.#S){return true}return this.#p.onHeaders(e,t,r,s)}onError(e){if(this.#b){return}e=this.#w??e;this.#p.onError(e)}onData(e){this.#N=this.#N+e.length;if(this.#N>=this.#I){this.#b=true;if(this.#S){this.#p.onError(this.#w)}else{this.#p.onComplete([])}}return true}onComplete(e){if(this.#b){return}if(this.#S){this.#p.onError(this.reason);return}this.#p.onComplete(e)}}function createDumpInterceptor({maxSize:e}={maxSize:1024*1024}){return t=>function Intercept(r,n){const{dumpMaxSize:s=e}=r;const i=new DumpHandler({maxSize:s},n);return t(r,i)}}e.exports=createDumpInterceptor},5092:(e,t,r)=>{const n=r(8754);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:i=e}=r;if(!i){return t(r,s)}const o=new n(t,i,r,s);r={...r,maxRedirections:0};return t(r,o)}}e.exports=createRedirectInterceptor},1514:(e,t,r)=>{const n=r(8754);e.exports=e=>{const t=e?.maxRedirections;return e=>function redirectInterceptor(r,s){const{maxRedirections:i=t,...o}=r;if(!i){return e(r,s)}const a=new n(e,i,r,s);return e(o,a)}}},2026:(e,t,r)=>{const n=r(7816);e.exports=e=>t=>function retryInterceptor(r,s){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:t}))}},2824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var i;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(i=t.TYPE||(t.TYPE={}));var o;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(o=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var A;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(A=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[A.DELETE,A.GET,A.HEAD,A.POST,A.PUT,A.CONNECT,A.OPTIONS,A.TRACE,A.COPY,A.LOCK,A.MKCOL,A.MOVE,A.PROPFIND,A.PROPPATCH,A.SEARCH,A.UNLOCK,A.BIND,A.REBIND,A.UNBIND,A.ACL,A.REPORT,A.MKACTIVITY,A.CHECKOUT,A.MERGE,A["M-SEARCH"],A.NOTIFY,A.SUBSCRIBE,A.UNSUBSCRIBE,A.PATCH,A.PURGE,A.MKCALENDAR,A.LINK,A.UNLINK,A.PRI,A.SOURCE];t.METHODS_ICE=[A.SOURCE];t.METHODS_RTSP=[A.OPTIONS,A.DESCRIBE,A.ANNOUNCE,A.SETUP,A.PLAY,A.PAUSE,A.TEARDOWN,A.GET_PARAMETER,A.SET_PARAMETER,A.REDIRECT,A.RECORD,A.FLUSH,A.GET,A.POST];t.METHOD_MAP=n.enumToMap(A);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var c;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(c=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var l;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(l=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:l.CONNECTION,"content-length":l.CONTENT_LENGTH,"proxy-connection":l.CONNECTION,"transfer-encoding":l.TRANSFER_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IMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAh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y5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAAN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BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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AwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},7501:(e,t,r)=>{const{kClients:n}=r(6443);const s=r(7405);const{kAgent:i,kMockAgentSet:o,kMockAgentGet:a,kDispatches:A,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:m}=r(1117);const p=r(7365);const g=r(4004);const{matchValue:h,buildMockOptions:f}=r(3397);const{InvalidArgumentError:y,UndiciError:C}=r(8707);const E=r(883);const B=r(1529);const I=r(6142);class MockAgent extends E{constructor(e){super(e);this[l]=true;this[c]=true;if(e?.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e?.agent?e.agent:new s(e);this[i]=t;this[n]=t[n];this[d]=f(e)}get(e){let t=this[a](e);if(!t){t=this[m](e);this[o](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[i].dispatch(e,t)}async close(){await this[i].close();this[n].clear()}deactivate(){this[c]=false}activate(){this[c]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[l])){this[l].push(e)}else{this[l]=[e]}}else if(typeof e==="undefined"){this[l]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[l]=false}get isMockActive(){return this[c]}[o](e,t){this[n].set(e,t)}[m](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new g(e,t)}[a](e){const t=this[n].get(e);if(t){return t}if(typeof e!=="string"){const t=this[m]("http://localhost:9999");this[o](e,t);return t}for(const[t,r]of Array.from(this[n])){if(r&&typeof t!=="string"&&h(t,e)){const t=this[m](e);this[o](e,t);t[A]=r[A];return t}}}[u](){return this[l]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t[A].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new I}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new B("interceptor","interceptors").pluralize(t.length);throw new C(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},7365:(e,t,r)=>{const{promisify:n}=r(7975);const s=r(3701);const{buildMockDispatch:i}=r(3397);const{kDispatches:o,kMockAgent:a,kClose:A,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=r(1117);const{MockInterceptor:m}=r(1511);const p=r(6443);const{InvalidArgumentError:g}=r(8707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new g("Argument opts.agent must implement Agent")}this[a]=t.agent;this[l]=e;this[o]=[];this[d]=1;this[u]=this.dispatch;this[c]=this.close.bind(this);this.dispatch=i.call(this);this.close=this[A]}get[p.kConnected](){return this[d]}intercept(e){return new m(e,this[o])}async[A](){await n(this[c])();this[d]=0;this[a][p.kClients].delete(this[l])}}e.exports=MockClient},2429:(e,t,r)=>{const{UndiciError:n}=r(8707);const s=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[s]===true}[s]=true}e.exports={MockNotMatchedError:MockNotMatchedError}},1511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:i}=r(3397);const{kDispatches:o,kDispatchKey:a,kDefaultHeaders:A,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=r(1117);const{InvalidArgumentError:d}=r(8707);const{buildURL:m}=r(3440);class MockScope{constructor(e){this[u]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[u].delay=e;return this}persist(){this[u].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[u].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=m(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[o]=t;this[A]={};this[c]={};this[l]=false}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){const s=n(t);const i=this[l]?{"content-length":s.length}:{};const o={...this[A],...i,...r.headers};const a={...this[c],...r.trailers};return{statusCode:e,data:t,headers:o,trailers:a}}validateReplyParameters(e){if(typeof e.statusCode==="undefined"){throw new d("statusCode must be defined")}if(typeof e.responseOptions!=="object"||e.responseOptions===null){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"||r===null){throw new d("reply options callback must return an object")}const n={data:"",responseOptions:{},...r};this.validateReplyParameters(n);return{...this.createMockScopeDispatchData(n)}};const t=i(this[o],this[a],wrappedDefaultsCallback);return new MockScope(t)}const t={statusCode:e,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(t);const r=this.createMockScopeDispatchData(t);const n=i(this[o],this[a],r);return new MockScope(n)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=i(this[o],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[A]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[c]=e;return this}replyContentLength(){this[l]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},4004:(e,t,r)=>{const{promisify:n}=r(7975);const s=r(628);const{buildMockDispatch:i}=r(3397);const{kDispatches:o,kMockAgent:a,kClose:A,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=r(1117);const{MockInterceptor:m}=r(1511);const p=r(6443);const{InvalidArgumentError:g}=r(8707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new g("Argument opts.agent must implement Agent")}this[a]=t.agent;this[l]=e;this[o]=[];this[d]=1;this[u]=this.dispatch;this[c]=this.close.bind(this);this.dispatch=i.call(this);this.close=this[A]}get[p.kConnected](){return this[d]}intercept(e){return new m(e,this[o])}async[A](){await n(this[c])();this[d]=0;this[a][p.kClients].delete(this[l])}}e.exports=MockPool},1117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(e,t,r)=>{const{MockNotMatchedError:n}=r(2429);const{kDispatches:s,kMockAgent:i,kOriginalDispatch:o,kOrigin:a,kGetNetConnect:A}=r(1117);const{buildURL:c}=r(3440);const{STATUS_CODES:l}=r(7067);const{types:{isPromise:u}}=r(7975);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(i.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}i=i.filter((({method:e})=>matchValue(e,t.method)));if(i.length===0){throw new n(`Mock dispatch not matched for method '${t.method}' on path '${s}'`)}i=i.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(i.length===0){throw new n(`Mock dispatch not matched for body '${t.body}' on path '${s}'`)}i=i.filter((e=>matchHeaders(e,t.headers)));if(i.length===0){const e=typeof t.headers==="object"?JSON.stringify(t.headers):t.headers;throw new n(`Mock dispatch not matched for headers '${e}' on path '${s}'`)}return i[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const i={...n,...t,pending:true,data:{error:null,...s}};e.push(i);return i}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:i}=e;return{path:t,method:r,body:n,headers:s,query:i}}function generateKeyValues(e){const t=Object.keys(e);const r=[];for(let n=0;n=p;n.pending=m0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=o){const c=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:c}):s;if(u(l)){l.then((e=>handleReply(n,e)));return}const d=getResponseData(l);const m=generateKeyValues(a);const p=generateKeyValues(A);t.onConnect?.((e=>t.onError(e)),null);t.onHeaders?.(i,m,resume,getStatusText(i));t.onData?.(Buffer.from(d));t.onComplete?.(p);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[i];const t=this[a];const r=this[o];return function dispatch(s,i){if(e.isMockActive){try{mockDispatch.call(this,s,i)}catch(o){if(o instanceof n){const a=e[A]();if(a===false){throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,i)}else{throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw o}}}else{r.call(this,s,i)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(e,t,r)=>{const{Transform:n}=r(7075);const{Console:s}=r(7540);const i=process.versions.icu?"✅":"Y ";const o=process.versions.icu?"❌":"N ";e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:a,origin:A})=>({Method:e,Origin:A,Path:t,"Status code":r,Persistent:n?i:o,Invocations:a,Remaining:n?Infinity:s-a})));this.logger.table(t);return this.transform.read().toString()}}},1529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const i=n?this.singular:this.plural;return{...s,count:e,noun:i}}}},6603:e=>{let t=0;const r=1e3;const n=(r>>1)-1;let s;const i=Symbol("kFastTimer");const o=[];const a=-2;const A=-1;const c=0;const l=1;function onTick(){t+=n;let e=0;let r=o.length;while(e=s._idleStart+s._idleTimeout){s._state=A;s._idleStart=-1;s._onTimeout(s._timerArg)}if(s._state===A){s._state=a;if(--r!==0){o[e]=o[r]}}else{++e}}o.length=r;if(o.length!==0){refreshTimeout()}}function refreshTimeout(){if(s){s.refresh()}else{clearTimeout(s);s=setTimeout(onTick,n);if(s.unref){s.unref()}}}class FastTimer{[i]=true;_state=a;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,r){this._onTimeout=e;this._idleTimeout=t;this._timerArg=r;this.refresh()}refresh(){if(this._state===a){o.push(this)}if(!s||o.length===1){refreshTimeout()}this._state=c}clear(){this._state=A;this._idleStart=-1}}e.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new FastTimer(e,t,n)},clearTimeout(e){if(e[i]){e.clear()}else{clearTimeout(e)}},setFastTimeout(e,t,r){return new FastTimer(e,t,r)},clearFastTimeout(e){e.clear()},now(){return t},tick(e=0){t+=e-r+1;onTick();onTick()},reset(){t=0;o.length=0;clearTimeout(s);s=null},kFastTimer:i}},9634:(e,t,r)=>{const{kConstruct:n}=r(109);const{urlEquals:s,getFieldValues:i}=r(6798);const{kEnumerableProperty:o,isDisturbed:a}=r(3440);const{webidl:A}=r(5893);const{Response:c,cloneResponse:l,fromInnerResponse:u}=r(9051);const{Request:d,fromInnerRequest:m}=r(9967);const{kState:p}=r(3627);const{fetching:g}=r(4398);const{urlIsHttpHttpsScheme:h,createDeferredPromise:f,readAllBytes:y}=r(3168);const C=r(4589);class Cache{#x;constructor(){if(arguments[0]!==n){A.illegalConstructor()}A.util.markAsUncloneable(this);this.#x=arguments[1]}async match(e,t={}){A.brandCheck(this,Cache);const r="Cache.match";A.argumentLengthCheck(arguments,1,r);e=A.converters.RequestInfo(e,r,"request");t=A.converters.CacheQueryOptions(t,r,"options");const n=this.#D(e,t,1);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){A.brandCheck(this,Cache);const r="Cache.matchAll";if(e!==undefined)e=A.converters.RequestInfo(e,r,"request");t=A.converters.CacheQueryOptions(t,r,"options");return this.#D(e,t)}async add(e){A.brandCheck(this,Cache);const t="Cache.add";A.argumentLengthCheck(arguments,1,t);e=A.converters.RequestInfo(e,t,"request");const r=[e];const n=this.addAll(r);return await n}async addAll(e){A.brandCheck(this,Cache);const t="Cache.addAll";A.argumentLengthCheck(arguments,1,t);const r=[];const n=[];for(let r of e){if(r===undefined){throw A.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]})}r=A.converters.RequestInfo(r);if(typeof r==="string"){continue}const e=r[p];if(!h(e.url)||e.method!=="GET"){throw A.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}}const s=[];for(const o of e){const e=new d(o)[p];if(!h(e.url)){throw A.errors.exception({header:t,message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const a=f();s.push(g({request:e,processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){a.reject(A.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=i(e.headersList.get("vary"));for(const e of t){if(e==="*"){a.reject(A.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of s){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){a.reject(new DOMException("aborted","AbortError"));return}a.resolve(e)}}));r.push(a.promise)}const o=Promise.all(r);const a=await o;const c=[];let l=0;for(const e of a){const t={type:"put",request:n[l],response:e};c.push(t);l++}const u=f();let m=null;try{this.#k(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){u.resolve(undefined)}else{u.reject(m)}}));return u.promise}async put(e,t){A.brandCheck(this,Cache);const r="Cache.put";A.argumentLengthCheck(arguments,2,r);e=A.converters.RequestInfo(e,r,"request");t=A.converters.Response(t,r,"response");let n=null;if(e instanceof d){n=e[p]}else{n=new d(e)[p]}if(!h(n.url)||n.method!=="GET"){throw A.errors.exception({header:r,message:"Expected an http/s scheme when method is not GET"})}const s=t[p];if(s.status===206){throw A.errors.exception({header:r,message:"Got 206 status"})}if(s.headersList.contains("vary")){const e=i(s.headersList.get("vary"));for(const t of e){if(t==="*"){throw A.errors.exception({header:r,message:"Got * vary field value"})}}}if(s.body&&(a(s.body.stream)||s.body.stream.locked)){throw A.errors.exception({header:r,message:"Response body is locked or disturbed"})}const o=l(s);const c=f();if(s.body!=null){const e=s.body.stream;const t=e.getReader();y(t).then(c.resolve,c.reject)}else{c.resolve(undefined)}const u=[];const m={type:"put",request:n,response:o};u.push(m);const g=await c.promise;if(o.body!=null){o.body.source=g}const C=f();let E=null;try{this.#k(u)}catch(e){E=e}queueMicrotask((()=>{if(E===null){C.resolve()}else{C.reject(E)}}));return C.promise}async delete(e,t={}){A.brandCheck(this,Cache);const r="Cache.delete";A.argumentLengthCheck(arguments,1,r);e=A.converters.RequestInfo(e,r,"request");t=A.converters.CacheQueryOptions(t,r,"options");let n=null;if(e instanceof d){n=e[p];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{C(typeof e==="string");n=new d(e)[p]}const s=[];const i={type:"delete",request:n,options:t};s.push(i);const o=f();let a=null;let c;try{c=this.#k(s)}catch(e){a=e}queueMicrotask((()=>{if(a===null){o.resolve(!!c?.length)}else{o.reject(a)}}));return o.promise}async keys(e=undefined,t={}){A.brandCheck(this,Cache);const r="Cache.keys";if(e!==undefined)e=A.converters.RequestInfo(e,r,"request");t=A.converters.CacheQueryOptions(t,r,"options");let n=null;if(e!==undefined){if(e instanceof d){n=e[p];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new d(e)[p]}}const s=f();const i=[];if(e===undefined){for(const e of this.#x){i.push(e[0])}}else{const e=this.#v(n,t);for(const t of e){i.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of i){const r=m(t,(new AbortController).signal,"immutable");e.push(r)}s.resolve(Object.freeze(e))}));return s.promise}#k(e){const t=this.#x;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#v(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#v(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);C(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!h(s.url)){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#v(r.request);for(const r of e){const e=t.indexOf(r);C(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#x.length=0;this.#x=r;throw e}}#v(e,t,r){const n=[];const s=r??this.#x;for(const r of s){const[s,i]=r;if(this.#T(e,s,i,t)){n.push(r)}}return n}#T(e,t,r=null,n){const o=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";o.search=""}if(!s(o,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const A=i(r.headersList.get("vary"));for(const r of A){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}#D(e,t,r=Infinity){let n=null;if(e!==undefined){if(e instanceof d){n=e[p];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new d(e)[p]}}const s=[];if(e===undefined){for(const e of this.#x){s.push(e[1])}}else{const e=this.#v(n,t);for(const t of e){s.push(t[1])}}const i=[];for(const e of s){const t=u(e,"immutable");i.push(t.clone());if(i.length>=r){break}}return Object.freeze(i)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:o,matchAll:o,add:o,addAll:o,put:o,delete:o,keys:o});const E=[{key:"ignoreSearch",converter:A.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:A.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:A.converters.boolean,defaultValue:()=>false}];A.converters.CacheQueryOptions=A.dictionaryConverter(E);A.converters.MultiCacheQueryOptions=A.dictionaryConverter([...E,{key:"cacheName",converter:A.converters.DOMString}]);A.converters.Response=A.interfaceConverter(c);A.converters["sequence"]=A.sequenceConverter(A.converters.RequestInfo);e.exports={Cache:Cache}},3245:(e,t,r)=>{const{kConstruct:n}=r(109);const{Cache:s}=r(9634);const{webidl:i}=r(5893);const{kEnumerableProperty:o}=r(3440);class CacheStorage{#P=new Map;constructor(){if(arguments[0]!==n){i.illegalConstructor()}i.util.markAsUncloneable(this)}async match(e,t={}){i.brandCheck(this,CacheStorage);i.argumentLengthCheck(arguments,1,"CacheStorage.match");e=i.converters.RequestInfo(e);t=i.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#P.has(t.cacheName)){const r=this.#P.get(t.cacheName);const i=new s(n,r);return await i.match(e,t)}}else{for(const r of this.#P.values()){const i=new s(n,r);const o=await i.match(e,t);if(o!==undefined){return o}}}}async has(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.has";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");return this.#P.has(e)}async open(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.open";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");if(this.#P.has(e)){const t=this.#P.get(e);return new s(n,t)}const r=[];this.#P.set(e,r);return new s(n,r)}async delete(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.delete";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");return this.#P.delete(e)}async keys(){i.brandCheck(this,CacheStorage);const e=this.#P.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:o,has:o,open:o,delete:o,keys:o});e.exports={CacheStorage:CacheStorage}},109:(e,t,r)=>{e.exports={kConstruct:r(6443).kConstruct}},6798:(e,t,r)=>{const n=r(4589);const{URLSerializer:s}=r(1900);const{isValidHeaderName:i}=r(3168);function urlEquals(e,t,r=false){const n=s(e,r);const i=s(t,r);return n===i}function getFieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(i(r)){t.push(r)}}return t}e.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},9061:(e,t,r)=>{const{parseSetCookie:n}=r(1978);const{stringify:s}=r(7797);const{webidl:i}=r(5893);const{Headers:o}=r(660);function getCookies(e){i.argumentLengthCheck(arguments,1,"getCookies");i.brandCheck(e,o,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.brandCheck(e,o,{strict:false});const n="deleteCookie";i.argumentLengthCheck(arguments,2,n);t=i.converters.DOMString(t,n,"name");r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,"getSetCookies");i.brandCheck(e,o,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>n(e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,"setCookie");i.brandCheck(e,o,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",r)}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:()=>null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:()=>null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(1276);const{isCTLExcludingHtab:i}=r(7797);const{collectASequenceOfCodePointsFast:o}=r(1900);const a=r(4589);function parseSetCookie(e){if(i(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=o(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=o("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=o(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let i="";if(r.includes("=")){const e={position:0};n=o("=",r,e);i=r.slice(e.position+1)}else{n=r}n=n.trim();i=i.trim();if(i.length>s){return parseUnparsedAttributes(e,t)}const A=n.toLowerCase();if(A==="expires"){const e=new Date(i);t.expires=e}else if(A==="max-age"){const r=i.charCodeAt(0);if((r<48||r>57)&&i[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(i)){return parseUnparsedAttributes(e,t)}const n=Number(i);t.maxAge=n}else if(A==="domain"){let e=i;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(A==="path"){let e="";if(i.length===0||i[0]!=="/"){e="/"}else{e=i}t.path=e}else if(A==="secure"){t.secure=true}else if(A==="httponly"){t.httpOnly=true}else if(A==="samesite"){let e="Default";const r=i.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${i}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:e=>{function isCTLExcludingHtab(e){for(let t=0;t=0&&r<=8||r>=10&&r<=31||r===127){return true}}return false}function validateCookieName(e){for(let t=0;t126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){let t=e.length;let r=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"'){throw new Error("Invalid cookie value")}--t;++r}while(r126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;tt.toString().padStart(2,"0")));function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}return`${t[e.getUTCDay()]}, ${n[e.getUTCDate()]} ${r[e.getUTCMonth()]} ${e.getUTCFullYear()} ${n[e.getUTCHours()]}:${n[e.getUTCMinutes()]}:${n[e.getUTCSeconds()]} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(e,t,r)=>{const{Transform:n}=r(7075);const{isASCIINumber:s,isValidLastEventId:i}=r(4811);const o=[239,187,191];const a=10;const A=13;const c=58;const l=32;class EventSourceStream extends n{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(e={}){e.readableObjectMode=true;super(e);this.state=e.eventSourceSettings||{};if(e.push){this.push=e.push}}_transform(e,t,r){if(e.length===0){r();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,e])}else{this.buffer=e}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===o[0]){r();return}this.checkBOM=false;r();return;case 2:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]){r();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;r();return}this.checkBOM=false;break;default:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){t[n]=o}break}}processEvent(e){if(e.retry&&s(e.retry)){this.state.reconnectionTime=parseInt(e.retry,10)}if(e.id&&i(e.id)){this.state.lastEventId=e.id}if(e.data!==undefined){this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}e.exports={EventSourceStream:EventSourceStream}},1238:(e,t,r)=>{const{pipeline:n}=r(7075);const{fetching:s}=r(4398);const{makeRequest:i}=r(9967);const{webidl:o}=r(5893);const{EventSourceStream:a}=r(4031);const{parseMIMEType:A}=r(1900);const{createFastMessageEvent:c}=r(5188);const{isNetworkError:l}=r(9051);const{delay:u}=r(4811);const{kEnumerableProperty:d}=r(3440);const{environmentSettingsObject:m}=r(3168);let p=false;const g=3e3;const h=0;const f=1;const y=2;const C="anonymous";const E="use-credentials";class EventSource extends EventTarget{#M={open:null,error:null,message:null};#L=null;#F=false;#U=h;#O=null;#H=null;#e;#E;constructor(e,t={}){super();o.util.markAsUncloneable(this);const r="EventSource constructor";o.argumentLengthCheck(arguments,1,r);if(!p){p=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}e=o.converters.USVString(e,r,"url");t=o.converters.EventSourceInitDict(t,r,"eventSourceInitDict");this.#e=t.dispatcher;this.#E={lastEventId:"",reconnectionTime:g};const n=m;let s;try{s=new URL(e,n.settingsObject.baseUrl);this.#E.origin=s.origin}catch(e){throw new DOMException(e,"SyntaxError")}this.#L=s.href;let a=C;if(t.withCredentials){a=E;this.#F=true}const A={redirect:"follow",keepalive:true,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};A.client=m.settingsObject;A.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];A.cache="no-store";A.initiator="other";A.urlList=[new URL(this.#L)];this.#O=i(A);this.#_()}get readyState(){return this.#U}get url(){return this.#L}get withCredentials(){return this.#F}#_(){if(this.#U===y)return;this.#U=h;const e={request:this.#O,dispatcher:this.#e};const processEventSourceEndOfBody=e=>{if(l(e)){this.dispatchEvent(new Event("error"));this.close()}this.#z()};e.processResponseEndOfBody=processEventSourceEndOfBody;e.processResponse=e=>{if(l(e)){if(e.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#z();return}}const t=e.headersList.get("content-type",true);const r=t!==null?A(t):"failure";const s=r!=="failure"&&r.essence==="text/event-stream";if(e.status!==200||s===false){this.close();this.dispatchEvent(new Event("error"));return}this.#U=f;this.dispatchEvent(new Event("open"));this.#E.origin=e.urlList[e.urlList.length-1].origin;const i=new a({eventSourceSettings:this.#E,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,i,(e=>{if(e?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#H=s(e)}async#z(){if(this.#U===y)return;this.#U=h;this.dispatchEvent(new Event("error"));await u(this.#E.reconnectionTime);if(this.#U!==h)return;if(this.#E.lastEventId.length){this.#O.headersList.set("last-event-id",this.#E.lastEventId,true)}this.#_()}close(){o.brandCheck(this,EventSource);if(this.#U===y)return;this.#U=y;this.#H.abort();this.#O=null}get onopen(){return this.#M.open}set onopen(e){if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onmessage(){return this.#M.message}set onmessage(e){if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get onerror(){return this.#M.error}set onerror(e){if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}}const B={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:h,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:f,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:y,writable:false}};Object.defineProperties(EventSource,B);Object.defineProperties(EventSource.prototype,B);Object.defineProperties(EventSource.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d});o.converters.EventSourceInitDict=o.dictionaryConverter([{key:"withCredentials",converter:o.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:o.converters.any}]);e.exports={EventSource:EventSource,defaultReconnectionTime:g}},4811:e=>{function isValidLastEventId(e){return e.indexOf("\0")===-1}function isASCIINumber(e){if(e.length===0)return false;for(let t=0;t57)return false}return true}function delay(e){return new Promise((t=>{setTimeout(t,e).unref()}))}e.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(e,t,r)=>{const n=r(3440);const{ReadableStreamFrom:s,isBlobLike:i,isReadableStreamLike:o,readableStreamClose:a,createDeferredPromise:A,fullyReadBody:c,extractMimeType:l,utf8DecodeBytes:u}=r(3168);const{FormData:d}=r(5910);const{kState:m}=r(3627);const{webidl:p}=r(5893);const{Blob:g}=r(4573);const h=r(4589);const{isErrored:f,isDisturbed:y}=r(7075);const{isArrayBuffer:C}=r(3429);const{serializeAMimeType:E}=r(1900);const{multipartFormDataParser:B}=r(116);let I;try{const e=r(7598);I=t=>e.randomInt(0,t)}catch{I=e=>Math.floor(Math.random(e))}const Q=new TextEncoder;function noop(){}const b=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let S;if(b){S=new FinalizationRegistry((e=>{const t=e.deref();if(t&&!t.locked&&!y(t)&&!f(t)){t.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(e,t=false){let r=null;if(e instanceof ReadableStream){r=e}else if(i(e)){r=e.stream()}else{r=new ReadableStream({async pull(e){const t=typeof c==="string"?Q.encode(c):c;if(t.byteLength){e.enqueue(t)}queueMicrotask((()=>a(e)))},start(){},type:"bytes"})}h(o(r));let A=null;let c=null;let l=null;let u=null;if(typeof e==="string"){c=e;u="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){c=e.toString();u="application/x-www-form-urlencoded;charset=UTF-8"}else if(C(e)){c=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){c=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(n.isFormDataLike(e)){const t=`----formdata-undici-0${`${I(1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);l=0;let i=false;for(const[t,o]of e){if(typeof o==="string"){const e=Q.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);l+=e.byteLength}else{const e=Q.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,s);if(typeof o.size==="number"){l+=e.byteLength+o.size+s.byteLength}else{i=true}}}const o=Q.encode(`--${t}--\r\n`);n.push(o);l+=o.byteLength;if(i){l=null}c=e;A=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};u=`multipart/form-data; boundary=${t}`}else if(i(e)){c=e;l=e.size;if(e.type){u=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof c==="string"||n.isBuffer(c)){l=Buffer.byteLength(c)}if(A!=null){let t;r=new ReadableStream({async start(){t=A(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!f(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const d={stream:r,source:c,length:l};return[d,u]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){h(!n.isDisturbed(e),"The body has already been consumed.");h(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=E(t)}return new g([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,u,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=B(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new d;n[m]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new d;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){p.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[m]);const n=A();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[m].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await c(e[m].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[m].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(u(e))}function bodyMimeType(e){const t=e[m].headersList;const r=l(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:S,hasFinalizationRegistry:b,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const i=new Set(s);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const a=new Set(o);const A=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const c=new Set(A);const l=["follow","manual","error"];const u=["GET","HEAD","OPTIONS","TRACE"];const d=new Set(u);const m=["navigate","same-origin","no-cors","cors"];const p=["omit","same-origin","include"];const g=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const h=["content-encoding","content-language","content-location","content-type","content-length"];const f=["half"];const y=["CONNECT","TRACE","TRACK"];const C=new Set(y);const E=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const B=new Set(E);e.exports={subresource:E,forbiddenMethods:y,requestBodyHeader:h,referrerPolicy:A,requestRedirect:l,requestMode:m,requestCredentials:p,requestCache:g,redirectStatus:s,corsSafeListedMethods:t,nullBodyStatus:n,safeMethods:u,badPorts:o,requestDuplex:f,subresourceSet:B,badPortsSet:a,redirectStatusSet:i,corsSafeListedMethodsSet:r,safeMethodsSet:d,forbiddenMethodsSet:C,referrerPolicySet:c}},1900:(e,t,r)=>{const n=r(4589);const s=new TextEncoder;const i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const o=/[\u000A\u000D\u0009\u0020]/;const a=/[\u0009\u000A\u000C\u000D\u0020]/g;const A=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const o=t.slice(i+1);let a=stringPercentDecode(o);if(/;(\u0020){0,}base64$/i.test(s)){const e=isomorphicDecode(a);a=forgivingBase64(e);if(a==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let A=parseMIMEType(s);if(A==="failure"){A=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:A,body:a}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;const s=n===0?r:r.substring(0,r.length-n);if(!n&&r.endsWith("#")){return s.slice(0,-1)}return s}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexByteToNumber(e){return e>=48&&e<=57?e-48:(e&223)-55}function percentDecode(e){const t=e.length;const r=new Uint8Array(t);let n=0;for(let s=0;se.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!i.test(n)){return"failure"}const s=r.toLowerCase();const a=n.toLowerCase();const c={type:s,subtype:a,parameters:new Map,essence:`${s}/${a}`};while(t.positiono.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&i.test(r)&&(n.length===0||A.test(n))&&!c.parameters.has(r)){c.parameters.set(r,n)}}return c}function forgivingBase64(e){e=e.replace(a,"");let t=e.length;if(t%4===0){if(e.charCodeAt(t-1)===61){--t;if(e.charCodeAt(t-1)===61){--t}}}if(t%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t))){return"failure"}const r=Buffer.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}function collectAnHTTPQuotedString(e,t,r){const s=t.position;let i="";n(e[t.position]==='"');t.position++;while(true){i+=collectASequenceOfCodePoints((e=>e!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){i+="\\";break}i+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return i}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!i.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e===13||e===10||e===9||e===32}function removeHTTPWhitespace(e,t=true,r=true){return removeChars(e,t,r,isHTTPWhiteSpace)}function isASCIIWhitespace(e){return e===13||e===10||e===9||e===12||e===32}function removeASCIIWhitespace(e,t=true,r=true){return removeChars(e,t,r,isASCIIWhitespace)}function removeChars(e,t,r,n){let s=0;let i=e.length-1;if(t){while(s0&&n(e.charCodeAt(i)))i--}return s===0&&i===e.length-1?e:e.slice(s,i+1)}function isomorphicDecode(e){const t=e.length;if((2<<15)-1>t){return String.fromCharCode.apply(null,e)}let r="";let n=0;let s=(2<<15)-1;while(nt){s=t-n}r+=String.fromCharCode.apply(null,e.subarray(n,n+=s))}return r}function minimizeSupportedMimeType(e){switch(e.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(e.subtype.endsWith("+json")){return"application/json"}if(e.subtype.endsWith("+xml")){return"application/xml"}return""}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:isomorphicDecode}},6653:(e,t,r)=>{const{kConnected:n,kSize:s}=r(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}unregister(e){}}e.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(e,t,r)=>{const{Blob:n,File:s}=r(4573);const{kState:i}=r(3627);const{webidl:o}=r(5893);class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){o.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){o.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){o.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){o.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){o.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){o.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){o.brandCheck(this,FileLike);return this[i].name}get lastModified(){o.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}o.converters.Blob=o.interfaceConverter(n);function isFileLike(e){return e instanceof s||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(e,t,r)=>{const{isUSVString:n,bufferToLowerCasedHeaderName:s}=r(3440);const{utf8DecodeBytes:i}=r(3168);const{HTTP_TOKEN_CODEPOINTS:o,isomorphicDecode:a}=r(1900);const{isFileLike:A}=r(7114);const{makeEntry:c}=r(5910);const l=r(4589);const{File:u}=r(4573);const d=globalThis.File??u;const m=Buffer.from('form-data; name="');const p=Buffer.from("; filename");const g=Buffer.from("--");const h=Buffer.from("--\r\n");function isAsciiString(e){for(let t=0;t70){return false}for(let r=0;r=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95)){return false}}return true}function multipartFormDataParser(e,t){l(t!=="failure"&&t.essence==="multipart/form-data");const r=t.parameters.get("boundary");if(r===undefined){return"failure"}const s=Buffer.from(`--${r}`,"utf8");const o=[];const a={position:0};while(e[a.position]===13&&e[a.position+1]===10){a.position+=2}let u=e.length;while(e[u-1]===10&&e[u-2]===13){u-=2}if(u!==e.length){e=e.subarray(0,u)}while(true){if(e.subarray(a.position,a.position+s.length).equals(s)){a.position+=s.length}else{return"failure"}if(a.position===e.length-2&&bufferStartsWith(e,g,a)||a.position===e.length-4&&bufferStartsWith(e,h,a)){return o}if(e[a.position]!==13||e[a.position+1]!==10){return"failure"}a.position+=2;const t=parseMultipartFormDataHeaders(e,a);if(t==="failure"){return"failure"}let{name:r,filename:u,contentType:m,encoding:p}=t;a.position+=2;let f;{const t=e.indexOf(s.subarray(2),a.position);if(t===-1){return"failure"}f=e.subarray(a.position,t-4);a.position+=f.length;if(p==="base64"){f=Buffer.from(f.toString(),"base64")}}if(e[a.position]!==13||e[a.position+1]!==10){return"failure"}else{a.position+=2}let y;if(u!==null){m??="text/plain";if(!isAsciiString(m)){m=""}y=new d([f],u,{type:m})}else{y=i(Buffer.from(f))}l(n(r));l(typeof y==="string"&&n(y)||A(y));o.push(c(r,y,u))}}function parseMultipartFormDataHeaders(e,t){let r=null;let n=null;let i=null;let A=null;while(true){if(e[t.position]===13&&e[t.position+1]===10){if(r===null){return"failure"}return{name:r,filename:n,contentType:i,encoding:A}}let c=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==58),e,t);c=removeChars(c,true,true,(e=>e===9||e===32));if(!o.test(c.toString())){return"failure"}if(e[t.position]!==58){return"failure"}t.position++;collectASequenceOfBytes((e=>e===32||e===9),e,t);switch(s(c)){case"content-disposition":{r=n=null;if(!bufferStartsWith(e,m,t)){return"failure"}t.position+=17;r=parseMultipartFormDataName(e,t);if(r===null){return"failure"}if(bufferStartsWith(e,p,t)){let r=t.position+p.length;if(e[r]===42){t.position+=1;r+=1}if(e[r]!==61||e[r+1]!==34){return"failure"}t.position+=12;n=parseMultipartFormDataName(e,t);if(n===null){return"failure"}}break}case"content-type":{let r=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);r=removeChars(r,false,true,(e=>e===9||e===32));i=a(r);break}case"content-transfer-encoding":{let r=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);r=removeChars(r,false,true,(e=>e===9||e===32));A=a(r);break}default:{collectASequenceOfBytes((e=>e!==10&&e!==13),e,t)}}if(e[t.position]!==13&&e[t.position+1]!==10){return"failure"}else{t.position+=2}}}function parseMultipartFormDataName(e,t){l(e[t.position-1]===34);let r=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==34),e,t);if(e[t.position]!==34){return null}else{t.position++}r=(new TextDecoder).decode(r).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return r}function collectASequenceOfBytes(e,t,r){let n=r.position;while(n0&&n(e[i]))i--}return s===0&&i===e.length-1?e:e.subarray(s,i+1)}function bufferStartsWith(e,t,r){if(e.length{const{isBlobLike:n,iteratorMixin:s}=r(3168);const{kState:i}=r(3627);const{kEnumerableProperty:o}=r(3440);const{FileLike:a,isFileLike:A}=r(7114);const{webidl:c}=r(5893);const{File:l}=r(4573);const u=r(7975);const d=globalThis.File??l;class FormData{constructor(e){c.util.markAsUncloneable(this);if(e!==undefined){throw c.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){c.brandCheck(this,FormData);const s="FormData.append";c.argumentLengthCheck(arguments,2,s);if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=c.converters.USVString(e,s,"name");t=n(t)?c.converters.Blob(t,s,"value",{strict:false}):c.converters.USVString(t,s,"value");r=arguments.length===3?c.converters.USVString(r,s,"filename"):undefined;const o=makeEntry(e,t,r);this[i].push(o)}delete(e){c.brandCheck(this,FormData);const t="FormData.delete";c.argumentLengthCheck(arguments,1,t);e=c.converters.USVString(e,t,"name");this[i]=this[i].filter((t=>t.name!==e))}get(e){c.brandCheck(this,FormData);const t="FormData.get";c.argumentLengthCheck(arguments,1,t);e=c.converters.USVString(e,t,"name");const r=this[i].findIndex((t=>t.name===e));if(r===-1){return null}return this[i][r].value}getAll(e){c.brandCheck(this,FormData);const t="FormData.getAll";c.argumentLengthCheck(arguments,1,t);e=c.converters.USVString(e,t,"name");return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){c.brandCheck(this,FormData);const t="FormData.has";c.argumentLengthCheck(arguments,1,t);e=c.converters.USVString(e,t,"name");return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){c.brandCheck(this,FormData);const s="FormData.set";c.argumentLengthCheck(arguments,2,s);if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=c.converters.USVString(e,s,"name");t=n(t)?c.converters.Blob(t,s,"name",{strict:false}):c.converters.USVString(t,s,"name");r=arguments.length===3?c.converters.USVString(r,s,"name"):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}[u.inspect.custom](e,t){const r=this[i].reduce(((e,t)=>{if(e[t.name]){if(Array.isArray(e[t.name])){e[t.name].push(t.value)}else{e[t.name]=[e[t.name],t.value]}}else{e[t.name]=t.value}return e}),{__proto__:null});t.depth??=e;t.colors??=true;const n=u.formatWithOptions(t,r);return`FormData ${n.slice(n.indexOf("]")+2)}`}}s("FormData",FormData,i,"name","value");Object.defineProperties(FormData.prototype,{append:o,delete:o,get:o,getAll:o,has:o,set:o,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){if(typeof t==="string"){}else{if(!A(t)){t=t instanceof Blob?new d([t],"blob",{type:t.type}):new a(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=t instanceof l?new d([t],r,e):new a(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData,makeEntry:makeEntry}},1059:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(e,t,r)=>{const{kConstruct:n}=r(6443);const{kEnumerableProperty:s}=r(3440);const{iteratorMixin:i,isValidHeaderName:o,isValidHeaderValue:a}=r(3168);const{webidl:A}=r(5893);const c=r(4589);const l=r(7975);const u=Symbol("headers map");const d=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!o(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!a(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(m(e)==="immutable"){throw new TypeError("immutable")}return g(e).append(t,r,false)}function compareHeaderName(e,t){return e[0]>1);if(t[a][0]<=A[0]){o=a+1}else{i=a}}if(n!==a){s=n;while(s>o){t[s]=t[--s]}t[o]=A}}if(!r.next().done){throw new TypeError("Unreachable")}return t}else{let e=0;for(const{0:r,1:{value:n}}of this[u]){t[e++]=[r,n];c(n!==null)}return t.sort(compareHeaderName)}}}class Headers{#q;#G;constructor(e=undefined){A.util.markAsUncloneable(this);if(e===n){return}this.#G=new HeadersList;this.#q="none";if(e!==undefined){e=A.converters.HeadersInit(e,"Headers contructor","init");fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,"Headers.append");const r="Headers.append";e=A.converters.ByteString(e,r,"name");t=A.converters.ByteString(t,r,"value");return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,"Headers.delete");const t="Headers.delete";e=A.converters.ByteString(e,t,"name");if(!o(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this.#q==="immutable"){throw new TypeError("immutable")}if(!this.#G.contains(e,false)){return}this.#G.delete(e,false)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,"Headers.get");const t="Headers.get";e=A.converters.ByteString(e,t,"name");if(!o(e)){throw A.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#G.get(e,false)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,"Headers.has");const t="Headers.has";e=A.converters.ByteString(e,t,"name");if(!o(e)){throw A.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#G.contains(e,false)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,"Headers.set");const r="Headers.set";e=A.converters.ByteString(e,r,"name");t=A.converters.ByteString(t,r,"value");t=headerValueNormalize(t);if(!o(e)){throw A.errors.invalidArgument({prefix:r,value:e,type:"header name"})}else if(!a(t)){throw A.errors.invalidArgument({prefix:r,value:t,type:"header value"})}if(this.#q==="immutable"){throw new TypeError("immutable")}this.#G.set(e,t,false)}getSetCookie(){A.brandCheck(this,Headers);const e=this.#G.cookies;if(e){return[...e]}return[]}get[d](){if(this.#G[d]){return this.#G[d]}const e=[];const t=this.#G.toSortedArray();const r=this.#G.cookies;if(r===null||r.length===1){return this.#G[d]=t}for(let n=0;n>"](e,t,r,n.bind(e))}return A.converters["record"](e,t,r)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:m,setHeadersGuard:p,setHeadersList:h,getHeadersList:g}},4398:(e,t,r)=>{const{makeNetworkError:n,makeAppropriateNetworkError:s,filterResponse:i,makeResponse:o,fromInnerResponse:a}=r(9051);const{HeadersList:A}=r(660);const{Request:c,cloneRequest:l}=r(9967);const u=r(8522);const{bytesMatch:d,makePolicyContainer:m,clonePolicyContainer:p,requestBadPort:g,TAOCheck:h,appendRequestOriginHeader:f,responseLocationURL:y,requestCurrentURL:C,setRequestReferrerPolicyOnRedirect:E,tryUpgradeRequestToAPotentiallyTrustworthyURL:B,createOpaqueTimingInfo:I,appendFetchMetadata:Q,corsCheck:b,crossOriginResourcePolicyCheck:S,determineRequestsReferrer:N,coarsenedSharedCurrentTime:w,createDeferredPromise:R,isBlobLike:x,sameOrigin:D,isCancelled:k,isAborted:v,isErrorLike:T,fullyReadBody:P,readableStreamClose:M,isomorphicEncode:L,urlIsLocal:F,urlIsHttpHttpsScheme:U,urlHasHttpsScheme:O,clampAndCoarsenConnectionTimingInfo:H,simpleRangeHeaderValue:_,buildContentRange:z,createInflate:q,extractMimeType:G}=r(3168);const{kState:V,kDispatcher:Y}=r(3627);const J=r(4589);const{safelyExtractBody:W,extractBody:j}=r(4492);const{redirectStatusSet:$,nullBodyStatus:K,safeMethodsSet:X,requestBodyHeader:Z,subresourceSet:ee}=r(4495);const te=r(8474);const{Readable:re,pipeline:ne,finished:se}=r(7075);const{addAbortListener:ie,isErrored:oe,isReadable:ae,bufferToLowerCasedHeaderName:Ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:le,minimizeSupportedMimeType:ue}=r(1900);const{getGlobalDispatcher:de}=r(2581);const{webidl:me}=r(5893);const{STATUS_CODES:pe}=r(7067);const ge=["GET","HEAD"];const he=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let fe;class Fetch extends te{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing"}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function handleFetchDone(e){finalizeAndReportTiming(e,"fetch")}function fetch(e,t=undefined){me.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=R();let n;try{n=new c(e,t)}catch(e){r.reject(e);return r.promise}const s=n[V];if(n.signal.aborted){abortFetch(r,s,null,n.signal.reason);return r.promise}const i=s.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){s.serviceWorkers="none"}let o=null;let A=false;let l=null;ie(n.signal,(()=>{A=true;J(l!=null);l.abort(n.signal.reason);const e=o?.deref();abortFetch(r,s,e,n.signal.reason)}));const processResponse=e=>{if(A){return}if(e.aborted){abortFetch(r,s,o,l.serializedAbortReason);return}if(e.type==="error"){r.reject(new TypeError("fetch failed",{cause:e.error}));return}o=new WeakRef(a(e,"immutable"));r.resolve(o.deref());r=null};l=fetching({request:s,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:n[Y]});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!U(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=I({startTime:n.startTime});s=""}n.endTime=w();e.timingInfo=n;ye(n,r.href,t,globalThis,s)}const ye=performance.markResourceTiming;function abortFetch(e,t,r,n){if(e){e.reject(n)}if(t.body!=null&&ae(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[V];if(s.body!=null&&ae(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:i,useParallelQueue:o=false,dispatcher:a=de()}){J(a);let A=null;let c=false;if(e.client!=null){A=e.client.globalObject;c=e.client.crossOriginIsolatedCapability}const l=w(c);const u=I({startTime:l});const d={controller:new Fetch(a),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:i,processResponseEndOfBody:s,taskDestination:A,crossOriginIsolatedCapability:c};J(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=p(e.client.policyContainer)}else{e.policyContainer=m()}}if(!e.headersList.contains("accept",true)){const t="*/*";e.headersList.append("accept",t,true)}if(!e.headersList.contains("accept-language",true)){e.headersList.append("accept-language","*",true)}if(e.priority===null){}if(ee.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let s=null;if(r.localURLsOnly&&!F(C(r))){s=n("local URLs only")}B(r);if(g(r)==="blocked"){s=n("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=N(r)}if(s===null){s=await(async()=>{const t=C(r);if(D(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return n('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return n('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!U(C(r))){return n("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return s}if(s.status!==0&&!s.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){s=i(s,"basic")}else if(r.responseTainting==="cors"){s=i(s,"cors")}else if(r.responseTainting==="opaque"){s=i(s,"opaque")}else{J(false)}}let o=s.status===0?s:s.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){s.timingAllowPassed=true}if(s.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range",true)){s=o=n()}if(s.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||K.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,n(t));if(r.responseTainting==="opaque"||s.body==null){processBodyError(s.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}s.body=W(t)[0];fetchFinale(e,s)};await P(s.body,processBody,processBodyError)}else{fetchFinale(e,s)}}function schemeFetch(e){if(k(e)&&e.request.redirectCount===0){return Promise.resolve(s(e))}const{request:t}=e;const{protocol:i}=C(t);switch(i){case"about:":{return Promise.resolve(n("about scheme is not supported"))}case"blob:":{if(!fe){fe=r(4573).resolveObjectURL}const e=C(t);if(e.search.length!==0){return Promise.resolve(n("NetworkError when attempting to fetch resource."))}const s=fe(e.toString());if(t.method!=="GET"||!x(s)){return Promise.resolve(n("invalid method"))}const i=o();const a=s.size;const A=L(`${a}`);const c=s.type;if(!t.headersList.contains("range",true)){const e=j(s);i.statusText="OK";i.body=e[0];i.headersList.set("content-length",A,true);i.headersList.set("content-type",c,true)}else{i.rangeRequested=true;const e=t.headersList.get("range",true);const r=_(e,true);if(r==="failure"){return Promise.resolve(n("failed to fetch the data URL"))}let{rangeStartValue:o,rangeEndValue:A}=r;if(o===null){o=a-A;A=o+A-1}else{if(o>=a){return Promise.resolve(n("Range start is greater than the blob's size."))}if(A===null||A>=a){A=a-1}}const l=s.slice(o,A,c);const u=j(l);i.body=u[0];const d=L(`${l.size}`);const m=z(o,A,a);i.status=206;i.statusText="Partial Content";i.headersList.set("content-length",d,true);i.headersList.set("content-type",c,true);i.headersList.set("content-range",m,true)}return Promise.resolve(i)}case"data:":{const e=C(t);const r=ce(e);if(r==="failure"){return Promise.resolve(n("failed to fetch the data URL"))}const s=le(r.mimeType);return Promise.resolve(o({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:W(r.body)[0]}))}case"file:":{return Promise.resolve(n("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>n(e)))}default:{return Promise.resolve(n("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){let r=e.timingInfo;const processResponseEndOfBody=()=>{const n=Date.now();if(e.request.destination==="document"){e.controller.fullTimingInfo=r}e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:"){return}r.endTime=n;let s=t.cacheState;const i=t.bodyInfo;if(!t.timingAllowPassed){r=I(r);s=""}let o=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){o=t.status;const e=G(t.headersList);if(e!=="failure"){i.contentType=ue(e)}}if(e.request.initiatorType!=null){ye(r,e.request.url.href,e.request.initiatorType,globalThis,s,i,o)}};const processResponseEndOfBodyTask=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}if(e.request.initiatorType!=null){e.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(e.processResponse!=null){queueMicrotask((()=>{e.processResponse(t);e.processResponse=null}))}const n=t.type==="error"?t:t.internalResponse??t;if(n.body==null){processResponseEndOfBody()}else{se(n.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(e){const t=e.request;let r=null;let s=null;const i=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}s=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&b(t,r)==="failure"){return n("cors failure")}if(h(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&S(t.origin,t.client,t.destination,s)==="blocked"){return n("blocked")}if($.has(s.status)){if(t.redirect!=="manual"){e.controller.connection.destroy(undefined,false)}if(t.redirect==="error"){r=n("unexpected redirect")}else if(t.redirect==="manual"){r=s}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{J(false)}}r.timingInfo=i;return r}function httpRedirectFetch(e,t){const r=e.request;const s=t.internalResponse?t.internalResponse:t;let i;try{i=y(s,C(r).hash);if(i==null){return t}}catch(e){return Promise.resolve(n(e))}if(!U(i)){return Promise.resolve(n("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(n("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(i.username||i.password)&&!D(r,i)){return Promise.resolve(n('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(i.username||i.password)){return Promise.resolve(n('URL cannot contain credentials for request mode "cors"'))}if(s.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(n())}if([301,302].includes(s.status)&&r.method==="POST"||s.status===303&&!ge.includes(r.method)){r.method="GET";r.body=null;for(const e of Z){r.headersList.delete(e)}}if(!D(C(r),i)){r.headersList.delete("authorization",true);r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie",true);r.headersList.delete("host",true)}if(r.body!=null){J(r.body.source!=null);r.body=W(r.body.source)[0]}const o=e.timingInfo;o.redirectEndTime=o.postRedirectStartTime=w(e.crossOriginIsolatedCapability);if(o.redirectStartTime===0){o.redirectStartTime=o.startTime}r.urlList.push(i);E(r,s);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const i=e.request;let o=null;let a=null;let A=null;const c=null;const u=false;if(i.window==="no-window"&&i.redirect==="error"){o=e;a=i}else{a=l(i);o={...e};o.request=a}const d=i.credentials==="include"||i.credentials==="same-origin"&&i.responseTainting==="basic";const m=a.body?a.body.length:null;let p=null;if(a.body==null&&["POST","PUT"].includes(a.method)){p="0"}if(m!=null){p=L(`${m}`)}if(p!=null){a.headersList.append("content-length",p,true)}if(m!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href),true)}f(a);Q(a);if(!a.headersList.contains("user-agent",true)){a.headersList.append("user-agent",he)}if(a.cache==="default"&&(a.headersList.contains("if-modified-since",true)||a.headersList.contains("if-none-match",true)||a.headersList.contains("if-unmodified-since",true)||a.headersList.contains("if-match",true)||a.headersList.contains("if-range",true))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control",true)){a.headersList.append("cache-control","max-age=0",true)}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma",true)){a.headersList.append("pragma","no-cache",true)}if(!a.headersList.contains("cache-control",true)){a.headersList.append("cache-control","no-cache",true)}}if(a.headersList.contains("range",true)){a.headersList.append("accept-encoding","identity",true)}if(!a.headersList.contains("accept-encoding",true)){if(O(C(a))){a.headersList.append("accept-encoding","br, gzip, deflate",true)}else{a.headersList.append("accept-encoding","gzip, deflate",true)}}a.headersList.delete("host",true);if(d){}if(c==null){a.cache="no-store"}if(a.cache!=="no-store"&&a.cache!=="reload"){}if(A==null){if(a.cache==="only-if-cached"){return n("only if cached")}const e=await httpNetworkFetch(o,d,r);if(!X.has(a.method)&&e.status>=200&&e.status<=399){}if(u&&e.status===304){}if(A==null){A=e}}A.urlList=[...a.urlList];if(a.headersList.contains("range",true)){A.rangeRequested=true}A.requestIncludesCredentials=d;if(A.status===407){if(i.window==="no-window"){return n()}if(k(e)){return s(e)}return n("proxy authentication required")}if(A.status===421&&!r&&(i.body==null||i.body.source!=null)){if(k(e)){return s(e)}e.controller.connection.destroy();A=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return A}async function httpNetworkFetch(e,t=false,r=false){J(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e,t=true){if(!this.destroyed){this.destroyed=true;if(t){this.abort?.(e??new DOMException("The operation was aborted.","AbortError"))}}}};const i=e.request;let a=null;const c=e.timingInfo;const l=null;if(l==null){i.cache="no-store"}const d=r?"yes":"no";if(i.mode==="websocket"){}else{}let m=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(k(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(k(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(k(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};m=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:i}=await dispatch({body:m});if(i){a=o({status:r,statusText:n,headersList:s,socket:i})}else{const i=t[Symbol.asyncIterator]();e.controller.next=()=>i.next();a=o({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return s(e,t)}return n(t)}const pullAlgorithm=async()=>{await e.controller.resume()};const cancelAlgorithm=t=>{if(!k(e)){e.controller.abort(t)}};const p=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)},type:"bytes"});a.body={stream:p,source:null,length:null};e.controller.onAborted=onAborted;e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(v(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!c.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){M(e.controller.controller);finalizeResponse(e,a);return}c.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}const n=new Uint8Array(t);if(n.byteLength){e.controller.controller.enqueue(n)}if(oe(p)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0){return}}};function onAborted(t){if(v(e)){a.aborted=true;if(ae(p)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(ae(p)){e.controller.controller.error(new TypeError("terminated",{cause:T(t)?t:undefined}))}}e.controller.connection.destroy()}return a;function dispatch({body:t}){const r=C(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:n.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;c.finalConnectionTimingInfo=H(undefined,c.postRedirectStartTime,e.crossOriginIsolatedCapability);if(r.destroyed){t(new DOMException("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}c.finalNetworkRequestStartTime=w(e.crossOriginIsolatedCapability)},onResponseStarted(){c.finalNetworkResponseStartTime=w(e.crossOriginIsolatedCapability)},onHeaders(e,t,r,n){if(e<200){return}let a="";const c=new A;for(let e=0;er){o(new Error(`too many content-encodings in response: ${t.length}, maximum allowed is ${r}`));return true}for(let e=t.length-1;e>=0;--e){const r=t[e].trim();if(r==="x-gzip"||r==="gzip"){l.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){l.push(q({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}))}else if(r==="br"){l.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}))}else{l.length=0;break}}}const m=this.onError.bind(this);s({status:e,statusText:n,headersList:c,body:l.length?ne(this.body,...l,(e=>{if(e){this.onError(e)}})).on("error",m):this.body.on("error",m)});return true},onData(t){if(e.controller.dump){return}const r=t;c.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}if(e.controller.onAborted){e.controller.off("terminated",e.controller.onAborted)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new A;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:i,bodyUnusable:o}=r(4492);const{Headers:a,fill:A,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:m}=r(660);const{FinalizationRegistry:p}=r(6653)();const g=r(3440);const h=r(7975);const{isValidHTTPToken:f,sameOrigin:y,environmentSettingsObject:C}=r(3168);const{forbiddenMethodsSet:E,corsSafeListedMethodsSet:B,referrerPolicy:I,requestRedirect:Q,requestMode:b,requestCredentials:S,requestCache:N,requestDuplex:w}=r(4495);const{kEnumerableProperty:R,normalizedMethodRecordsBase:x,normalizedMethodRecords:D}=g;const{kHeaders:k,kSignal:v,kState:T,kDispatcher:P}=r(3627);const{webidl:M}=r(5893);const{URLSerializer:L}=r(1900);const{kConstruct:F}=r(6443);const U=r(4589);const{getMaxListeners:O,setMaxListeners:H,getEventListeners:_,defaultMaxListeners:z}=r(8474);const q=Symbol("abortController");const G=new p((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));const V=new WeakMap;function buildAbort(e){return abort;function abort(){const t=e.deref();if(t!==undefined){G.unregister(abort);this.removeEventListener("abort",abort);t.abort(this.reason);const e=V.get(t.signal);if(e!==undefined){if(e.size!==0){for(const t of e){const e=t.deref();if(e!==undefined){e.abort(this.reason)}}e.clear()}V.delete(t.signal)}}}}let Y=false;class Request{constructor(e,t={}){M.util.markAsUncloneable(this);if(e===F){return}const r="Request constructor";M.argumentLengthCheck(arguments,1,r);e=M.converters.RequestInfo(e,r,"input");t=M.converters.RequestInit(t,r,"init");let s=null;let i=null;const u=C.settingsObject.baseUrl;let p=null;if(typeof e==="string"){this[P]=t.dispatcher;let r;try{r=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(r.username||r.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[r]});i="cors"}else{this[P]=t.dispatcher||e[P];U(e instanceof Request);s=e[T];p=e[v]}const h=C.settingsObject.origin;let I="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&y(s.window,h)){I=s.window}if(t.window!=null){throw new TypeError(`'window' option '${I}' must be null`)}if("window"in t){I="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:C.settingsObject,window:I,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const Q=Object.keys(t).length!==0;if(Q){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||h&&!y(t,C.settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let b;if(t.mode!==undefined){b=t.mode}else{b=i}if(b==="navigate"){throw M.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(b!=null){s.mode=b}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;const r=D[e];if(r!==undefined){s.method=r}else{if(!f(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}const t=e.toUpperCase();if(E.has(t)){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=x[t]??e;s.method=e}if(!Y&&s.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Y=true}}if(t.signal!==undefined){p=t.signal}this[T]=s;const S=new AbortController;this[v]=S.signal;if(p!=null){if(!p||typeof p.aborted!=="boolean"||typeof p.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(p.aborted){S.abort(p.reason)}else{this[q]=S;const e=new WeakRef(S);const t=buildAbort(e);try{if(typeof O==="function"&&O(p)===z){H(1500,p)}else if(_(p,"abort").length>=z){H(1500,p)}}catch{}g.addAbortListener(p,t);G.register(S,{signal:p,abort:t},t)}}this[k]=new a(F);d(this[k],s.headersList);l(this[k],"request");if(b==="no-cors"){if(!B.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}l(this[k],"request-no-cors")}if(Q){const e=m(this[k]);const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const{name:t,value:n}of r.rawValues()){e.append(t,n,false)}e.cookies=r.cookies}else{A(this[k],r)}}const N=e instanceof Request?e[T].body:null;if((t.body!=null||N!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let w=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);w=e;if(r&&!m(this[k]).contains("content-type",true)){this[k].append("content-type",r)}}const R=w??N;if(R!=null&&R.source==null){if(w!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let L=R;if(w==null&&N!=null){if(o(e)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const t=new TransformStream;N.stream.pipeThrough(t);L={source:N.source,length:N.length,stream:t.readable}}this[T].body=L}get method(){M.brandCheck(this,Request);return this[T].method}get url(){M.brandCheck(this,Request);return L(this[T].url)}get headers(){M.brandCheck(this,Request);return this[k]}get destination(){M.brandCheck(this,Request);return this[T].destination}get referrer(){M.brandCheck(this,Request);if(this[T].referrer==="no-referrer"){return""}if(this[T].referrer==="client"){return"about:client"}return this[T].referrer.toString()}get referrerPolicy(){M.brandCheck(this,Request);return this[T].referrerPolicy}get mode(){M.brandCheck(this,Request);return this[T].mode}get credentials(){return this[T].credentials}get cache(){M.brandCheck(this,Request);return this[T].cache}get redirect(){M.brandCheck(this,Request);return this[T].redirect}get integrity(){M.brandCheck(this,Request);return this[T].integrity}get keepalive(){M.brandCheck(this,Request);return this[T].keepalive}get isReloadNavigation(){M.brandCheck(this,Request);return this[T].reloadNavigation}get isHistoryNavigation(){M.brandCheck(this,Request);return this[T].historyNavigation}get signal(){M.brandCheck(this,Request);return this[v]}get body(){M.brandCheck(this,Request);return this[T].body?this[T].body.stream:null}get bodyUsed(){M.brandCheck(this,Request);return!!this[T].body&&g.isDisturbed(this[T].body.stream)}get duplex(){M.brandCheck(this,Request);return"half"}clone(){M.brandCheck(this,Request);if(o(this)){throw new TypeError("unusable")}const e=cloneRequest(this[T]);const t=new AbortController;if(this.signal.aborted){t.abort(this.signal.reason)}else{let e=V.get(this.signal);if(e===undefined){e=new Set;V.set(this.signal,e)}const r=new WeakRef(t);e.add(r);g.addAbortListener(t.signal,buildAbort(r))}return fromInnerRequest(e,t.signal,u(this[k]))}[h.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const r={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${h.formatWithOptions(t,r)}`}}s(Request);function makeRequest(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??false,unsafeRequest:e.unsafeRequest??false,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??false,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??false,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??false,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??false,historyNavigation:e.historyNavigation??false,userActivation:e.userActivation??false,taintedOrigin:e.taintedOrigin??false,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??false,done:e.done??false,timingAllowFailed:e.timingAllowFailed??false,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=i(t,e.body)}return t}function fromInnerRequest(e,t,r){const n=new Request(F);n[T]=e;n[v]=t;n[k]=new a(F);d(n[k],e.headersList);l(n[k],r);return n}Object.defineProperties(Request.prototype,{method:R,url:R,headers:R,redirect:R,clone:R,signal:R,duplex:R,destination:R,body:R,bodyUsed:R,isHistoryNavigation:R,isReloadNavigation:R,keepalive:R,integrity:R,cache:R,credentials:R,attribute:R,referrerPolicy:R,referrer:R,mode:R,[Symbol.toStringTag]:{value:"Request",configurable:true}});M.converters.Request=M.interfaceConverter(Request);M.converters.RequestInfo=function(e,t,r){if(typeof e==="string"){return M.converters.USVString(e,t,r)}if(e instanceof Request){return M.converters.Request(e,t,r)}return M.converters.USVString(e,t,r)};M.converters.AbortSignal=M.interfaceConverter(AbortSignal);M.converters.RequestInit=M.dictionaryConverter([{key:"method",converter:M.converters.ByteString},{key:"headers",converter:M.converters.HeadersInit},{key:"body",converter:M.nullableConverter(M.converters.BodyInit)},{key:"referrer",converter:M.converters.USVString},{key:"referrerPolicy",converter:M.converters.DOMString,allowedValues:I},{key:"mode",converter:M.converters.DOMString,allowedValues:b},{key:"credentials",converter:M.converters.DOMString,allowedValues:S},{key:"cache",converter:M.converters.DOMString,allowedValues:N},{key:"redirect",converter:M.converters.DOMString,allowedValues:Q},{key:"integrity",converter:M.converters.DOMString},{key:"keepalive",converter:M.converters.boolean},{key:"signal",converter:M.nullableConverter((e=>M.converters.AbortSignal(e,"RequestInit","signal",{strict:false})))},{key:"window",converter:M.converters.any},{key:"duplex",converter:M.converters.DOMString,allowedValues:w},{key:"dispatcher",converter:M.converters.any}]);e.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:i,getHeadersGuard:o,setHeadersGuard:a,setHeadersList:A}=r(660);const{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:m,bodyUnusable:p}=r(4492);const g=r(3440);const h=r(7975);const{kEnumerableProperty:f}=g;const{isValidReasonPhrase:y,isCancelled:C,isAborted:E,isBlobLike:B,serializeJavascriptValueToJSONString:I,isErrorLike:Q,isomorphicEncode:b,environmentSettingsObject:S}=r(3168);const{redirectStatusSet:N,nullBodyStatus:w}=r(4495);const{kState:R,kHeaders:x}=r(3627);const{webidl:D}=r(5893);const{FormData:k}=r(5910);const{URLSerializer:v}=r(1900);const{kConstruct:T}=r(6443);const P=r(4589);const{types:M}=r(7975);const L=new TextEncoder("utf-8");class Response{static error(){const e=fromInnerResponse(makeNetworkError(),"immutable");return e}static json(e,t={}){D.argumentLengthCheck(arguments,1,"Response.json");if(t!==null){t=D.converters.ResponseInit(t)}const r=L.encode(I(e));const n=c(r);const s=fromInnerResponse(makeResponse({}),"response");initializeResponse(s,t,{body:n[0],type:"application/json"});return s}static redirect(e,t=302){D.argumentLengthCheck(arguments,1,"Response.redirect");e=D.converters.USVString(e);t=D.converters["unsigned short"](t);let r;try{r=new URL(e,S.settingsObject.baseUrl)}catch(t){throw new TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!N.has(t)){throw new RangeError(`Invalid status code ${t}`)}const n=fromInnerResponse(makeResponse({}),"immutable");n[R].status=t;const s=b(v(r));n[R].headersList.append("location",s,true);return n}constructor(e=null,t={}){D.util.markAsUncloneable(this);if(e===T){return}if(e!==null){e=D.converters.BodyInit(e)}t=D.converters.ResponseInit(t);this[R]=makeResponse({});this[x]=new n(T);a(this[x],"response");A(this[x],this[R].headersList);let r=null;if(e!=null){const[t,n]=c(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){D.brandCheck(this,Response);return this[R].type}get url(){D.brandCheck(this,Response);const e=this[R].urlList;const t=e[e.length-1]??null;if(t===null){return""}return v(t,true)}get redirected(){D.brandCheck(this,Response);return this[R].urlList.length>1}get status(){D.brandCheck(this,Response);return this[R].status}get ok(){D.brandCheck(this,Response);return this[R].status>=200&&this[R].status<=299}get statusText(){D.brandCheck(this,Response);return this[R].statusText}get headers(){D.brandCheck(this,Response);return this[x]}get body(){D.brandCheck(this,Response);return this[R].body?this[R].body.stream:null}get bodyUsed(){D.brandCheck(this,Response);return!!this[R].body&&g.isDisturbed(this[R].body.stream)}clone(){D.brandCheck(this,Response);if(p(this)){throw D.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[R]);if(d&&this[R].body?.stream){m.register(this,new WeakRef(this[R].body.stream))}return fromInnerResponse(e,o(this[x]))}[h.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const r={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${h.formatWithOptions(t,r)}`}}u(Response);Object.defineProperties(Response.prototype,{type:f,url:f,status:f,ok:f,redirected:f,statusText:f,headers:f,clone:f,body:f,bodyUsed:f,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:f,redirect:f,error:f});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=l(t,e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new s(e?.headersList):new s,urlList:e?.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=Q(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function isNetworkError(e){return e.type==="error"&&e.status===0}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){P(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{P(false)}}function makeAppropriateNetworkError(e,t=null){P(C(e));return E(e)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!y(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[R].status=t.status}if("statusText"in t&&t.statusText!=null){e[R].statusText=t.statusText}if("headers"in t&&t.headers!=null){i(e[x],t.headers)}if(r){if(w.includes(e.status)){throw D.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`})}e[R].body=r.body;if(r.type!=null&&!e[R].headersList.contains("content-type",true)){e[R].headersList.append("content-type",r.type,true)}}}function fromInnerResponse(e,t){const r=new Response(T);r[R]=e;r[x]=new n(T);A(r[x],e.headersList);a(r[x],t);if(d&&e.body?.stream){m.register(r,new WeakRef(e.body.stream))}return r}D.converters.ReadableStream=D.interfaceConverter(ReadableStream);D.converters.FormData=D.interfaceConverter(k);D.converters.URLSearchParams=D.interfaceConverter(URLSearchParams);D.converters.XMLHttpRequestBodyInit=function(e,t,r){if(typeof e==="string"){return D.converters.USVString(e,t,r)}if(B(e)){return D.converters.Blob(e,t,r,{strict:false})}if(ArrayBuffer.isView(e)||M.isArrayBuffer(e)){return D.converters.BufferSource(e,t,r)}if(g.isFormDataLike(e)){return D.converters.FormData(e,t,r,{strict:false})}if(e instanceof URLSearchParams){return D.converters.URLSearchParams(e,t,r)}return D.converters.DOMString(e,t,r)};D.converters.BodyInit=function(e,t,r){if(e instanceof ReadableStream){return D.converters.ReadableStream(e,t,r)}if(e?.[Symbol.asyncIterator]){return e}return D.converters.XMLHttpRequestBodyInit(e,t,r)};D.converters.ResponseInit=D.dictionaryConverter([{key:"status",converter:D.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:D.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:D.converters.HeadersInit}]);e.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(e,t,r)=>{const{Transform:n}=r(7075);const s=r(8522);const{redirectStatusSet:i,referrerPolicySet:o,badPortsSet:a}=r(4495);const{getGlobalOrigin:A}=r(1059);const{collectASequenceOfCodePoints:c,collectAnHTTPQuotedString:l,removeChars:u,parseMIMEType:d}=r(1900);const{performance:m}=r(643);const{isBlobLike:p,ReadableStreamFrom:g,isValidHTTPToken:h,normalizedMethodRecordsBase:f}=r(3440);const y=r(4589);const{isUint8Array:C}=r(3429);const{webidl:E}=r(5893);let B=[];let I;try{I=r(7598);const e=["sha256","sha384","sha512"];B=I.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!i.has(e.status)){return null}let r=e.headersList.get("location",true);if(r!==null&&isValidHeaderValue(r)){if(!isValidEncodedURL(r)){r=normalizeBinaryStringToUtf8(r)}r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function isValidEncodedURL(e){for(let t=0;t126||r<32){return false}}return true}function normalizeBinaryStringToUtf8(e){return Buffer.from(e,"binary").toString("utf8")}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&a.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}const Q=h;function isValidHeaderValue(e){return(e[0]==="\t"||e[0]===" "||e[e.length-1]==="\t"||e[e.length-1]===" "||e.includes("\n")||e.includes("\r")||e.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(e,t){const{headersList:r}=t;const n=(r.get("referrer-policy",true)??"").split(",");let s="";if(n.length>0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(o.has(t)){s=t;break}}}if(s!==""){e.referrerPolicy=s}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t,true)}function appendRequestOriginHeader(e){let t=e.origin;if(t==="client"||t===undefined){return}if(e.responseTainting==="cors"||e.mode==="websocket"){e.headersList.append("origin",t,true)}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}e.headersList.append("origin",t,true)}}function coarsenTime(e,t){return e}function clampAndCoarsenConnectionTimingInfo(e,t,r){if(!e?.startTime||e.startTime4096){n=s}const i=sameOrigin(e,n);const o=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return o?"no-referrer":s}}function stripURLForReferrer(e,t){y(e instanceof URL);e=new URL(e);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(I===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=I.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const b=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=b.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(B.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function normalizeMethod(e){return f[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}y(typeof t==="string");return t}const S=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(e,t,r=0,n=1){class FastIterableIterator{#V;#Y;#J;constructor(e,t){this.#V=e;this.#Y=t;this.#J=0}next(){if(typeof this!=="object"||this===null||!(#V in this)){throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`)}const s=this.#J;const i=this.#V[t];const o=i.length;if(s>=o){return{value:undefined,done:true}}const{[r]:a,[n]:A}=i[s];this.#J=s+1;let c;switch(this.#Y){case"key":c=a;break;case"value":c=A;break;case"key+value":c=[a,A];break}return{value:c,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,S);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${e} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(e,t){return new FastIterableIterator(e,t)}}function iteratorMixin(e,t,r,n=0,s=1){const i=createIterator(e,r,n,s);const o={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){E.brandCheck(this,t);return i(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){E.brandCheck(this,t);return i(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){E.brandCheck(this,t);return i(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(r,n=globalThis){E.brandCheck(this,t);E.argumentLengthCheck(arguments,1,`${e}.forEach`);if(typeof r!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`)}for(const{0:e,1:t}of i(this,"key+value")){r.call(n,t,e,this)}}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:o.entries.value}})}async function fullyReadBody(e,t,r){const n=t;const s=r;let i;try{i=e.stream.getReader()}catch(e){s(e);return}try{n(await readAllBytes(i))}catch(e){s(e)}}function isReadableStreamLike(e){return e instanceof ReadableStream||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}function readableStreamClose(e){try{e.close();e.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed")){throw e}}}const N=/[^\x00-\xFF]/;function isomorphicEncode(e){y(!N.test(e));return e}async function readAllBytes(e){const t=[];let r=0;while(true){const{done:n,value:s}=await e.read();if(n){return Buffer.concat(t,r)}if(!C(s)){throw new TypeError("Received non-Uint8Array chunk")}t.push(s);r+=s.length}}function urlIsLocal(e){y("protocol"in e);const t=e.protocol;return t==="about:"||t==="blob:"||t==="data:"}function urlHasHttpsScheme(e){return typeof e==="string"&&e[5]===":"&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&e[4]==="s"||e.protocol==="https:"}function urlIsHttpHttpsScheme(e){y("protocol"in e);const t=e.protocol;return t==="http:"||t==="https:"}function simpleRangeHeaderValue(e,t){const r=e;if(!r.startsWith("bytes")){return"failure"}const n={position:5};if(t){c((e=>e==="\t"||e===" "),r,n)}if(r.charCodeAt(n.position)!==61){return"failure"}n.position++;if(t){c((e=>e==="\t"||e===" "),r,n)}const s=c((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),r,n);const i=s.length?Number(s):null;if(t){c((e=>e==="\t"||e===" "),r,n)}if(r.charCodeAt(n.position)!==45){return"failure"}n.position++;if(t){c((e=>e==="\t"||e===" "),r,n)}const o=c((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),r,n);const a=o.length?Number(o):null;if(n.positiona){return"failure"}return{rangeStartValue:i,rangeEndValue:a}}function buildContentRange(e,t,r){let n="bytes ";n+=isomorphicEncode(`${e}`);n+="-";n+=isomorphicEncode(`${t}`);n+="/";n+=isomorphicEncode(`${r}`);return n}class InflateStream extends n{#W;constructor(e){super();this.#W=e}_transform(e,t,r){if(!this._inflateStream){if(e.length===0){r();return}this._inflateStream=(e[0]&15)===8?s.createInflate(this.#W):s.createInflateRaw(this.#W);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(e=>this.destroy(e)))}this._inflateStream.write(e,t,r)}_final(e){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}e()}}function createInflate(e){return new InflateStream(e)}function extractMimeType(e){let t=null;let r=null;let n=null;const s=getDecodeSplit("content-type",e);if(s===null){return"failure"}for(const e of s){const s=d(e);if(s==="failure"||s.essence==="*/*"){continue}n=s;if(n.essence!==r){t=null;if(n.parameters.has("charset")){t=n.parameters.get("charset")}r=n.essence}else if(!n.parameters.has("charset")&&t!==null){n.parameters.set("charset",t)}}if(n==null){return"failure"}return n}function gettingDecodingSplitting(e){const t=e;const r={position:0};const n=[];let s="";while(r.positione!=='"'&&e!==","),t,r);if(r.positione===9||e===32));n.push(s);s=""}return n}function getDecodeSplit(e,t){const r=t.get(e,true);if(r===null){return null}return gettingDecodingSplitting(r)}const w=new TextDecoder;function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=w.decode(e);return t}class EnvironmentSettingsObjectBase{get baseUrl(){return A()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const R=new EnvironmentSettingsObject;e.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:g,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:h,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:p,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:Q,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:R}},5893:(e,t,r)=>{const{types:n,inspect:s}=r(7975);const{markAsUncloneable:i}=r(5919);const{toUSVString:o}=r(3440);const a={};a.converters={};a.util={};a.errors={};a.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};a.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return a.errors.exception({header:e.prefix,message:r})};a.errors.invalidArgument=function(e){return a.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};a.brandCheck=function(e,t,r){if(r?.strict!==false){if(!(e instanceof t)){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}else{if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}};a.argumentLengthCheck=function({length:e},t,r){if(e{});a.util.ConvertToInt=function(e,t,r,n){let s;let i;if(t===64){s=Math.pow(2,53)-1;if(r==="unsigned"){i=0}else{i=Math.pow(-2,53)+1}}else if(r==="unsigned"){i=0;s=Math.pow(2,t)-1}else{i=Math.pow(-2,t)-1;s=Math.pow(2,t-1)-1}let o=Number(e);if(o===0){o=0}if(n?.enforceRange===true){if(Number.isNaN(o)||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY){throw a.errors.exception({header:"Integer conversion",message:`Could not convert ${a.util.Stringify(e)} to an integer.`})}o=a.util.IntegerPart(o);if(os){throw a.errors.exception({header:"Integer conversion",message:`Value must be between ${i}-${s}, got ${o}.`})}return o}if(!Number.isNaN(o)&&n?.clamp===true){o=Math.min(Math.max(o,i),s);if(Math.floor(o)%2===0){o=Math.floor(o)}else{o=Math.ceil(o)}return o}if(Number.isNaN(o)||o===0&&Object.is(0,o)||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY){return 0}o=a.util.IntegerPart(o);o=o%Math.pow(2,t);if(r==="signed"&&o>=Math.pow(2,t)-1){return o-Math.pow(2,t)}return o};a.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};a.util.Stringify=function(e){const t=a.util.Type(e);switch(t){case"Symbol":return`Symbol(${e.description})`;case"Object":return s(e);case"String":return`"${e}"`;default:return`${e}`}};a.sequenceConverter=function(e){return(t,r,n,s)=>{if(a.util.Type(t)!=="Object"){throw a.errors.exception({header:r,message:`${n} (${a.util.Stringify(t)}) is not iterable.`})}const i=typeof s==="function"?s():t?.[Symbol.iterator]?.();const o=[];let A=0;if(i===undefined||typeof i.next!=="function"){throw a.errors.exception({header:r,message:`${n} is not iterable.`})}while(true){const{done:t,value:s}=i.next();if(t){break}o.push(e(s,r,`${n}[${A++}]`))}return o}};a.recordConverter=function(e,t){return(r,s,i)=>{if(a.util.Type(r)!=="Object"){throw a.errors.exception({header:s,message:`${i} ("${a.util.Type(r)}") is not an Object.`})}const o={};if(!n.isProxy(r)){const n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const a of n){const n=e(a,s,i);const A=t(r[a],s,i);o[n]=A}return o}const A=Reflect.ownKeys(r);for(const n of A){const a=Reflect.getOwnPropertyDescriptor(r,n);if(a?.enumerable){const a=e(n,s,i);const A=t(r[n],s,i);o[a]=A}}return o}};a.interfaceConverter=function(e){return(t,r,n,s)=>{if(s?.strict!==false&&!(t instanceof e)){throw a.errors.exception({header:r,message:`Expected ${n} ("${a.util.Stringify(t)}") to be an instance of ${e.name}.`})}return t}};a.dictionaryConverter=function(e){return(t,r,n)=>{const s=a.util.Type(t);const i={};if(s==="Null"||s==="Undefined"){return i}else if(s!=="Object"){throw a.errors.exception({header:r,message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const s of e){const{key:e,defaultValue:o,required:A,converter:c}=s;if(A===true){if(!Object.hasOwn(t,e)){throw a.errors.exception({header:r,message:`Missing required key "${e}".`})}}let l=t[e];const u=Object.hasOwn(s,"defaultValue");if(u&&l!==null){l??=o()}if(A||u||l!==undefined){l=c(l,r,`${n}.${e}`);if(s.allowedValues&&!s.allowedValues.includes(l)){throw a.errors.exception({header:r,message:`${l} is not an accepted type. Expected one of ${s.allowedValues.join(", ")}.`})}i[e]=l}}return i}};a.nullableConverter=function(e){return(t,r,n)=>{if(t===null){return t}return e(t,r,n)}};a.converters.DOMString=function(e,t,r,n){if(e===null&&n?.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw a.errors.exception({header:t,message:`${r} is a symbol, which cannot be converted to a DOMString.`})}return String(e)};a.converters.ByteString=function(e,t,r){const n=a.converters.DOMString(e,t,r);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${n.charCodeAt(e)} which is greater than 255.`)}}return n};a.converters.USVString=o;a.converters.boolean=function(e){const t=Boolean(e);return t};a.converters.any=function(e){return e};a.converters["long long"]=function(e,t,r){const n=a.util.ConvertToInt(e,64,"signed",undefined,t,r);return n};a.converters["unsigned long long"]=function(e,t,r){const n=a.util.ConvertToInt(e,64,"unsigned",undefined,t,r);return n};a.converters["unsigned long"]=function(e,t,r){const n=a.util.ConvertToInt(e,32,"unsigned",undefined,t,r);return n};a.converters["unsigned short"]=function(e,t,r,n){const s=a.util.ConvertToInt(e,16,"unsigned",n,t,r);return s};a.converters.ArrayBuffer=function(e,t,r,s){if(a.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw a.errors.conversionFailed({prefix:t,argument:`${r} ("${a.util.Stringify(e)}")`,types:["ArrayBuffer"]})}if(s?.allowShared===false&&n.isSharedArrayBuffer(e)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.resizable||e.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.TypedArray=function(e,t,r,s,i){if(a.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw a.errors.conversionFailed({prefix:r,argument:`${s} ("${a.util.Stringify(e)}")`,types:[t.name]})}if(i?.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.DataView=function(e,t,r,s){if(a.util.Type(e)!=="Object"||!n.isDataView(e)){throw a.errors.exception({header:t,message:`${r} is not a DataView.`})}if(s?.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.BufferSource=function(e,t,r,s){if(n.isAnyArrayBuffer(e)){return a.converters.ArrayBuffer(e,t,r,{...s,allowShared:false})}if(n.isTypedArray(e)){return a.converters.TypedArray(e,e.constructor,t,r,{...s,allowShared:false})}if(n.isDataView(e)){return a.converters.DataView(e,t,r,{...s,allowShared:false})}throw a.errors.conversionFailed({prefix:t,argument:`${r} ("${a.util.Stringify(e)}")`,types:["BufferSource"]})};a.converters["sequence"]=a.sequenceConverter(a.converters.ByteString);a.converters["sequence>"]=a.sequenceConverter(a.converters["sequence"]);a.converters["record"]=a.recordConverter(a.converters.ByteString,a.converters.ByteString);e.exports={webidl:a}},2607:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},8355:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:i}=r(3610);const{kState:o,kError:a,kResult:A,kEvents:c,kAborted:l}=r(961);const{webidl:u}=r(5893);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[o]="empty";this[A]=null;this[a]=null;this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");e=u.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");e=u.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsText");e=u.converters.Blob(e,{strict:false});if(t!==undefined){t=u.converters.DOMString(t,"FileReader.readAsText","encoding")}s(this,e,"Text",t)}readAsDataURL(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");e=u.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[o]==="empty"||this[o]==="done"){this[A]=null;return}if(this[o]==="loading"){this[o]="done";this[A]=null}this[l]=true;i("abort",this);if(this[o]!=="loading"){i("loadend",this)}}get readyState(){u.brandCheck(this,FileReader);switch(this[o]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){u.brandCheck(this,FileReader);return this[A]}get error(){u.brandCheck(this,FileReader);return this[a]}get onloadend(){u.brandCheck(this,FileReader);return this[c].loadend}set onloadend(e){u.brandCheck(this,FileReader);if(this[c].loadend){this.removeEventListener("loadend",this[c].loadend)}if(typeof e==="function"){this[c].loadend=e;this.addEventListener("loadend",e)}else{this[c].loadend=null}}get onerror(){u.brandCheck(this,FileReader);return this[c].error}set onerror(e){u.brandCheck(this,FileReader);if(this[c].error){this.removeEventListener("error",this[c].error)}if(typeof e==="function"){this[c].error=e;this.addEventListener("error",e)}else{this[c].error=null}}get onloadstart(){u.brandCheck(this,FileReader);return this[c].loadstart}set onloadstart(e){u.brandCheck(this,FileReader);if(this[c].loadstart){this.removeEventListener("loadstart",this[c].loadstart)}if(typeof e==="function"){this[c].loadstart=e;this.addEventListener("loadstart",e)}else{this[c].loadstart=null}}get onprogress(){u.brandCheck(this,FileReader);return this[c].progress}set onprogress(e){u.brandCheck(this,FileReader);if(this[c].progress){this.removeEventListener("progress",this[c].progress)}if(typeof e==="function"){this[c].progress=e;this.addEventListener("progress",e)}else{this[c].progress=null}}get onload(){u.brandCheck(this,FileReader);return this[c].load}set onload(e){u.brandCheck(this,FileReader);if(this[c].load){this.removeEventListener("load",this[c].load)}if(typeof e==="function"){this[c].load=e;this.addEventListener("load",e)}else{this[c].load=null}}get onabort(){u.brandCheck(this,FileReader);return this[c].abort}set onabort(e){u.brandCheck(this,FileReader);if(this[c].abort){this.removeEventListener("abort",this[c].abort)}if(typeof e==="function"){this[c].abort=e;this.addEventListener("abort",e)}else{this[c].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},8573:(e,t,r)=>{const{webidl:n}=r(5893);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e,"ProgressEvent constructor","type");t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:n.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:n.converters.boolean,defaultValue:()=>false},{key:"composed",converter:n.converters.boolean,defaultValue:()=>false}]);e.exports={ProgressEvent:ProgressEvent}},961:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(e,t,r)=>{const{kState:n,kError:s,kResult:i,kAborted:o,kLastProgressEventFired:a}=r(961);const{ProgressEvent:A}=r(8573);const{getEncoding:c}=r(2607);const{serializeAMimeType:l,parseMIMEType:u}=r(1900);const{types:d}=r(7975);const{StringDecoder:m}=r(3193);const{btoa:p}=r(4573);const g={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,A){if(e[n]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}e[n]="loading";e[i]=null;e[s]=null;const c=t.stream();const l=c.getReader();const u=[];let m=l.read();let p=true;(async()=>{while(!e[o]){try{const{done:c,value:g}=await m;if(p&&!e[o]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}p=false;if(!c&&d.isUint8Array(g)){u.push(g);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[o]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}m=l.read()}else if(c){queueMicrotask((()=>{e[n]="done";try{const n=packageData(u,r,t.type,A);if(e[o]){return}e[i]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[o]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new A(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=u(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new m("latin1");for(const r of e){t+=p(s.write(r))}t+=p(s.end());return t}case"Text":{let t="failure";if(n){t=c(n)}if(t==="failure"&&r){const e=u(r);if(e!=="failure"){t=c(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new m("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const i=r.slice(s);return new TextDecoder(t).decode(i)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:g,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(e,t,r)=>{const{uid:n,states:s,sentCloseFrameState:i,emptyBuffer:o,opcodes:a}=r(736);const{kReadyState:A,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=r(1216);const{fireEvent:m,failWebsocketConnection:p,isClosing:g,isClosed:h,isEstablished:f,parseExtensions:y}=r(8625);const{channels:C}=r(2414);const{CloseEvent:E}=r(5188);const{makeRequest:B}=r(9967);const{fetching:I}=r(4398);const{Headers:Q,getHeadersList:b}=r(660);const{getDecodeSplit:S}=r(3168);const{WebsocketFrameSend:N}=r(3264);let w;try{w=r(7598)}catch{}function establishWebSocketConnection(e,t,r,s,i,o){const a=e;a.protocol=e.protocol==="ws:"?"http:":"https:";const A=B({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=b(new Q(o.headers));A.headersList=e}const c=w.randomBytes(16).toString("base64");A.headersList.append("sec-websocket-key",c);A.headersList.append("sec-websocket-version","13");for(const e of t){A.headersList.append("sec-websocket-protocol",e)}const l="permessage-deflate; client_max_window_bits";A.headersList.append("sec-websocket-extensions",l);const u=I({request:A,useParallelQueue:true,dispatcher:o.dispatcher,processResponse(e){if(e.type==="error"||e.status!==101){p(s,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){p(s,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){p(s,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){p(s,'Server did not set Connection header to "upgrade".');return}const r=e.headersList.get("Sec-WebSocket-Accept");const o=w.createHash("sha1").update(c+n).digest("base64");if(r!==o){p(s,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const a=e.headersList.get("Sec-WebSocket-Extensions");let l;if(a!==null){l=y(a);if(!l.has("permessage-deflate")){p(s,"Sec-WebSocket-Extensions header does not match.");return}}const u=e.headersList.get("Sec-WebSocket-Protocol");if(u!==null){const e=S("sec-websocket-protocol",A.headersList);if(!e.includes(u)){p(s,"Protocol was not set in the opening handshake.");return}}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(C.open.hasSubscribers){C.open.publish({address:e.socket.address(),protocol:u,extensions:a})}i(e,l)}});return u}function closeWebSocketConnection(e,t,r,n){if(g(e)||h(e)){}else if(!f(e)){p(e,"Connection was closed before it was established.");e[A]=s.CLOSING}else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;const l=new N;if(t!==undefined&&r===undefined){l.frameData=Buffer.allocUnsafe(2);l.frameData.writeUInt16BE(t,0)}else if(t!==undefined&&r!==undefined){l.frameData=Buffer.allocUnsafe(2+n);l.frameData.writeUInt16BE(t,0);l.frameData.write(r,2,"utf-8")}else{l.frameData=o}const u=e[d].socket;u.write(l.createFrame(a.CLOSE));e[c]=i.SENT;e[A]=s.CLOSING}else{e[A]=s.CLOSING}}function onSocketData(e){if(!this.ws[l].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const{[d]:t}=e;t.socket.off("data",onSocketData);t.socket.off("close",onSocketClose);t.socket.off("error",onSocketError);const r=e[c]===i.SENT&&e[u];let n=1005;let o="";const a=e[l].closingInfo;if(a&&!a.error){n=a.code??1005;o=a.reason}else if(!e[u]){n=1006}e[A]=s.CLOSED;m("close",e,((e,t)=>new E(e,t)),{wasClean:r,code:n,reason:o});if(C.close.hasSubscribers){C.close.publish({websocket:e,code:n,reason:o})}}function onSocketError(e){const{ws:t}=this;t[A]=s.CLOSING;if(C.socketError.hasSubscribers){C.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={NOT_SENT:0,PROCESSING:1,SENT:2};const i={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const a={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const A=Buffer.allocUnsafe(0);const c={string:1,typedArray:2,arrayBuffer:3,blob:4};e.exports={uid:t,sentCloseFrameState:s,staticPropertyDescriptors:r,states:n,opcodes:i,maxUnsigned16Bit:o,parserStates:a,emptyBuffer:A,sendHints:c}},5188:(e,t,r)=>{const{webidl:n}=r(5893);const{kEnumerableProperty:s}=r(3440);const{kConstruct:i}=r(6443);const{MessagePort:o}=r(5919);class MessageEvent extends Event{#j;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]);n.util.markAsUncloneable(this);return}const r="MessageEvent constructor";n.argumentLengthCheck(arguments,1,r);e=n.converters.DOMString(e,r,"type");t=n.converters.MessageEventInit(t,r,"eventInitDict");super(e,t);this.#j=t;n.util.markAsUncloneable(this)}get data(){n.brandCheck(this,MessageEvent);return this.#j.data}get origin(){n.brandCheck(this,MessageEvent);return this.#j.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#j.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#j.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#j.ports)){Object.freeze(this.#j.ports)}return this.#j.ports}initMessageEvent(e,t=false,r=false,s=null,i="",o="",a=null,A=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:i,lastEventId:o,source:a,ports:A})}static createFastMessageEvent(e,t){const r=new MessageEvent(i,e,t);r.#j=t;r.#j.data??=null;r.#j.origin??="";r.#j.lastEventId??="";r.#j.source??=null;r.#j.ports??=[];return r}}const{createFastMessageEvent:a}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#j;constructor(e,t={}){const r="CloseEvent constructor";n.argumentLengthCheck(arguments,1,r);e=n.converters.DOMString(e,r,"type");t=n.converters.CloseEventInit(t);super(e,t);this.#j=t;n.util.markAsUncloneable(this)}get wasClean(){n.brandCheck(this,CloseEvent);return this.#j.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#j.code}get reason(){n.brandCheck(this,CloseEvent);return this.#j.reason}}class ErrorEvent extends Event{#j;constructor(e,t){const r="ErrorEvent constructor";n.argumentLengthCheck(arguments,1,r);super(e,t);n.util.markAsUncloneable(this);e=n.converters.DOMString(e,r,"type");t=n.converters.ErrorEventInit(t??{});this.#j=t}get message(){n.brandCheck(this,ErrorEvent);return this.#j.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#j.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#j.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#j.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#j.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const A=[{key:"bubbles",converter:n.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:n.converters.boolean,defaultValue:()=>false},{key:"composed",converter:n.converters.boolean,defaultValue:()=>false}];n.converters.MessageEventInit=n.dictionaryConverter([...A,{key:"data",converter:n.converters.any,defaultValue:()=>null},{key:"origin",converter:n.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:()=>""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:n.converters["sequence"],defaultValue:()=>new Array(0)}]);n.converters.CloseEventInit=n.dictionaryConverter([...A,{key:"wasClean",converter:n.converters.boolean,defaultValue:()=>false},{key:"code",converter:n.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:n.converters.USVString,defaultValue:()=>""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...A,{key:"message",converter:n.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:n.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:a}},3264:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(736);const s=16386;let i;let o=null;let a=s;try{i=r(7598)}catch{i={randomFillSync:function randomFillSync(e,t,r){for(let t=0;tn){o+=8;i=127}else if(s>125){o+=2;i=126}const a=Buffer.allocUnsafe(s+o);a[0]=a[1]=0;a[0]|=128;a[0]=(a[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:i}=r(8625);const{MessageSizeExceededError:o}=r(8707);const a=Buffer.from([0,0,255,255]);const A=Symbol("kBuffer");const c=Symbol("kLength");const l=4*1024*1024;class PerMessageDeflate{#$;#m={};#S=false;#K=null;constructor(e){this.#m.serverNoContextTakeover=e.has("server_no_context_takeover");this.#m.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#S){r(new o);return}if(!this.#$){let e=s;if(this.#m.serverMaxWindowBits){if(!i(this.#m.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#m.serverMaxWindowBits)}try{this.#$=n({windowBits:e})}catch(e){r(e);return}this.#$[A]=[];this.#$[c]=0;this.#$.on("data",(e=>{if(this.#S){return}this.#$[c]+=e.length;if(this.#$[c]>l){this.#S=true;this.#$.removeAllListeners();this.#$.destroy();this.#$=null;if(this.#K){const e=this.#K;this.#K=null;e(new o)}return}this.#$[A].push(e)}));this.#$.on("error",(e=>{this.#$=null;r(e)}))}this.#K=r;this.#$.write(e);if(t){this.#$.write(a)}this.#$.flush((()=>{if(this.#S||!this.#$){return}const e=Buffer.concat(this.#$[A],this.#$[c]);this.#$[A].length=0;this.#$[c]=0;this.#K=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:A,sentCloseFrameState:c}=r(736);const{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:m}=r(1216);const{channels:p}=r(2414);const{isValidStatusCode:g,isValidOpcode:h,failWebsocketConnection:f,websocketMessageReceived:y,utf8Decode:C,isControlFrame:E,isTextBinaryFrame:B,isContinuationFrame:I}=r(8625);const{WebsocketFrameSend:Q}=r(3264);const{closeWebSocketConnection:b}=r(6897);const{PerMessageDeflate:S}=r(9469);class ByteParser extends n{#X=[];#Z=0;#ee=false;#E=i.INFO;#te={};#re=[];#ne;constructor(e,t){super();this.ws=e;this.#ne=t==null?new Map:t;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new S(t))}}_write(e,t,r){this.#X.push(e);this.#Z+=e.length;this.#ee=true;this.run(r)}run(e){while(this.#ee){if(this.#E===i.INFO){if(this.#Z<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const A=t[1]&127;const c=t[0]&64;const l=t[0]&32;const u=t[0]&16;if(!h(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(c!==0&&!this.#ne.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(l!==0||u!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!B(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(B(n)&&this.#re.length>0){f(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((A>125||a)&&E(n)){f(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#re.length===0&&!this.#te.compressed){f(this.ws,"Unexpected continuation frame");return}if(A<=125){this.#te.payloadLength=A;this.#E=i.READ_DATA}else if(A===126){this.#E=i.PAYLOADLENGTH_16}else if(A===127){this.#E=i.PAYLOADLENGTH_64}if(B(n)){this.#te.binaryType=n;this.#te.compressed=c!==0}this.#te.opcode=n;this.#te.masked=s;this.#te.fin=r;this.#te.fragmented=a}else if(this.#E===i.PAYLOADLENGTH_16){if(this.#Z<2){return e()}const t=this.consume(2);this.#te.payloadLength=t.readUInt16BE(0);this.#E=i.READ_DATA}else if(this.#E===i.PAYLOADLENGTH_64){if(this.#Z<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=n;this.#E=i.READ_DATA}else if(this.#E===i.READ_DATA){if(this.#Z{if(t){f(this.ws,t.message);return}this.#re.push(r);if(!this.#te.fin){this.#E=i.INFO;this.#ee=true;this.run(e);return}y(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#E=i.INFO;this.#re.length=0;this.run(e)}));this.#ee=false;break}}}}}consume(e){if(e>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return A}if(this.#X[0].length===e){this.#Z-=this.#X[0].length;return this.#X.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#X[0];const{length:s}=n;if(s+r===e){t.set(this.#X.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#X[0]=n.subarray(e-r);break}else{t.set(this.#X.shift(),r);r+=n.length}}this.#Z-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!g(t)){return{code:1002,reason:"Invalid status code",error:true}}let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}try{r=C(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:r,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:r}=this.#te;if(t===o.CLOSE){if(r===1){f(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(e);if(this.#te.closeInfo.error){const{code:e,reason:t}=this.#te.closeInfo;b(this.ws,e,t,t.length);f(this.ws,t);return false}if(this.ws[u]!==c.SENT){let e=A;if(this.#te.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#te.closeInfo.code,0)}const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.CLOSE),(e=>{if(!e){this.ws[u]=c.SENT}}))}this.ws[l]=a.CLOSING;this.ws[m]=true;return false}else if(t===o.PING){if(!this.ws[m]){const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.PONG));if(p.ping.hasSubscribers){p.ping.publish({payload:e})}}}else if(t===o.PONG){if(p.pong.hasSubscribers){p.pong.publish({payload:e})}}return true}get closingInfo(){return this.#te.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,r)=>{const{WebsocketFrameSend:n}=r(3264);const{opcodes:s,sendHints:i}=r(736);const o=r(4660);const a=Buffer[Symbol.species];class SendQueue{#se=new o;#ie=false;#oe;constructor(e){this.#oe=e}add(e,t,r){if(r!==i.blob){const n=createFrame(e,r);if(!this.#ie){this.#oe.write(n,t)}else{const e={promise:null,callback:t,frame:n};this.#se.push(e)}return}const n={promise:e.arrayBuffer().then((e=>{n.promise=null;n.frame=createFrame(e,r)})),callback:t,frame:null};this.#se.push(n);if(!this.#ie){this.#ae()}}async#ae(){this.#ie=true;const e=this.#se;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#ie=false}}function createFrame(e,t){return new n(toBuffer(e,t)).createFrame(t===i.string?s.TEXT:s.BINARY)}function toBuffer(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new a(e);case i.typedArray:return new a(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:i,kBinaryType:o,kWebSocketURL:a}=r(1216);const{states:A,opcodes:c}=r(736);const{ErrorEvent:l,createFastMessageEvent:u}=r(5188);const{isUtf8:d}=r(4573);const{collectASequenceOfCodePointsFast:m,removeHTTPWhitespace:p}=r(1900);function isConnecting(e){return e[n]===A.CONNECTING}function isEstablished(e){return e[n]===A.OPEN}function isClosing(e){return e[n]===A.CLOSING}function isClosed(e){return e[n]===A.CLOSED}function fireEvent(e,t,r=(e,t)=>new Event(e,t),n={}){const s=r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==A.OPEN){return}let s;if(t===c.TEXT){try{s=f(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===c.BINARY){if(e[o]==="blob"){s=new Blob([r])}else{s=toArrayBuffer(r)}}fireEvent("message",e,u,{origin:e[a].origin,data:s})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[i]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new l(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function isContinuationFrame(e){return e===c.CONTINUATION}function isTextBinaryFrame(e){return e===c.TEXT||e===c.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const r=new Map;while(t.position57){return false}}const t=Number.parseInt(e,10);return t>=8&&t<=15}const g=typeof process.versions.icu==="string";const h=g?new TextDecoder("utf-8",{fatal:true}):undefined;const f=g?h.decode.bind(h):function(e){if(d(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:f,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,r)=>{const{webidl:n}=r(5893);const{URLSerializer:s}=r(1900);const{environmentSettingsObject:i}=r(3168);const{staticPropertyDescriptors:o,states:a,sentCloseFrameState:A,sendHints:c}=r(736);const{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:m,kResponse:p,kSentClose:g,kByteParser:h}=r(1216);const{isConnecting:f,isEstablished:y,isClosing:C,isValidSubprotocol:E,fireEvent:B}=r(8625);const{establishWebSocketConnection:I,closeWebSocketConnection:Q}=r(6897);const{ByteParser:b}=r(1652);const{kEnumerableProperty:S,isBlobLike:N}=r(3440);const{getGlobalDispatcher:w}=r(2581);const{types:R}=r(7975);const{ErrorEvent:x,CloseEvent:D}=r(5188);const{SendQueue:k}=r(3900);class WebSocket extends EventTarget{#M={open:null,error:null,close:null,message:null};#Ae=0;#ce="";#ne="";#le;constructor(e,t=[]){super();n.util.markAsUncloneable(this);const r="WebSocket constructor";n.argumentLengthCheck(arguments,1,r);const s=n.converters["DOMString or sequence or WebSocketInit"](t,r,"options");e=n.converters.USVString(e,r,"url");t=s.protocols;const o=i.settingsObject.baseUrl;let a;try{a=new URL(e,o)}catch(e){throw new DOMException(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>E(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);const c=i.settingsObject;this[d]=I(a,t,c,this,((e,t)=>this.#ue(e,t)),s);this[u]=WebSocket.CONNECTING;this[g]=A.NOT_SENT;this[m]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);const r="WebSocket.close";if(e!==undefined){e=n.converters["unsigned short"](e,r,"code",{clamp:true})}if(t!==undefined){t=n.converters.USVString(t,r,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let s=0;if(t!==undefined){s=Buffer.byteLength(t);if(s>123){throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError")}}Q(this,e,t,s)}send(e){n.brandCheck(this,WebSocket);const t="WebSocket.send";n.argumentLengthCheck(arguments,1,t);e=n.converters.WebSocketSendData(e,t,"data");if(f(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!y(this)||C(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#Ae+=t;this.#le.add(e,(()=>{this.#Ae-=t}),c.string)}else if(R.isArrayBuffer(e)){this.#Ae+=e.byteLength;this.#le.add(e,(()=>{this.#Ae-=e.byteLength}),c.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#Ae+=e.byteLength;this.#le.add(e,(()=>{this.#Ae-=e.byteLength}),c.typedArray)}else if(N(e)){this.#Ae+=e.size;this.#le.add(e,(()=>{this.#Ae-=e.size}),c.blob)}}get readyState(){n.brandCheck(this,WebSocket);return this[u]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#Ae}get url(){n.brandCheck(this,WebSocket);return s(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#ne}get protocol(){n.brandCheck(this,WebSocket);return this.#ce}get onopen(){n.brandCheck(this,WebSocket);return this.#M.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#M.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#M.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#M.close){this.removeEventListener("close",this.#M.close)}if(typeof e==="function"){this.#M.close=e;this.addEventListener("close",e)}else{this.#M.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#M.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[m]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[m]="blob"}else{this[m]=e}}#ue(e,t){this[p]=e;const r=new b(this,t);r.on("drain",onParserDrain);r.on("error",onParserError.bind(this));e.socket.ws=this;this[h]=r;this.#le=new k(e.socket);this[u]=a.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#ne=n}const s=e.headersList.get("sec-websocket-protocol");if(s!==null){this.#ce=s}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=a.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=a.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=a.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=a.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:S,readyState:S,bufferedAmount:S,onopen:S,onerror:S,onclose:S,close:S,onmessage:S,binaryType:S,send:S,extensions:S,protocol:S,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e,t,r){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e,t,r)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:n.converters.any,defaultValue:()=>w()},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(N(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||R.isArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};function onParserDrain(){this.ws[p].socket.resume()}function onParserError(e){let t;let r;if(e instanceof D){t=e.reason;r=e.code}else{t=e.message}B("error",this,(()=>new x("error",{error:e,message:t})));Q(this,r)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},7030:t=>{t.exports=e(import.meta.url)("node:net")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},8658:(e,t,r)=>{const n=r(4012);e.exports={version:n.version}},5901:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(3838);var s=r(8949);const i=["wordpress","wordpress-tests-lib"];async function run(){const e=(0,n.Gu)("ok_to_save_cache");if(e!=="yes"){(0,n.$e)(`⚠️ Something went wrong, not saving cache`);return}for(const e of i){const t=(0,n.Gu)(`dir_${e}`);const r=(0,n.Gu)(`cache_key_${e}`);if(t&&r){(0,n.pq)(`ℹ️ Saving ${e} cache with the key of ${r}`);try{process.env.GITHUB_WORKSPACE=t;process.chdir(t);await(0,s.Io)([e],r)}catch(t){(0,n.$e)(`⚠️ Failed to save cache for ${e}: ${t.message}`)}}}}await run();t()}catch(o){t(o)}}),1)},8949:(t,r,n)=>{n.d(r,{Io:()=>cache_saveCache});var s={};n.r(s);n.d(s,{AccessPolicy:()=>bs,AppendBlobAppendBlockExceptionHeaders:()=>aa,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ca,AppendBlobAppendBlockFromUrlHeaders:()=>Aa,AppendBlobAppendBlockHeaders:()=>oa,AppendBlobCreateExceptionHeaders:()=>ia,AppendBlobCreateHeaders:()=>sa,AppendBlobSealExceptionHeaders:()=>ua,AppendBlobSealHeaders:()=>la,ArrowConfiguration:()=>Gs,ArrowField:()=>Vs,BlobAbortCopyFromURLExceptionHeaders:()=>xo,BlobAbortCopyFromURLHeaders:()=>Ro,BlobAcquireLeaseExceptionHeaders:()=>mo,BlobAcquireLeaseHeaders:()=>uo,BlobBreakLeaseExceptionHeaders:()=>Bo,BlobBreakLeaseHeaders:()=>Eo,BlobChangeLeaseExceptionHeaders:()=>Co,BlobChangeLeaseHeaders:()=>yo,BlobCopyFromURLExceptionHeaders:()=>wo,BlobCopyFromURLHeaders:()=>No,BlobCreateSnapshotExceptionHeaders:()=>Qo,BlobCreateSnapshotHeaders:()=>Io,BlobDeleteExceptionHeaders:()=>ji,BlobDeleteHeaders:()=>Wi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>oo,BlobDeleteImmutabilityPolicyHeaders:()=>so,BlobDownloadExceptionHeaders:()=>Vi,BlobDownloadHeaders:()=>Gi,BlobFlatListSegment:()=>Ns,BlobGetAccountInfoExceptionHeaders:()=>To,BlobGetAccountInfoHeaders:()=>vo,BlobGetPropertiesExceptionHeaders:()=>Ji,BlobGetPropertiesHeaders:()=>Yi,BlobGetTagsExceptionHeaders:()=>Fo,BlobGetTagsHeaders:()=>Lo,BlobHierarchyListSegment:()=>ks,BlobItemInternal:()=>ws,BlobName:()=>Rs,BlobPrefix:()=>vs,BlobPropertiesInternal:()=>xs,BlobQueryExceptionHeaders:()=>Mo,BlobQueryHeaders:()=>Po,BlobReleaseLeaseExceptionHeaders:()=>go,BlobReleaseLeaseHeaders:()=>po,BlobRenewLeaseExceptionHeaders:()=>fo,BlobRenewLeaseHeaders:()=>ho,BlobServiceProperties:()=>rs,BlobServiceStatistics:()=>us,BlobSetExpiryExceptionHeaders:()=>Zi,BlobSetExpiryHeaders:()=>Xi,BlobSetHttpHeadersExceptionHeaders:()=>to,BlobSetHttpHeadersHeaders:()=>eo,BlobSetImmutabilityPolicyExceptionHeaders:()=>no,BlobSetImmutabilityPolicyHeaders:()=>ro,BlobSetLegalHoldExceptionHeaders:()=>Ao,BlobSetLegalHoldHeaders:()=>ao,BlobSetMetadataExceptionHeaders:()=>lo,BlobSetMetadataHeaders:()=>co,BlobSetTagsExceptionHeaders:()=>Oo,BlobSetTagsHeaders:()=>Uo,BlobSetTierExceptionHeaders:()=>ko,BlobSetTierHeaders:()=>Do,BlobStartCopyFromURLExceptionHeaders:()=>So,BlobStartCopyFromURLHeaders:()=>bo,BlobTag:()=>Is,BlobTags:()=>Bs,BlobUndeleteExceptionHeaders:()=>Ki,BlobUndeleteHeaders:()=>$i,Block:()=>Ms,BlockBlobCommitBlockListExceptionHeaders:()=>Ba,BlockBlobCommitBlockListHeaders:()=>Ea,BlockBlobGetBlockListExceptionHeaders:()=>Qa,BlockBlobGetBlockListHeaders:()=>Ia,BlockBlobPutBlobFromUrlExceptionHeaders:()=>ga,BlockBlobPutBlobFromUrlHeaders:()=>pa,BlockBlobStageBlockExceptionHeaders:()=>fa,BlockBlobStageBlockFromURLExceptionHeaders:()=>Ca,BlockBlobStageBlockFromURLHeaders:()=>ya,BlockBlobStageBlockHeaders:()=>ha,BlockBlobUploadExceptionHeaders:()=>ma,BlockBlobUploadHeaders:()=>da,BlockList:()=>Ps,BlockLookupList:()=>Ts,ClearRange:()=>Us,ContainerAcquireLeaseExceptionHeaders:()=>xi,ContainerAcquireLeaseHeaders:()=>Ri,ContainerBreakLeaseExceptionHeaders:()=>Mi,ContainerBreakLeaseHeaders:()=>Pi,ContainerChangeLeaseExceptionHeaders:()=>Fi,ContainerChangeLeaseHeaders:()=>Li,ContainerCreateExceptionHeaders:()=>ci,ContainerCreateHeaders:()=>Ai,ContainerDeleteExceptionHeaders:()=>mi,ContainerDeleteHeaders:()=>di,ContainerFilterBlobsExceptionHeaders:()=>wi,ContainerFilterBlobsHeaders:()=>Ni,ContainerGetAccessPolicyExceptionHeaders:()=>fi,ContainerGetAccessPolicyHeaders:()=>hi,ContainerGetAccountInfoExceptionHeaders:()=>qi,ContainerGetAccountInfoHeaders:()=>zi,ContainerGetPropertiesExceptionHeaders:()=>ui,ContainerGetPropertiesHeaders:()=>li,ContainerItem:()=>ps,ContainerListBlobFlatSegmentExceptionHeaders:()=>Oi,ContainerListBlobFlatSegmentHeaders:()=>Ui,ContainerListBlobHierarchySegmentExceptionHeaders:()=>_i,ContainerListBlobHierarchySegmentHeaders:()=>Hi,ContainerProperties:()=>gs,ContainerReleaseLeaseExceptionHeaders:()=>ki,ContainerReleaseLeaseHeaders:()=>Di,ContainerRenameExceptionHeaders:()=>Qi,ContainerRenameHeaders:()=>Ii,ContainerRenewLeaseExceptionHeaders:()=>Ti,ContainerRenewLeaseHeaders:()=>vi,ContainerRestoreExceptionHeaders:()=>Bi,ContainerRestoreHeaders:()=>Ei,ContainerSetAccessPolicyExceptionHeaders:()=>Ci,ContainerSetAccessPolicyHeaders:()=>yi,ContainerSetMetadataExceptionHeaders:()=>gi,ContainerSetMetadataHeaders:()=>pi,ContainerSubmitBatchExceptionHeaders:()=>Si,ContainerSubmitBatchHeaders:()=>bi,CorsRule:()=>As,DelimitedTextConfiguration:()=>zs,FilterBlobItem:()=>Es,FilterBlobSegment:()=>Cs,GeoReplication:()=>ds,JsonTextConfiguration:()=>qs,KeyInfo:()=>hs,ListBlobsFlatSegmentResponse:()=>Ss,ListBlobsHierarchySegmentResponse:()=>Ds,ListContainersSegmentResponse:()=>ms,Logging:()=>ns,Metrics:()=>as,PageBlobClearPagesExceptionHeaders:()=>Vo,PageBlobClearPagesHeaders:()=>Go,PageBlobCopyIncrementalExceptionHeaders:()=>na,PageBlobCopyIncrementalHeaders:()=>ra,PageBlobCreateExceptionHeaders:()=>_o,PageBlobCreateHeaders:()=>Ho,PageBlobGetPageRangesDiffExceptionHeaders:()=>Ko,PageBlobGetPageRangesDiffHeaders:()=>$o,PageBlobGetPageRangesExceptionHeaders:()=>jo,PageBlobGetPageRangesHeaders:()=>Wo,PageBlobResizeExceptionHeaders:()=>Zo,PageBlobResizeHeaders:()=>Xo,PageBlobUpdateSequenceNumberExceptionHeaders:()=>ta,PageBlobUpdateSequenceNumberHeaders:()=>ea,PageBlobUploadPagesExceptionHeaders:()=>qo,PageBlobUploadPagesFromURLExceptionHeaders:()=>Jo,PageBlobUploadPagesFromURLHeaders:()=>Yo,PageBlobUploadPagesHeaders:()=>zo,PageList:()=>Ls,PageRange:()=>Fs,QueryFormat:()=>_s,QueryRequest:()=>Os,QuerySerialization:()=>Hs,RetentionPolicy:()=>ss,ServiceFilterBlobsExceptionHeaders:()=>ai,ServiceFilterBlobsHeaders:()=>oi,ServiceGetAccountInfoExceptionHeaders:()=>ni,ServiceGetAccountInfoHeaders:()=>ri,ServiceGetPropertiesExceptionHeaders:()=>js,ServiceGetPropertiesHeaders:()=>Ws,ServiceGetStatisticsExceptionHeaders:()=>Ks,ServiceGetStatisticsHeaders:()=>$s,ServiceGetUserDelegationKeyExceptionHeaders:()=>ti,ServiceGetUserDelegationKeyHeaders:()=>ei,ServiceListContainersSegmentExceptionHeaders:()=>Zs,ServiceListContainersSegmentHeaders:()=>Xs,ServiceSetPropertiesExceptionHeaders:()=>Js,ServiceSetPropertiesHeaders:()=>Ys,ServiceSubmitBatchExceptionHeaders:()=>ii,ServiceSubmitBatchHeaders:()=>si,SignedIdentifier:()=>Qs,StaticWebsite:()=>cs,StorageError:()=>ls,UserDelegationKey:()=>ys});var i=n(3838);var o=n(6928);var a=n(7187);var A=n(9896);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;i.Yz(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;i.Yz(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;i.Yz(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;i.Yz(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;i.Yz(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}var c=n(2613);const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){c(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);c(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();c(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();c(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}c(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=o.sep}return e+t}function hasAbsoluteRoot(e){c(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){c(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var u;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(u||(u={}));const d=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const r of e){const e=d?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const n of e){const e=d?n.searchPath.toUpperCase():n.searchPath;if(t[e]==="included"){continue}let s=false;let i=e;let o=dirname(i);while(o!==i){if(t[o]){s=true;break}i=o;o=dirname(i)}if(!s){r.push(n.searchPath);t[e]="included"}}return r}function internal_pattern_helper_match(e,t){let r=u.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}function internal_pattern_helper_partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var m=n(857);var p=n(3772);const g=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){c(e,`Parameter 'itemPath' must not be empty`);e=safeTrimTrailingSeparator(e);if(!hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=dirname(t)}this.segments.unshift(t)}}else{c(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;tPattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new Path(a).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(a[0]),f?"i":"");this.isImplicitPattern=t;const A={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};s=f?s.replace(/\\/g,"/"):s;this.minimatch=new h(s,A)}match(e){if(this.segments[this.segments.length-1]==="**"){e=normalizeSeparators(e);if(!e.endsWith(o.sep)&&this.isImplicitPattern===false){e=`${e}${o.sep}`}}else{e=safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.Directory:u.All}return u.None}partialMatch(e){e=safeTrimTrailingSeparator(e);if(dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c(e,"pattern cannot be empty");const r=new Path(e).segments.map((e=>Pattern.getLiteral(e)));c(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c(!hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=normalizeSeparators(e);if(e==="."||e.startsWith(`.${o.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${o.sep}`)){t=t||m.homedir();c(t,"Unable to determine HOME directory");c(hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=s;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}class SearchState{constructor(e,t){this.path=e;this.level=t}}var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var C=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var E=undefined&&undefined.__await||function(e){return this instanceof E?(this.v=e,this):new E(e)};var B=undefined&&undefined.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),s[Symbol.asyncIterator]=function(){return this},s;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(n[e]){s[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof E?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};const I=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return y(this,void 0,void 0,(function*(){var e,t,r,n;const s=[];try{for(var i=true,o=C(this.globGenerator()),a;a=yield o.next(),e=a.done,!e;i=true){n=a.value;i=false;const e=n;s.push(e)}}catch(e){t={error:e}}finally{try{if(!i&&!e&&(r=o.return))yield r.call(o)}finally{if(t)throw t.error}}return s}))}globGenerator(){return B(this,arguments,(function*globGenerator_1(){const e=getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of getSearchPaths(t)){i.Yz(`Search path '${e}'`);try{yield E(A.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new SearchState(e,1))}const n=[];while(r.length){const s=r.pop();const i=internal_pattern_helper_match(t,s.path);const a=!!i||internal_pattern_helper_partialMatch(t,s.path);if(!i&&!a){continue}const c=yield E(DefaultGlobber.stat(s,e,n));if(!c){continue}if(e.excludeHiddenFiles&&o.basename(s.path).match(/^\./)){continue}if(c.isDirectory()){if(i&u.Directory&&e.matchDirectories){yield yield E(s.path)}else if(!a){continue}const t=s.level+1;const n=(yield E(A.promises.readdir(s.path))).map((e=>new SearchState(o.join(s.path,e),t)));r.push(...n.reverse())}else if(i&u.File){yield yield E(s.path)}}}))}static create(e,t){return y(this,void 0,void 0,(function*(){const r=new DefaultGlobber(t);if(I){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new Pattern(e))}}r.searchPaths.push(...getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return y(this,void 0,void 0,(function*(){let n;if(t.followSymbolicLinks){try{n=yield A.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){i.Yz(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield A.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield A.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){i.Yz(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n}))}}var Q=n(6982);const b=e(import.meta.url)("stream");var S=n(9023);var N=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var w=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};function hashFiles(e,t){return N(this,arguments,void 0,(function*(e,t,r=false){var n,s,i,o;var a;const A=r?core.info:core.debug;let c=false;const l=t?t:(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const u=crypto.createHash("sha256");let d=0;try{for(var m=true,p=w(e.globGenerator()),g;g=yield p.next(),n=g.done,!n;m=true){o=g.value;m=false;const e=o;A(e);if(!e.startsWith(`${l}${path.sep}`)){A(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){A(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const r=util.promisify(stream.pipeline);yield r(fs.createReadStream(e),t);u.write(t.digest());d++;if(!c){c=true}}}catch(e){s={error:e}}finally{try{if(!m&&!n&&(i=p.return))yield i.call(p)}finally{if(s)throw s.error}}u.end();if(c){A(`Found ${d} files to hash.`);return u.digest("hex")}else{A(`No matches found for glob`);return""}}))}var R=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function create(e,t){return R(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return R(this,arguments,void 0,(function*(e,t="",r,n=false){let s=true;if(r&&typeof r.followSymbolicLinks==="boolean"){s=r.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:s});return _hashFiles(i,t,n)}))}var x=n(8701);var D=n(2088);var k;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(k||(k={}));var v;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(v||(v={}));var T;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(T||(T={}));const P=2;const M=5e3;const L=5e3;const F=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const U=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const O="cache.tar";const H="manifest.txt";const _=10*Math.pow(1024,3);var z=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var q=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};const G="1.0";function createTempDirectory(){return z(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=o.join(r,"actions","temp")}const r=o.join(t,Q.randomUUID());yield x.U$(r);return r}))}function getArchiveFileSizeInBytes(e){return A.statSync(e).size}function resolvePaths(e){return z(this,void 0,void 0,(function*(){var t,r,n,s;var a;const A=[];const c=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const l=yield create(e.join("\n"),{implicitDescendants:false});try{for(var u=true,d=q(l.globGenerator()),m;m=yield d.next(),t=m.done,!t;u=true){s=m.value;u=false;const e=s;const t=o.relative(c,e).replace(new RegExp(`\\${o.sep}`,"g"),"/");i.Yz(`Matched: ${t}`);if(t===""){A.push(".")}else{A.push(`${t}`)}}}catch(e){r={error:e}}finally{try{if(!u&&!t&&(n=d.return))yield n.call(d)}finally{if(r)throw r.error}}return A}))}function unlinkFile(e){return z(this,void 0,void 0,(function*(){return S.promisify(A.unlink)(e)}))}function getVersion(e){return z(this,arguments,void 0,(function*(e,t=[]){let r="";t.push("--version");i.Yz(`Checking ${e} ${t.join(" ")}`);try{yield a.m(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){i.Yz(e.message)}r=r.trim();i.Yz(r);return r}))}function getCompressionMethod(){return z(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=D.clean(e);i.Yz(`zstd version: ${t}`);if(e===""){return v.Gzip}else{return v.ZstdWithoutLong}}))}function getCacheFileName(e){return e===v.Gzip?k.Gzip:k.Zstd}function getGnuTarPathOnWindows(){return z(this,void 0,void 0,(function*(){if(A.existsSync(F)){return F}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?x.K7("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,r=false){const n=e.slice();if(t){n.push(t)}if(process.platform==="win32"&&!r){n.push("windows-only")}n.push(G);return Q.createHash("sha256").update(n.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var V=n(4942);var Y=n(2145);var J=n(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}const W=e(import.meta.url)("node:os");var j=n(7975);const $=e(import.meta.url)("node:process");function log(e,...t){$.stderr.write(`${j.format(e,...t)}${W.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){X=e;Z=[];ee=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){ee.push(e.substring(1))}else{Z.push(e)}}for(const e of te){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of ee){if(namespaceMatches(e,t)){return false}}for(const t of Z){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let r=t;if(t.indexOf("**")!==-1){const e=[];let n="";for(const r of t){if(r==="*"&&n==="*"){continue}else{n=r;e.push(r)}}r=e.join("")}let n=0;let s=0;const i=r.length;const o=e.length;let a=-1;let A=-1;while(n=0){s=a+1;n=A+1;if(n===o){return false}while(e[n]!==r[s]){n++;if(n===o){return false}}A=n;n++;s++;continue}else{return false}}const c=n===e.length;const l=s===r.length;const u=s===r.length-1&&r[s]==="*";return c&&(l||u)}function disable(){const e=X||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:re.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}te.push(t);return t}function destroy(){const e=te.indexOf(this);if(e>=0){te.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return se.includes(e)}function createLoggerContext(e){const t=new Set;const r=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let n;const s=ne(e.namespace);s.log=(...e)=>{ne.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${se.join(",")}`)}n=e;const r=[];for(const e of t){if(shouldEnable(e)){r.push(e.namespace)}}ne.enable(r.join(","))}if(r){if(isTypeSpecRuntimeLogLevel(r)){contextSetLogLevel(r)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(e){return Boolean(n&&ie[e.level]<=ie[n])}function createLogger(e,r){const n=Object.assign(e.extend(r),{level:r});patchLogMethod(e,n);if(shouldEnable(n)){const e=ne.disable();ne.enable(e+","+n.namespace)}t.add(n);return n}function contextGetLogLevel(){return n}function contextCreateClientLogger(e){const t=s.extend(e);patchLogMethod(s,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:s}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(e){oe.setLogLevel(e)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(e){return oe.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,r]of this._headersMap){t[e]=r.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const Ae=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!Ae.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!Ae.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((r=>{if(e.name&&r.policy.name===e.name||e.phase&&r.options.phase===e.phase){t.push(r.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const r=this.getOrderedPolicies();const n=r.reduceRight(((e,t)=>r=>t.sendRequest(r,e)),(t=>e.sendRequest(t)));return n(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const r=createPhase("Serialize");const n=createPhase("None");const s=createPhase("Deserialize");const i=createPhase("Retry");const o=createPhase("Sign");const a=[r,n,s,i,o];function getPhase(e){if(e==="Retry"){return i}else if(e==="Serialize"){return r}else if(e==="Deserialize"){return s}else if(e==="Sign"){return o}else{return n}}for(const e of this._policies){const r=e.policy;const n=e.options;const s=r.name;if(t.has(s)){throw new Error("Duplicate policy names not allowed in pipeline")}const i={policy:r,dependsOn:new Set,dependants:new Set};if(n.afterPhase){i.afterPhase=getPhase(n.afterPhase);i.afterPhase.hasAfterPolicies=true}t.set(s,i);const o=getPhase(n.phase);o.policies.add(i)}for(const e of this._policies){const{policy:r,options:n}=e;const s=r.name;const i=t.get(s);if(!i){throw new Error(`Missing node for policy ${s}`)}if(n.afterPolicies){for(const e of n.afterPolicies){const r=t.get(e);if(r){i.dependsOn.add(r);r.dependants.add(i)}}}if(n.beforePolicies){for(const e of n.beforePolicies){const r=t.get(e);if(r){r.dependsOn.add(i);i.dependants.add(r)}}}}function walkPhase(r){r.hasRun=true;for(const n of r.policies){if(n.afterPhase&&(!n.afterPhase.hasRun||n.afterPhase.policies.size)){continue}if(n.dependsOn.size===0){e.push(n.policy);for(const e of n.dependants){e.dependsOn.delete(n)}t.delete(n.policy.name);r.policies.delete(n)}}}function walkPhases(){for(const e of a){walkPhase(e);if(e.policies.size>0&&e!==n){if(!n.hasRun){walkPhase(n)}return}if(e.hasAfterPolicies){walkPhase(n)}}}let A=0;while(t.size>0){A++;const t=e.length;walkPhases();if(e.length<=t&&A>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}const ce=j.inspect.custom;const le="REDACTED";const ue=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const de=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=ue.concat(e);t=de.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return{...r,name:r.name,message:r.message}}if(e==="headers"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,le)}}return t.toString()}sanitizeHeaders(e){const t={};for(const r of Object.keys(e)){if(this.allowedHeaderNames.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=le}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const r of Object.keys(e)){if(this.allowedQueryParameters.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=le}}return t}}const me=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,ce,{value:()=>`RestError: ${this.message} \n ${me.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var pe=n(7067);const ge=e(import.meta.url)("node:https");var he=n(8522);var fe=n(7075);const ye=createClientLogger("ts-http-runtime");const Ce={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends fe.Transform{loadedBytes=0;progressCallback;_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});r()}catch(e){r(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let r;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}r=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",r)}let n;if(e.timeout>0){n=setTimeout((()=>{const r=new Sanitizer;ye.info(`request to '${r.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const s=e.headers.get("Accept-Encoding");const i=s?.includes("gzip")||s?.includes("deflate");let o=typeof e.body==="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){const t=getBodyLength(o);if(t!==null){e.headers.set("Content-Length",t)}}let a;try{if(o&&e.onUploadProgress){const t=e.onUploadProgress;const r=new ReportTransform(t);r.on("error",(e=>{ye.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(o)){o.pipe(r)}else{r.end(o)}o=r}const r=await this.makeRequest(e,t,o);if(n!==undefined){clearTimeout(n)}const s=getResponseHeaders(r);const A=r.statusCode??0;const c={status:A,headers:s,request:e};if(e.method==="HEAD"){r.resume();return c}a=i?getDecodedResponseStream(r,s):r;const l=e.onDownloadProgress;if(l){const e=new ReportTransform(l);e.on("error",(e=>{ye.error("Error in download progress",e)}));a.pipe(e);a=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(c.status)){c.readableStreamBody=a}else{c.bodyAsText=await streamToText(a)}return c}finally{if(e.abortSignal&&r){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(o)){t=isStreamComplete(o)}let n=Promise.resolve();if(nodeHttpClient_isReadableStream(a)){n=isStreamComplete(a)}Promise.all([t,n]).then((()=>{if(r){e.abortSignal?.removeEventListener("abort",r)}})).catch((e=>{ye.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,r){const n=new URL(e.url);const s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const i=e.agent??this.getOrCreateAgent(e,s);const o={agent:i,hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((n,i)=>{const a=s?pe.request(o,n):ge.request(o,n);a.once("error",(t=>{i(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");a.destroy(e);i(e)}));if(r&&nodeHttpClient_isReadableStream(r)){r.pipe(a)}else if(r){if(typeof r==="string"||Buffer.isBuffer(r)){a.end(r)}else if(isArrayBuffer(r)){a.end(ArrayBuffer.isView(r)?Buffer.from(r.buffer):Buffer.from(r))}else{ye.error("Unrecognized body type",r);i(new restError_RestError("Unrecognized body type"))}}else{a.end()}}))}getOrCreateAgent(e,t){const r=e.disableKeepAlive;if(t){if(r){return pe.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new pe.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(r&&!e.tlsSettings){return ge.globalAgent}const t=e.tlsSettings??Ce;let n=this.cachedHttpsAgents.get(t);if(n&&n.options.keepAlive===!r){return n}ye.info("No cached TLS Agent exist, creating a new Agent");n=new ge.Agent({keepAlive:!r,...t});this.cachedHttpsAgents.set(t,n);return n}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const r of Object.keys(e.headers)){const n=e.headers[r];if(Array.isArray(n)){if(n.length>0){t.set(r,n[0])}}else if(n){t.set(r,n)}}return t}function getDecodedResponseStream(e,t){const r=t.get("Content-Encoding");if(r==="gzip"){const t=he.createGunzip();e.pipe(t);return t}else if(r==="deflate"){const t=he.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,r)=>{const n=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){n.push(e)}else{n.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(n).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){r(e)}else{r(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Ee="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??ye.info;const r=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Ee,async sendRequest(e,n){if(!t.enabled){return n(e)}t(`Request: ${r.sanitize(e)}`);const s=await n(e);t(`Response status code: ${s.status}`);t(`Headers: ${r.sanitize(s.headers)}`);return s}}}const Be="redirectPolicy";const Ie=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:r=false}=e;return{name:Be,async sendRequest(e,n){const s=await n(e);return handleRedirect(n,s,t,r)}}}async function handleRedirect(e,t,r,n,s=0){const{request:i,status:o,headers:a}=t;const A=a.get("location");if(A&&(o===300||o===301&&Ie.includes(i.method)||o===302&&Ie.includes(i.method)||o===303&&i.method==="POST"||o===307)&&s{let i=undefined;let o=undefined;const rejectOnAbort=()=>s(new AbortError(r?.abortErrorMsg?r?.abortErrorMsg:Se));const removeListeners=()=>{if(r?.abortSignal&&o){r.abortSignal.removeEventListener("abort",o)}};o=()=>{if(i){clearTimeout(i)}removeListeners();return rejectOnAbort()};if(r?.abortSignal&&r.abortSignal.aborted){return rejectOnAbort()}i=setTimeout((()=>{removeListeners();n(t)}),e);if(r?.abortSignal){r.abortSignal.addEventListener("abort",o)}}))}function parseHeaderValueAsNumber(e,t){const r=e.headers.get(t);if(!r)return;const n=Number(r);if(Number.isNaN(n))return;return n}const Ne="Retry-After";const we=["retry-after-ms","x-ms-retry-after-ms",Ne];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of we){const r=parseHeaderValueAsNumber(e,t);if(r===0||r){const e=t===Ne?1e3:1;return r*e}}const t=e.headers.get(Ne);if(!t)return;const r=Date.parse(t);const n=r-Date.now();return Number.isFinite(n)?Math.max(0,n):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Re=1e3;const xe=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Re;const r=e.maxRetryDelayInMs??xe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:i}){const o=isSystemError(i);const a=o&&e.ignoreSystemErrors;const A=isExponentialRetryResponse(s);const c=A&&e.ignoreHttpStatusCodes;const l=s&&(isThrottlingRetryResponse(s)||!A);if(l||c||a){return{skipStrategy:true}}if(i&&!o&&!A){return{errorToThrow:i}}return calculateRetryDelay(n,{retryDelayInMs:t,maxRetryDelayInMs:r})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const De="0.3.4";const ke=3;const ve=createClientLogger("ts-http-runtime retryPolicy");const Te="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:ke}){const r=t.logger||ve;return{name:Te,async sendRequest(n,s){let i;let o;let a=-1;e:while(true){a+=1;i=undefined;o=undefined;try{r.info(`Retry ${a}: Attempting to send request`,n.requestId);i=await s(n);r.info(`Retry ${a}: Received a response from request`,n.requestId)}catch(e){r.error(`Retry ${a}: Received an error from request`,n.requestId);o=e;if(!e||o.name!=="RestError"){throw e}i=o.response}if(n.abortSignal?.aborted){r.error(`Retry ${a}: Request aborted.`);const e=new AbortError;throw e}if(a>=(t.maxRetries??ke)){r.info(`Retry ${a}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(o){throw o}else if(i){return i}else{throw new Error("Maximum retries reached with no response or error to throw")}}r.info(`Retry ${a}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||r;e.info(`Retry ${a}: Processing retry strategy ${t.name}.`);const s=t.retry({retryCount:a,response:i,responseError:o});if(s.skipStrategy){e.info(`Retry ${a}: Skipped.`);continue t}const{errorToThrow:A,retryAfterInMs:c,redirectTo:l}=s;if(A){e.error(`Retry ${a}: Retry strategy ${t.name} throws error:`,A);throw A}if(c||c===0){e.info(`Retry ${a}: Retry strategy ${t.name} retries after ${c}`);await helpers_delay(c,undefined,{abortSignal:n.abortSignal});continue e}if(l){e.info(`Retry ${a}: Retry strategy ${t.name} redirects to ${l}`);n.url=l;continue e}}if(o){r.info(`None of the retry strategies could work with the received error. Throwing it.`);throw o}if(i){r.info(`None of the retry strategies could work with the received response. Returning it.`);return i}}}}}const Pe="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Pe,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??ke}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Me=typeof window!=="undefined"&&typeof window.document!=="undefined";const Le=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Fe=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ue=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Oe=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const He=Oe&&!Ue&&!Fe;const _e=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const ze="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[r,n]of e.entries()){t[r]??=[];t[r].push(n)}return t}function formDataPolicy_formDataPolicy(){return{name:ze,async sendRequest(e,t){if(Oe&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.append(r,e.toString())}}else{t.append(r,n.toString())}}return t.toString()}async function prepareFormData(e,t){const r=t.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",r??"multipart/form-data");const n=[];for(const[t,r]of Object.entries(e)){for(const e of Array.isArray(r)?r:[r]){if(typeof e==="string"){n.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const r=e.name||"blob";const s=httpHeaders_createHttpHeaders();s.set("Content-Disposition",`form-data; name="${t}"; filename="${r}"`);s.set("Content-Type",e.type||"application/octet-stream");n.push({headers:s,body:e})}}}t.multipartBody={parts:n}}var qe=n(3669);var Ge=n(1970);const Ve="HTTPS_PROXY";const Ye="HTTP_PROXY";const Je="ALL_PROXY";const We="NO_PROXY";const je="proxyPolicy";const $e=[];let Ke=false;const Xe=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(Ve);const t=getEnvironmentValue(Je);const r=getEnvironmentValue(Ye);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const n=new URL(e).hostname;if(r?.has(n)){return r.get(n)}let s=false;for(const e of t){if(e[0]==="."){if(n.endsWith(e)){s=true}else{if(n.length===e.length-1&&n===e.slice(1)){s=true}}}else{if(n===e){s=true}}}r?.set(n,s);return s}function loadNoProxy(){const e=getEnvironmentValue(We);Ke=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const r=t.protocol?t.protocol+"//":"";return{host:r+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,r){if(e.agent){return}const n=new URL(e.url);const s=n.protocol!=="https:";if(e.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const i=e.headers.toJSON();if(s){if(!t.httpProxyAgent){t.httpProxyAgent=new Ge.HttpProxyAgent(r,{headers:i})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new qe.HttpsProxyAgent(r,{headers:i})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!Ke){$e.push(...loadNoProxy())}const r=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const n={};return{name:je,async sendRequest(e,s){if(!e.proxySettings&&r&&!isBypassed(e.url,t?.customNoProxyList??$e,t?.customNoProxyList?undefined:Xe)){setProxyAgentOnRequest(e,n,r)}else if(e.proxySettings){setProxyAgentOnRequest(e,n,getUrlFromProxySettings(e.proxySettings))}return s(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function typeGuards_isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:r}=await e.read();if(t){return}yield r}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return b.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return b.Readable.from(Buffer.from(e))}else if(typeGuards_isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return b.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[r,n]of e){t+=`${r}: ${n}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const r of e){const e=getLength(r);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,r){const n=[bytesEncoding_stringToUint8Array(`--${r}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${r}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const s=getTotalLength(n);if(s){e.headers.set("Content-Length",s)}e.body=await concat(n)}const Ze="multipartPolicy";const et=70;const tt=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>et){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!tt.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Ze,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let r=e.multipartBody.boundary;const n=e.headers.get("Content-Type")??"multipart/mixed";const s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s){throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`)}const[,i,o]=s;if(o&&r&&o!==r){throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`)}r??=o;if(r){assertValidBoundary(r)}else{r=generateBoundary()}e.headers.set("Content-Type",`${i}; boundary=${r}`);await buildRequestBody(e,e.multipartBody.parts,r);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let rt=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!rt){rt=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const nt="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:nt,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!n){return r(t)}if(n.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`)}t.headers.set(n.name,e.credential.key);return r(t)}}}const st="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:st,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!n){return r(t)}const{username:s,password:i}=e.credential;const o=uint8ArrayToString(stringToUint8Array(`${s}:${i}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${o}`);return r(t)}}}const it="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:it,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!n){return r(t)}const s=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}const ot="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:ot,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!n){return r(t)}const s=await e.credential.getOAuth2Token(n.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}let at;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:r,authSchemes:n,allowInsecureConnection:s}=e;if(r){if(isApiKeyCredential(r)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBasicCredential(r)){t.addPolicy(basicAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBearerTokenCredential(r)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isOAuth2TokenCredential(r)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!at){at=createDefaultHttpClient()}return at}function getHeaderValue(e,t){if(e.headers){const r=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(r){return e.headers[r]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:r}=e;if(r===null||r===undefined){return undefined}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return"text/plain; charset=UTF-8"}if(r instanceof Blob){return r.type||"application/octet-stream"}if(isBinaryBody(r)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const r=e.dispositionType??"form-data";let n=r;if(e.name){n+=`; name=${escapeDispositionField(e.name)}`}let s=undefined;if(e.filename){s=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){s=t}}if(s){n+=`; filename=${escapeDispositionField(s)}`}return n}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const r=getContentDisposition(e);const n=createHttpHeaders(e.headers??{});if(t){n.set("content-type",t)}if(r){n.set("content-disposition",r)}const s=normalizeBody(e.body,t);return{headers:n,body:s}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,r,n={},s){const i=s??getCachedDefaultHttpsClient();const o=buildPipelineRequest(e,t,n);try{const e=await r.sendRequest(i,o);const t=e.headers.toJSON();const s=e.readableStreamBody??e.browserStreamBody;const a=n.responseAsStream||s!==undefined?undefined:getResponseBody(e);const A=s??a;if(n?.onResponse){n.onResponse({...e,request:o,rawHeaders:t,parsedBody:a})}return{request:o,headers:t,status:`${e.status}`,body:A}}catch(e){if(isRestError(e)&&e.response&&n.onResponse){const{response:t}=e;const r=t.headers.toJSON();n?.onResponse({...t,request:o,rawHeaders:r},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(isBlob(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,r={}){const n=getRequestContentType(r);const{body:s,multipartBody:i}=getRequestBody(r.body,n);const o=createHttpHeaders({...r.headers?r.headers:{},accept:r.accept??r.headers?.accept??"application/json",...n&&{"content-type":n}});return createPipelineRequest({url:t,method:e,body:s,multipartBody:i,headers:o,allowInsecureConnection:r.allowInsecureConnection,abortSignal:r.abortSignal,onUploadProgress:r.onUploadProgress,onDownloadProgress:r.onDownloadProgress,timeout:r.timeout,enableBrowserStreams:true,streamResponseStatusCodes:r.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isBlob(e)){return{body:e}}if(isReadableStream(e)||typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const r=t.split(";")[0];switch(r){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const r=t.split(";")[0];const n=e.bodyAsText??"";if(r==="text/plain"){return String(n)}try{return n?JSON.parse(n):undefined}catch(t){if(r==="application/json"){throw createParseError(e,t)}return String(n)}}function createParseError(e,t){const r=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const n=t.code??RestError.PARSE_ERROR;return new RestError(r,{code:n,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const r=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;r.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:n,httpClient:s}=t;const i=t.endpoint??e;const client=(e,...t)=>{const getUrl=r=>buildRequestUrl(i,e,t,{allowInsecureConnection:n,...r});return{get:(e={})=>buildOperation("GET",getUrl(e),r,e,n,s),post:(e={})=>buildOperation("POST",getUrl(e),r,e,n,s),put:(e={})=>buildOperation("PUT",getUrl(e),r,e,n,s),patch:(e={})=>buildOperation("PATCH",getUrl(e),r,e,n,s),delete:(e={})=>buildOperation("DELETE",getUrl(e),r,e,n,s),head:(e={})=>buildOperation("HEAD",getUrl(e),r,e,n,s),options:(e={})=>buildOperation("OPTIONS",getUrl(e),r,e,n,s),trace:(e={})=>buildOperation("TRACE",getUrl(e),r,e,n,s)}};return{path:client,pathUnchecked:client,pipeline:r}}function buildOperation(e,t,r,n,s,i){s=n.allowInsecureConnection??s;return{then:function(o,a){return sendRequest(e,t,r,{...n,allowInsecureConnection:s},i).then(o,a)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const r=typeof e==="string"?t:e;const n=r.body?.error??r.body;const s=typeof e==="string"?e:n?.message??`Unexpected status code: ${r.status}`;return new RestError(s,{statusCode:statusCodeToNumber(r.status),code:n?.code,request:r.request,response:toPipelineResponse(r)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const At=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const ct=At.logger;function esm_setLogLevel(e){At.setLogLevel(e)}function esm_getLogLevel(){return At.getLogLevel()}function esm_createClientLogger(e){return At.createClientLogger(e)}const ut=esm_createClientLogger("core-rest-pipeline");const dt="agentPolicy";function agentPolicy_agentPolicy(e){return{name:dt,sendRequest:async(t,r)=>{if(!t.agent){t.agent=e}return r(t)}}}const mt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:mt,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const pt="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const ht="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:ht,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ft="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:ft,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const yt="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:yt,sendRequest:async(t,r)=>{if(!t.tlsSettings){t.tlsSettings=e}return r(t)}}}const Ct=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:ut.info,...e})}const Et=Be;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if($&&$.versions){const t=`${W.type()} ${W.release()}; ${W.arch()}`;const r=$.versions;if(r.bun){e.set("Bun",`${r.bun} (${t})`)}else if(r.deno){e.set("Deno",`${r.deno} (${t})`)}else if(r.node){e.set("Node",`${r.node} (${t})`)}}}const Bt="1.22.3";const It=3;function userAgent_getUserAgentString(e){const t=[];for(const[r,n]of e){const e=n?`${r}/${n}`:r;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Bt);await util_userAgentPlatform_setPlatformSpecificData(t);const r=userAgent_getUserAgentString(t);const n=e?`${e} ${r}`:r;return n}const Qt=userAgent_getUserAgentHeaderName();const bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:bt,async sendRequest(e,r){if(!e.headers.has(Qt)){e.headers.set(Qt,await t)}return r(e)}}}var St=n(7598);async function computeSha256Hmac(e,t,r){const n=Buffer.from(e,"base64");return createHmac("sha256",n).update(t).digest(r)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=t??{};return new Promise(((t,i)=>{function rejectOnAbort(){i(new AbortError_AbortError(s??"The operation was aborted."))}function removeListeners(){n?.removeEventListener("abort",onAbort)}function onAbort(){r?.();removeListeners();rejectOnAbort()}if(n?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();i(e)}))}catch(e){i(e)}n?.addEventListener("abort",onAbort)}))}const Nt="The delay was aborted.";function delay_delay(e,t){let r;const{abortSignal:n,abortErrorMsg:s}=t??{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Nt})}function delay_calculateRetryDelay(e,t){const r=t.retryDelayInMs*Math.pow(2,e);const n=Math.min(t.maxRetryDelayInMs,r);const s=n/2+getRandomIntegerInclusive(0,n/2);return{retryAfterInMs:s}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,r){return tspRuntime.computeSha256Hmac(e,t,r)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const wt=Me;const Rt=Ue;const xt=Fe;const Dt=Oe;const kt=Oe;const vt=He;const Tt=_e;const Pt=Le;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const Mt={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Lt=Symbol("rawContent");function hasRawContent(e){return typeof e[Lt]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[Lt]()}else{return e}}function createFileFromStream(e,t,r={}){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:r.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[Lt]:e}}function createFile(e,t,r={}){if(isNodeLike){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[Lt]:()=>e}}else{return new File([toArrayBuffer(e)],t,r)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const Ft=Ze;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(t,r)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,r)}}}const Ut=mt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const Ht=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const _t=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const zt="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:zt,async sendRequest(t,r){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return r(t)}}}const qt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const Gt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Vt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(Vt.span,e.span)}if(e.namespace){t=t.setValue(Vt.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const r=new TracingContextImpl(this);r._contextMap.set(e,t);return r}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var Yt=n(8914);const Jt=Yt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...r){return t(...r)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!Jt.instrumenterImplementation){Jt.instrumenterImplementation=createDefaultInstrumenter()}return Jt.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:r,packageVersion:n}=e;function startSpan(e,s,i){const o=getInstrumenter().startSpan(e,{...i,packageName:r,packageVersion:n,tracingContext:s?.tracingOptions?.tracingContext});let a=o.tracingContext;const A=o.span;if(!a.getValue(Vt.namespace)){a=a.setValue(Vt.namespace,t)}A.setAttribute("az.namespace",a.getValue(Vt.namespace));const c=Object.assign({},s,{tracingOptions:{...s?.tracingOptions,tracingContext:a}});return{span:A,updatedOptions:c}}async function withSpan(e,t,r,n){const{span:s,updatedOptions:i}=startSpan(e,t,n);try{const e=await withContext(i.tracingOptions.tracingContext,(()=>Promise.resolve(r(i,s))));s.setStatus({status:"success"});return e}catch(e){s.setStatus({status:"error",error:e});throw e}finally{s.end()}}function withContext(e,t,...r){return getInstrumenter().withContext(e,t,...r)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Wt=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const jt="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const r=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const n=tryCreateTracingClient();return{name:jt,async sendRequest(e,s){if(!n){return s(e)}const i=await t;const o={"http.url":r.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":i,requestId:e.requestId};if(i){o["http.user_agent"]=i}const{span:a,tracingContext:A}=tryCreateSpan(n,e,o)??{};if(!a||!A){return s(e)}try{const t=await n.withContext(A,s,e);tryProcessResponse(a,t);return t}catch(e){tryProcessError(a,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Bt})}catch(e){ut.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,r){try{const{span:n,updatedOptions:s}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return undefined}const i=e.createRequestHeaders(s.tracingOptions.tracingContext);for(const[e,r]of Object.entries(i)){t.headers.set(e,r)}return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(e){ut.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const r=t.headers.get("x-ms-request-id");if(r){e.setAttribute("serviceRequestId",r)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let r=true;function cleanup(){if(r){e.removeEventListener("abort",listener);r=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const $t="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:$t,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:r,cleanup:n}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=r;try{return await t(e)}finally{n?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(kt){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(kt){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:r,cleanup:n}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=r;return await e.sendRequest(t)}finally{n?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Kt=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Xt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Zt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const er=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:er,...t})}const tr={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,a);r=beginRefresh(tryGetAccessToken,i.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then((e=>{r=null;n=e;s=a.tenantId;return n})).catch((e=>{r=null;n=null;s=undefined;throw e}))}return r}return async(e,t)=>{const r=Boolean(t.claims);const i=s!==t.tenantId;if(r){n=null}const a=i||r||o.mustRefresh;if(a){return refresh(e,t)}if(o.shouldRefresh){refresh(e,t)}return n}}const rr="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:true};const i=await r(t,s);if(i){e.request.headers.set("Authorization",`Bearer ${i.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:r}=e;const n=await e.getAccessToken(r,{enableCae:true,claims:t});if(!n){return false}e.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:r,challengeCallbacks:n}=e;const s=e.logger||ut;const i={authorizeRequest:n?.authorizeRequest?.bind(n)??defaultAuthorizeRequest,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)};const o=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:rr,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await i.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:o,logger:s});let n;let a;let A;[n,a]=await trySendRequest(e,t);if(isChallengeResponse(n)){let c=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(c){let i;try{i=atob(c)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${c}`);return n}A=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(A){[n,a]=await trySendRequest(e,t)}}else if(i.authorizeRequestOnChallenge){A=await i.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:e,response:n,getAccessToken:o,logger:s});if(A){[n,a]=await trySendRequest(e,t)}if(isChallengeResponse(n)){c=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(c){let i;try{i=atob(c)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${c}`);return n}A=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(A){[n,a]=await trySendRequest(e,t)}}}}}if(a){throw a}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const r=/(\w+)="([^"]*)"/g;const n=[];let s;while((s=t.exec(e))!==null){const e=s[1];const t=s[2];const i={};let o;while((o=r.exec(t))!==null){i[o[1]]=o[2]}n.push({scheme:e,params:i})}return n}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const nr="auxiliaryAuthenticationHeaderPolicy";const sr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(t,s))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:r}=e;const n=e.logger||coreLogger;const s=new WeakMap;return{name:nr,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){n.info(`${nr} header will not be set due to empty credentials.`);return i(e)}const o=[];for(const i of t){let t=s.get(i);if(!t){t=createTokenCycler(i);s.set(i,t)}o.push(sendAuthorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:t,logger:n}))}const a=(await Promise.all(o)).filter((e=>Boolean(e)));if(a.length===0){n.warning(`None of the auxiliary tokens are valid. ${sr} header will not be set.`);return i(e)}e.headers.set(sr,a.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const ir="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:ir,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===ir))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const or="$";const ar="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const Ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return Ar.test(e)}const cr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return cr.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const r=e.parsedHeaders;if(e.request.method==="HEAD"){return{...r,body:e.parsedBody}}const n=t&&t.bodyMapper;const s=Boolean(n?.nullable);const i=n?.type.name;if(i==="Stream"){return{...r,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const o=i==="Composite"&&n.type.modelProperties||{};const a=Object.keys(o).some((e=>o[e].serializedName===""));if(i==="Sequence"||a){const t=e.parsedBody??[];for(const r of Object.keys(o)){if(o[r].serializedName){t[r]=e.parsedBody?.[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}return s&&!e.parsedBody&&!r&&Object.getOwnPropertyNames(o).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:isPrimitiveBody(e.parsedBody,i)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,n)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${n}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:r,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:i,MaxItems:o,MaxLength:a,MinItems:A,MinLength:c,MultipleOf:l,Pattern:u,UniqueItems:d}=e.constraints;if(r!==undefined&&t>=r){failValidation("ExclusiveMaximum",r)}if(n!==undefined&&t<=n){failValidation("ExclusiveMinimum",n)}if(s!==undefined&&t>s){failValidation("InclusiveMaximum",s)}if(i!==undefined&&to){failValidation("MaxItems",o)}if(a!==undefined&&t.length>a){failValidation("MaxLength",a)}if(A!==undefined&&t.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",d)}}}serialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar}};let i={};const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Sequence$/i)!==null){i=[]}if(e.isConstant){t=e.defaultValue}const{required:a,nullable:A}=e;if(a&&A&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(a&&!A&&(t===undefined||t===null)){throw new Error(`${r} cannot be null or undefined.`)}if(!a&&A===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t===undefined||t===null){i=t}else{if(o.match(/^any$/i)!==null){i=t}else if(o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){i=serializeBasicTypes(o,r,t)}else if(o.match(/^Enum$/i)!==null){const n=e;i=serializeEnumType(r,n.type.allowedValues,t)}else if(o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){i=serializeDateTypes(o,t,r)}else if(o.match(/^ByteArray$/i)!==null){i=serializeByteArrayType(r,t)}else if(o.match(/^Base64Url$/i)!==null){i=serializeBase64UrlType(r,t)}else if(o.match(/^Sequence$/i)!==null){i=serializeSequenceType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Dictionary$/i)!==null){i=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Composite$/i)!==null){i=serializeCompositeType(this,e,t,r,Boolean(this.isXML),s)}}return i}deserialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar},ignoreUnknownProperties:n.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let i;const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Composite$/i)!==null){i=deserializeCompositeType(this,e,t,r,s)}else{if(this.isXML){const e=s.xml.xmlCharKey;if(t[or]!==undefined&&t[e]!==undefined){t=t[e]}}if(o.match(/^Number$/i)!==null){i=parseFloat(t);if(isNaN(i)){i=t}}else if(o.match(/^Boolean$/i)!==null){if(t==="true"){i=true}else if(t==="false"){i=false}else{i=t}}else if(o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){i=t}else if(o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){i=new Date(t)}else if(o.match(/^UnixTime$/i)!==null){i=unixTimeToDate(t)}else if(o.match(/^ByteArray$/i)!==null){i=decodeString(t)}else if(o.match(/^Base64Url$/i)!==null){i=base64UrlToByteArray(t)}else if(o.match(/^Sequence$/i)!==null){i=deserializeSequenceType(this,e,t,r,s)}else if(o.match(/^Dictionary$/i)!==null){i=deserializeDictionaryType(this,e,t,r,s)}}if(e.isConstant){i=e.defaultValue}return i}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const n=e.split(".");for(const e of n){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&typeof r.pipe!=="function"&&typeof r.tee!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const n=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,r){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,n,s,i){if(!Array.isArray(r)){throw new Error(`${n} must be of type Array.`)}let o=t.type.element;if(!o||typeof o!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}.`)}if(o.type.name==="Composite"&&o.type.className){o=e.modelMappers[o.type.className]??o}const a=[];for(let t=0;te!==s));if(a){o[s]=e.serialize(A,r[s],n+'["'+s+'"]',i)}}}return o}return r}function getXmlObjectValue(e,t,r,n){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const i={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[or]){return t}else{const e={...t};e[or]=i;return e}}const o={};o[n.xml.xmlCharKey]=t;o[or]=i;return o}function isSpecialXmlProperty(e,t){return[or,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,n,s){const i=s.xml.xmlCharKey??ar;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const o=resolveModelProperties(e,t,n);let a={};const A=[];for(const c of Object.keys(o)){const l=o[c];const u=splitSerializeName(o[c].serializedName);A.push(u[0]);const{serializedName:d,xmlName:m,xmlElementName:p}=l;let g=n;if(d!==""&&d!==undefined){g=n+"."+d}const h=l.headerCollectionPrefix;if(h){const t={};for(const n of Object.keys(r)){if(n.startsWith(h)){t[n.substring(h.length)]=e.deserialize(l.type.value,r[n],g,s)}A.push(n)}a[c]=t}else if(e.isXML){if(l.xmlIsAttribute&&r[or]){a[c]=e.deserialize(l,r[or][m],g,s)}else if(l.xmlIsMsText){if(r[i]!==undefined){a[c]=r[i]}else if(typeof r==="string"){a[c]=r}}else{const t=p||m||d;if(l.xmlIsWrapped){const t=r[m];const n=t?.[p]??[];a[c]=e.deserialize(l,n,g,s);A.push(m)}else{const n=r[t];a[c]=e.deserialize(l,n,g,s);A.push(t)}}}else{let n;let i=r;let A=0;for(const e of u){if(!i)break;A++;i=i[e]}if(i===null&&A{for(const t in o){const r=splitSerializeName(o[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){a[t]=e.deserialize(c,r[t],n+'["'+t+'"]',s)}}}else if(r&&!s.ignoreUnknownProperties){for(const e of Object.keys(r)){if(a[e]===undefined&&!A.includes(e)&&!isSpecialXmlProperty(e,s)){a[e]=r[e]}}}return a}function deserializeDictionaryType(e,t,r,n,s){const i=t.type.value;if(!i||typeof i!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){const t={};for(const o of Object.keys(r)){t[o]=e.deserialize(i,r[o],n,s)}return t}return r}function deserializeSequenceType(e,t,r,n,s){let i=t.type.element;if(!i||typeof i!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){if(!Array.isArray(r)){r=[r]}if(i.type.name==="Composite"&&i.type.className){i=e.modelMappers[i.type.className]??i}const t=[];for(let o=0;o0){if(s.isConstant){i=s.defaultValue}else{let t=getPropertyFromParameterPath(e,n);if(!t.propertyFound&&r){t=getPropertyFromParameterPath(r,n)}let o=false;if(!t.propertyFound){o=s.required||n[0]==="options"&&n.length===2}i=o?s.defaultValue:t.propertyValue}}}else{if(s.required){i={}}for(const t in n){const o=s.type.modelProperties[t];const a=n[t];const A=getOperationArgumentValueFromParameter(e,{parameterPath:a,mapper:o},r);if(A!==undefined){if(!i){i={}}i[t]=A}}}return i}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let n=0;for(;n=200&&r.status<300}if(A.headersMapper){i.parsedHeaders=a.serializer.deserialize(A.headersMapper,i.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return i}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r,n){const s=200<=e.status&&e.status<300;const i=isOperationSpecEmpty(t)?s:!!r;if(i){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const o=r??t.responses.default;const a=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const A=new Wt(a,{statusCode:e.status,request:e.request,response:e});if(!o&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw A}const c=o?.bodyMapper;const l=o?.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let s;if(c){let e=r;if(t.isXML&&c.type.name===lr.Sequence){e=[];const t=c.xmlElementName;if(typeof r==="object"&&t){e=r[t]}}s=t.serializer.deserialize(c,e,"error.response.parsedBody",n)}const i=r.error||s||r;A.code=i.code;if(i.message){A.message=i.message}if(c){A.response.parsedBody=s}}if(e.headers&&l){A.response.parsedHeaders=t.serializer.deserialize(l,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){A.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:A,shouldReturnResponse:false}}async function parse(e,t,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){const i=r.bodyAsText;const o=r.headers.get("Content-Type")||"";const a=!o?[]:o.split(";").map((e=>e.toLowerCase()));try{if(a.length===0||a.some((t=>e.indexOf(t)!==-1))){r.parsedBody=JSON.parse(i);return r}else if(a.some((e=>t.indexOf(e)!==-1))){if(!s){throw new Error("Parsing XML not supported.")}const e=await s(i,n.xml);r.parsedBody=e;return r}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const n=e.code||Wt.PARSE_ERROR;const s=new Wt(t,{code:n,statusCode:r.status,request:r.request,response:r});throw s}}return r}function getStreamingResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const n=e.responses[r];if(n.bodyMapper&&n.bodyMapper.type.name===lr.Stream){t.add(Number(r))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:r}=e;let n;if(typeof t==="string"){n=t}else if(Array.isArray(t)){n=t.join(".")}else{n=r.serializedName}return n}const fr="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:fr,async sendRequest(e,r){const n=getOperationRequestInfo(e);const s=n?.operationSpec;const i=n?.operationArguments;if(s&&i){serializeHeaders(e,i,s);serializeRequestBody(e,i,s,t)}return r(e)}}}function serializeHeaders(e,t,r){if(r.headerParameters){for(const n of r.headerParameters){let s=getOperationArgumentValueFromParameter(t,n);if(s!==null&&s!==undefined||n.mapper.required){s=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n));const t=n.mapper.headerCollectionPrefix;if(t){for(const r of Object.keys(s)){e.headers.set(t+r,s[r])}}else{e.headers.set(n.mapper.serializedName||getPathStringFromParameter(n),s)}}}}const n=t.options?.requestOptions?.customHeaders;if(n){for(const t of Object.keys(n)){e.headers.set(t,n[t])}}}function serializeRequestBody(e,t,r,n=function(){throw new Error("XML serialization unsupported!")}){const s=t.options?.serializerOptions;const i={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??false,xmlCharKey:s?.xml.xmlCharKey??ar}};const o=i.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,r.requestBody);const s=r.requestBody.mapper;const{required:a,serializedName:A,xmlName:c,xmlElementName:l,xmlNamespace:u,xmlNamespacePrefix:d,nullable:m}=s;const p=s.type.name;try{if(e.body!==undefined&&e.body!==null||m&&e.body===null||a){const t=getPathStringFromParameter(r.requestBody);e.body=r.serializer.serialize(s,e.body,t,i);const a=p===lr.Stream;if(r.isXML){const t=d?`xmlns:${d}`:"xmlns";const r=getXmlValueWithNamespace(u,t,p,e.body,i);if(p===lr.Sequence){e.body=n(prepareXMLRootList(r,l||c||A,t,u),{rootName:c||A,xmlCharKey:o})}else if(!a){e.body=n(r,{rootName:c||A,xmlCharKey:o})}}else if(p===lr.String&&(r.contentType?.match("text/plain")||r.mediaType==="text")){return}else if(!a){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(A,undefined," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){e.formData={};for(const n of r.formDataParameters){const s=getOperationArgumentValueFromParameter(t,n);if(s!==undefined&&s!==null){const t=n.mapper.serializedName||getPathStringFromParameter(n);e.formData[t]=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n),i)}}}}function getXmlValueWithNamespace(e,t,r,n,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xml.xmlCharKey]=n;r[or]={[t]:e};return r}return n}function prepareXMLRootList(e,t,r,n){if(!Array.isArray(e)){e=[e]}if(!r||!n){return{[t]:e}}const s={[t]:e};s[or]={[r]:n};return s}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let yr;function getCachedDefaultHttpClient(){if(!yr){yr=esm_defaultHttpClient_createDefaultHttpClient()}return yr}const Cr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,r,n){const s=calculateUrlReplacements(t,r,n);let i=false;let o=replaceAll(e,s);if(t.path){let e=replaceAll(t.path,s);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){o=e;i=true}else{o=appendPath(o,e)}}const{queryParams:a,sequenceParams:A}=calculateQueryParameters(t,r,n);o=appendQueryParams(o,a,A,i);return o}function replaceAll(e,t){let r=e;for(const[e,n]of t){r=r.split(e).join(n)}return r}function calculateUrlReplacements(e,t,r){const n=new Map;if(e.urlParameters?.length){for(const s of e.urlParameters){let i=getOperationArgumentValueFromParameter(t,s,r);const o=getPathStringFromParameter(s);i=e.serializer.serialize(s.mapper,i,o);if(!s.skipEncoding){i=encodeURIComponent(i)}n.set(`{${s.mapper.serializedName||o}}`,i)}}return n}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const r=new URL(e);let n=r.pathname;if(!n.endsWith("/")){n=`${n}/`}if(t.startsWith("/")){t=t.substring(1)}const s=t.indexOf("?");if(s!==-1){const e=t.substring(0,s);const i=t.substring(s+1);n=n+e;if(i){r.search=r.search?`${r.search}&${i}`:i}}else{n=n+t}r.pathname=n;return r.toString()}function calculateQueryParameters(e,t,r){const n=new Map;const s=new Set;if(e.queryParameters?.length){for(const i of e.queryParameters){if(i.mapper.type.name==="Sequence"&&i.mapper.serializedName){s.add(i.mapper.serializedName)}let o=getOperationArgumentValueFromParameter(t,i,r);if(o!==undefined&&o!==null||i.mapper.required){o=e.serializer.serialize(i.mapper,o,getPathStringFromParameter(i));const t=i.collectionFormat?Cr[i.collectionFormat]:"";if(Array.isArray(o)){o=o.map((e=>{if(e===null||e===undefined){return""}return e}))}if(i.collectionFormat==="Multi"&&o.length===0){continue}else if(Array.isArray(o)&&(i.collectionFormat==="SSV"||i.collectionFormat==="TSV")){o=o.join(t)}if(!i.skipEncoding){if(Array.isArray(o)){o=o.map((e=>encodeURIComponent(e)))}else{o=encodeURIComponent(o)}}if(Array.isArray(o)&&(i.collectionFormat==="CSV"||i.collectionFormat==="Pipes")){o=o.join(t)}n.set(i.mapper.serializedName||getPathStringFromParameter(i),o)}}}return{queryParams:n,sequenceParams:s}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const r=e.split("&");for(const e of r){const[r,n]=e.split("=",2);const s=t.get(r);if(s){if(Array.isArray(s)){s.push(n)}else{t.set(r,[s,n])}}else{t.set(r,n)}}return t}function appendQueryParams(e,t,r,n=false){if(t.size===0){return e}const s=new URL(e);const i=simpleParseQueryParams(s.search);for(const[e,s]of t){const t=i.get(e);if(Array.isArray(t)){if(Array.isArray(s)){t.push(...s);const r=new Set(t);i.set(e,Array.from(r))}else{t.push(s)}}else if(t){if(Array.isArray(s)){s.unshift(t)}else if(r.has(e)){i.set(e,[t,s])}if(!n){i.set(e,s)}}else{i.set(e,s)}}const o=[];for(const[e,t]of i){if(typeof t==="string"){o.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const r of t){o.push(`${e}=${r}`)}}else{o.push(`${e}=${t}`)}}s.search=o.length?`?${o.join("&")}`:"";return s.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:r}of e.additionalPolicies){const e=r==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const r=t.baseUrl||this._endpoint;if(!r){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const n=getRequestUrl(r,t,e,this);const s=esm_pipelineRequest_createPipelineRequest({url:n});s.method=t.httpMethod;const i=getOperationRequestInfo(s);i.operationSpec=t;i.operationArguments=e;const o=t.contentType||this._requestContentType;if(o&&t.requestBody){s.headers.set("Content-Type",o)}const a=e.options;if(a){const e=a.requestOptions;if(e){if(e.timeout){s.timeout=e.timeout}if(e.onUploadProgress){s.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){s.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){i.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){s.allowInsecureConnection=true}}if(a.abortSignal){s.abortSignal=a.abortSignal}if(a.tracingOptions){s.tracingOptions=a.tracingOptions}}if(this._allowInsecureConnection){s.allowInsecureConnection=true}if(s.streamResponseStatusCodes===undefined){s.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(s);const r=flattenResponse(e,t.responses[e.status]);if(a?.onResponse){a.onResponse(e,r)}return r}catch(e){if(typeof e==="object"&&e?.response){const r=e.response;const n=flattenResponse(r,t.responses[e.statusCode]||t.responses["default"]);e.details=n;if(a?.onResponse){a.onResponse(r,n,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const r=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:r})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const r=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return r.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:r}=e;const n=e.logger||coreClientLogger;const s=r.headers.get("WWW-Authenticate");if(!s){n.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const i=parseCAEChallenge(s)||[];const o=i.find((e=>e.claims));if(!o){n.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const a=await e.getAccessToken(o.scope?[o.scope]:t,{claims:decodeStringToString(o.claims)});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}const Br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const r=getChallenge(e.response);if(r){const n=parseChallenge(r);const s=buildScopes(e,n);const i=extractTenantId(n);if(!i){return false}const o=await e.getAccessToken(s,{...t,tenantId:i});if(!o){return false}e.request.headers.set(Br.HeaderConstants.AUTHORIZATION,`${o.tokenType??"Bearer"} ${o.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const r=t.pathname.split("/");const n=r[1];if(n&&isUuid(n)){return n}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const r=new URL(t.resource_id);r.pathname=Br.DefaultScope;let n=r.toString();if(n==="https://disk.azure.com/.default"){n="https://disk.azure.com//.default"}return[n]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const n=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return n.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Ir=Symbol("Original PipelineRequest");const Qr=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const r=e;const n=r[Ir];const s=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=s;return n}else{const r=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:s,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){r[Qr]=t.originalRequest}return r}}function toWebResourceLike(e,t){const r=t?.originalRequest??e;const n={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(n,{get(t,s,i){if(s===Ir){return e}else if(s==="clone"){return()=>toWebResourceLike(toPipelineRequest(n,{originalRequest:r}),{createProxy:true,originalRequest:r})}return Reflect.get(t,s,i)},set(t,r,n,s){if(r==="keepAlive"){e.disableKeepAlive=!n}const i=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof r==="string"&&i.includes(r)){e[r]=n}return Reflect.set(t,r,n,s)}})}else{return n}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{const r=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(r)}}}class Expression{constructor(e,t={}){this.pattern=e;this.separator=t.separator||".";this.segments=this._parse(e);this._hasDeepWildcard=this.segments.some((e=>e.type==="deep-wildcard"));this._hasAttributeCondition=this.segments.some((e=>e.attrName!==undefined));this._hasPositionSelector=this.segments.some((e=>e.position!==undefined))}_parse(e){const t=[];let r=0;let n="";while(r0){const e=this.path[this.path.length-1];e.values=undefined}const n=this.path.length;if(!this.siblingStacks[n]){this.siblingStacks[n]=new Map}const s=this.siblingStacks[n];const i=r?`${r}:${e}`:e;const o=s.get(i)||0;let a=0;for(const e of s.values()){a+=e}s.set(i,o+1);const A={tag:e,position:a,counter:o};if(r!==null&&r!==undefined){A.namespace=r}if(t!==null&&t!==undefined){A.values=t}this.path.push(A)}pop(){if(this.path.length===0){return undefined}const e=this.path.pop();if(this.siblingStacks.length>this.path.length+1){this.siblingStacks.length=this.path.length+1}return e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];if(e!==null&&e!==undefined){t.values=e}}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:undefined}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:undefined}getAttrValue(e){if(this.path.length===0)return undefined;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(this.path.length===0)return false;const t=this.path[this.path.length-1];return t.values!==undefined&&e in t.values}getPosition(){if(this.path.length===0)return-1;return this.path[this.path.length-1].position??0}getCounter(){if(this.path.length===0)return-1;return this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=true){const r=e||this.separator;return this.path.map((e=>{if(t&&e.namespace){return`${e.namespace}:${e.tag}`}return e.tag})).join(r)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[];this.siblingStacks=[]}matches(e){const t=e.segments;if(t.length===0){return false}if(e.hasDeepWildcard()){return this._matchWithDeepWildcard(t)}return this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length){return false}for(let t=0;t=0&&t>=0){const n=e[r];if(n.type==="deep-wildcard"){r--;if(r<0){return true}const n=e[r];let s=false;for(let e=t;e>=0;e--){const i=e===this.path.length-1;if(this._matchSegment(n,this.path[e],i)){t=e-1;r--;s=true;break}}if(!s){return false}}else{const e=t===this.path.length-1;if(!this._matchSegment(n,this.path[t],e)){return false}t--;r--}}return r<0}_matchSegment(e,t,r){if(e.tag!=="*"&&e.tag!==t.tag){return false}if(e.namespace!==undefined){if(e.namespace!=="*"&&e.namespace!==t.namespace){return false}}if(e.attrName!==undefined){if(!r){return false}if(!t.values||!(e.attrName in t.values)){return false}if(e.attrValue!==undefined){const r=t.values[e.attrName];if(String(r)!==String(e.attrValue)){return false}}}if(e.position!==undefined){if(!r){return false}const n=t.counter??0;if(e.position==="first"&&n!==0){return false}else if(e.position==="odd"&&n%2!==1){return false}else if(e.position==="even"&&n%2!==0){return false}else if(e.position==="nth"){if(n!==e.positionValue){return false}}}return true}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e})));this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){const e=this;return new Proxy(e,{get(e,t,r){if(Rr.has(t)){return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. `+`Obtain a writable instance to mutate state.`)}}const n=Reflect.get(e,t,r);if(t==="path"||t==="siblingStacks"){return Object.freeze(Array.isArray(n)?n.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):n)}if(typeof n==="function"){return n.bind(e)}return n},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}const xr="\n";function toXml(e,t){let r="";if(t.format&&t.indentBy.length>0){r=xr}const n=[];if(t.stopNodes&&Array.isArray(t.stopNodes)){for(let e=0;et.maxNestedTags){throw new Error("Maximum nested tags exceeded")}if(!Array.isArray(e)){if(e!==undefined&&e!==null){let r=e.toString();r=replaceEntitiesValue(r,t);return r}return""}for(let a=0;a`;o=false;n.pop();continue}else if(c===t.commentPropName){i+=r+`\x3c!--${A[c][0][t.textNodeName]}--\x3e`;o=true;n.pop();continue}else if(c[0]==="?"){const e=attr_to_str(A[":@"],t,u);const s=c==="?xml"?"":r;let a=A[c][0][t.textNodeName];a=a.length!==0?" "+a:"";i+=s+`<${c}${a}${e}?>`;o=true;n.pop();continue}let d=r;if(d!==""){d+=t.indentBy}const m=attr_to_str(A[":@"],t,u);const p=r+`<${c}${m}`;let g;if(u){g=orderedJs2Xml_getRawContent(A[c],t)}else{g=arrToStr(A[c],t,d,n,s)}if(t.unpairedTags.indexOf(c)!==-1){if(t.suppressUnpairedNode)i+=p+">";else i+=p+"/>"}else if((!g||g.length===0)&&t.suppressEmptyNode){i+=p+"/>"}else if(g&&g.endsWith(">")){i+=p+`>${g}${r}`}else{i+=p+">";if(g&&r!==""&&(g.includes("/>")||g.includes("`}o=true;n.pop()}return i}function extractAttributeValues(e,t){if(!e||t.ignoreAttributes)return null;const r={};let n=false;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const i=s.startsWith(t.attributeNamePrefix)?s.substr(t.attributeNamePrefix.length):s;r[i]=e[s];n=true}return n?r:null}function orderedJs2Xml_getRawContent(e,t){if(!Array.isArray(e)){if(e!==undefined&&e!==null){return e.toString()}return""}let r="";for(let n=0;n`}else{r+=`<${i}${e}>${n}`}}}return r}function attr_to_str_raw(e,t){let r="";if(e&&!t.ignoreAttributes){for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let s=e[n];if(s===true&&t.suppressBooleanAttributes){r+=` ${n.substr(t.attributeNamePrefix.length)}`}else{r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}}}return r}function propName(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities){for(let r=0;r{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}const Dr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false,maxNestedTags:100,jPath:true};function Builder(e){this.options=Object.assign({},Dr,e);if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){this.options.stopNodes=this.options.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}this.stopNodeExpressions=[];if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){for(let e=0;e\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}const t=new Matcher;return this.j2x(e,0,t).val}};Builder.prototype.j2x=function(e,t,r){let n="";let s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}const i=this.options.jPath?r.toString():r;const o=this.checkStopNode(r);for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(typeof e[a]==="undefined"){if(this.isAttribute(a)){s+=""}}else if(e[a]===null){if(this.isAttribute(a)){s+=""}else if(a===this.options.cdataPropName){s+=""}else if(a[0]==="?"){s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar}}else if(e[a]instanceof Date){s+=this.buildTextValNode(e[a],a,"",t,r)}else if(typeof e[a]!=="object"){const A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i)){n+=this.buildAttrPairStr(A,""+e[a],o)}else if(!A){if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);s+=this.replaceEntitiesValue(t)}else{r.push(a);const n=this.checkStopNode(r);r.pop();if(n){const r=""+e[a];if(r===""){s+=this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+">"+r+""+e+"${e}`}else if(typeof e==="object"&&e!==null){const n=this.buildRawContent(e);const s=this.buildAttributesForStopNode(e);if(n===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${n}`}}}}else if(typeof n==="object"&&n!==null){const e=this.buildRawContent(n);const s=this.buildAttributesForStopNode(n);if(e===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${e}`}}else{t+=`<${r}>${n}`}}return t};Builder.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const r=e[this.options.attributesGroupName];for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e;const s=r[e];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}else{for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=this.isAttribute(r);if(n){const s=e[r];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}}return t};Builder.prototype.buildObjectNode=function(e,t,r,n){if(e===""){if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}}else{let s=""+e+s}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&i.length===0){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar}else{let s=this.options.tagValueProcessor(t,e);s=this.replaceEntitiesValue(s);if(s===""){return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}else{return this.indentate(n)+"<"+t+r+">"+s+"0&&this.options.processEntities){for(let t=0;t"&&e[i]!==" "&&e[i]!=="\t"&&e[i]!=="\n"&&e[i]!=="\r";i++){A+=e[i]}A=A.trim();if(A[A.length-1]==="/"){A=A.substring(0,A.length-1);i--}if(!validateTagName(A)){let t;if(A.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+A+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,i))}const c=readAttributeStr(e,i);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+A+"' have open quote.",getLineNumberForPosition(e,i))}let l=c.value;i=c.index;if(l[l.length-1]==="/"){const r=i-l.length;l=l.substring(0,l.length-1);const s=validateAttributeString(l,t);if(s===true){n=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,r+s.err.line))}}else if(a){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",getLineNumberForPosition(e,i))}else if(l.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,o))}else if(r.length===0){return getErrorObject("InvalidTag","Closing tag '"+A+"' has not been opened.",getLineNumberForPosition(e,o))}else{const t=r.pop();if(A!==t.tagName){let r=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+A+"'.",getLineNumberForPosition(e,o))}if(r.length==0){s=true}}}else{const a=validateAttributeString(l,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,i-l.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,i))}else if(t.unpairedTags.indexOf(A)!==-1){}else{r.push({tagName:A,tagStartPos:o})}n=true}for(i++;i0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const r=t;for(;t5&&n==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"){r--;if(r===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}}return t}const Or='"';const Hr="'";function readAttributeStr(e,t){let r="";let n="";let s=false;for(;t"){if(n===""){s=true;break}}r+=e[t]}if(n!==""){return false}return{value:r,index:t,tagClosed:s}}const _r=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const r=getAllMatches(e,_r);const n={};for(let e=0;e{if(Lr.includes(e)){return"__"+e}return e};const qr={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,r){return e},captureMetaData:false,maxNestedTags:100,strictReservedNames:true,jPath:true,onDangerousProperty:defaultOnDangerousProperty};function validatePropertyName(e,t){if(typeof e!=="string"){return}const r=e.toLowerCase();if(Lr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}if(Fr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}}function normalizeProcessEntities(e){if(typeof e==="boolean"){return{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}}if(typeof e==="object"&&e!==null){return{enabled:e.enabled!==false,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(e){const t=Object.assign({},qr,e);const r=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of r){if(e){validatePropertyName(e,t)}}if(t.onDangerousProperty===null){t.onDangerousProperty=defaultOnDangerousProperty}t.processEntities=normalizeProcessEntities(t.processEntities);if(t.stopNodes&&Array.isArray(t.stopNodes)){t.stopNodes=t.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}return t};let Gr;if(typeof Symbol!=="function"){Gr="@@xmlMetadata"}else{Gr=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]=Object.create(null)}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][Gr]={startIndex:t}}}static getMetaDataSymbol(){return Gr}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e;this.options=e}readDocType(e,t){const r=Object.create(null);let n=0;if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let s=1;let i=false,o=false;let a="";for(;t=this.options.maxEntityCount){throw new Error(`Entity count (${n+1}) exceeds maximum allowed (${this.options.maxEntityCount})`)}const e=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[s]={regx:RegExp(`&${e};`,"g"),val:i};n++}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:r}=this.readElementExp(e,t+1);t=r}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(hasSeq(e,"!--",t))o=true;else throw new Error(`Invalid DOCTYPE`);s++;a=""}else if(e[t]===">"){if(o){if(e[t-1]==="-"&&e[t-2]==="-"){o=false;s--}}else{s--}if(s===0){break}}else if(e[t]==="["){i=true}else{a+=e[t]}}if(s!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);const r=t;while(tthis.options.maxEntitySize){throw new Error(`Entity "${n}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}t--;return[n,s,t]}readNotationExp(e,t){t=skipWhitespace(e,t);const r=t;while(t{while(t1||i.length===1&&!a)){return e}else{const n=Number(r);const a=String(n);if(n===0)return n;if(a.search(/[eE]/)!==-1){if(t.eNotation)return n;else return e}else if(r.indexOf(".")!==-1){if(a==="0")return n;else if(a===o)return n;else if(a===`${s}${o}`)return n;else return e}let A=i?o:r;if(i){return A===a||s+A===a?n:e}else{return A===a||A===s+a?n:e}}}else{return e}}}const Wr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,r){if(!r.eNotation)return e;const n=t.match(Wr);if(n){let s=n[1]||"";const i=n[3].indexOf("e")===-1?"E":"e";const o=n[2];const a=s?e[o.length+1]===i:e[o.length]===i;if(o.length>1&&a)return e;else if(o.length===1&&(n[3].startsWith(`.${i}`)||n[3][0]===i)){return Number(t)}else if(o.length>0){if(r.leadingZeros&&!a){t=(n[1]||"")+n[3];return Number(t)}else return e}else{return Number(t)}}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(e,t,r){const n=t===Infinity;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return n?"Infinity":"-Infinity";case"original":default:return e}}function ignoreAttributes_getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}function extractRawAttributes(e,t){if(!e)return{};const r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return{};const n={};for(const e in r){if(e.startsWith(t.attributeNamePrefix)){const s=e.substring(t.attributeNamePrefix.length);n[s]=r[e]}else{n[e]=r[e]}}return n}function extractNamespace(e){if(!e||typeof e!=="string")return undefined;const t=e.indexOf(":");if(t!==-1&&t>0){const r=e.substring(0,t);if(r!=="xmlns"){return r}}return undefined}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;this.matcher=new Matcher;this.readonlyMatcher=this.matcher.readOnly();this.isCurrentNodeStopNode=false;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e0){if(!o)e=this.replaceEntitiesValue(e,t,r);const n=this.options.jPath?r.toString():r;const a=this.options.tagValueProcessor(t,e,n,s,i);if(a===null||a===undefined){return e}else if(typeof a!==typeof e||a!==e){return a}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=r+t[1]}}return e}const jr=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,r){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const n=getAllMatches(e,jr);const s=n.length;const i={};const o={};for(let e=0;e0&&typeof t==="object"&&t.updateCurrent){t.updateCurrent(o)}for(let e=0;e",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");if(e!==-1){s=s.substr(e+1)}}s=transformTagName(this.options.transformTagName,s,"",this.options).tagName;if(r){n=this.saveTextToParentTag(n,r,this.readonlyMatcher)}const o=this.matcher.getCurrentTag();if(s&&this.options.unpairedTags.indexOf(s)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}if(o&&this.options.unpairedTags.indexOf(o)!==-1){this.matcher.pop();this.tagsNodeStack.pop()}this.matcher.pop();this.isCurrentNodeStopNode=false;r=this.tagsNodeStack.pop();n="";i=t}else if(e[i+1]==="?"){let t=readTagExp(e,i,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)}this.addChild(r,e,this.readonlyMatcher,i)}i=t.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if(e.substr(i+1,2)==="!D"){const t=s.readDocType(e,i);this.docTypeEntities=t.entities;i=t.i}else if(e.substr(i+1,2)==="!["){const t=findClosingIndex(e,"]]>",i,"CDATA is not closed.")-2;const s=e.substring(i+9,t);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let o=this.parseTextData(s,r.tagname,this.readonlyMatcher,true,false,true,true);if(o==undefined)o="";if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}])}else{r.add(this.options.textNodeName,o)}i=t+2}else{let s=readTagExp(e,i,this.options.removeNSPrefix);if(!s){const t=e.substring(Math.max(0,i-50),Math.min(e.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${t}"`)}let o=s.tagName;const a=s.rawTagName;let A=s.tagExp;let c=s.attrExpPresent;let l=s.closeIndex;({tagName:o,tagExp:A}=transformTagName(this.options.transformTagName,o,A,this.options));if(this.options.strictReservedNames&&(o===this.options.commentPropName||o===this.options.cdataPropName||o===this.options.textNodeName||o===this.options.attributesGroupName)){throw new Error(`Invalid tag name: ${o}`)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,this.readonlyMatcher,false)}}const u=r;if(u&&this.options.unpairedTags.indexOf(u.tagname)!==-1){r=this.tagsNodeStack.pop();this.matcher.pop()}let d=false;if(A.length>0&&A.lastIndexOf("/")===A.length-1){d=true;if(o[o.length-1]==="/"){o=o.substr(0,o.length-1);A=o}else{A=A.substr(0,A.length-1)}c=o!==A}let m=null;let p={};let g=undefined;g=extractNamespace(a);if(o!==t.tagname){this.matcher.push(o,{},g)}if(o!==A&&c){m=this.buildAttributesMap(A,this.matcher,o);if(m){p=extractRawAttributes(m,this.options)}}if(o!==t.tagname){this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher)}const h=i;if(this.isCurrentNodeStopNode){let t="";if(d){i=s.closeIndex}else if(this.options.unpairedTags.indexOf(o)!==-1){i=s.closeIndex}else{const r=this.readStopNodeData(e,a,l+1);if(!r)throw new Error(`Unexpected end of ${a}`);i=r.i;t=r.tagContent}const n=new XmlNode(o);if(m){n[":@"]=m}n.add(this.options.textNodeName,t);this.matcher.pop();this.isCurrentNodeStopNode=false;this.addChild(r,n,this.readonlyMatcher,h)}else{if(d){({tagName:o,tagExp:A}=transformTagName(this.options.transformTagName,o,A,this.options));const e=new XmlNode(o);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);this.matcher.pop();this.isCurrentNodeStopNode=false}else if(this.options.unpairedTags.indexOf(o)!==-1){const e=new XmlNode(o);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);this.matcher.pop();this.isCurrentNodeStopNode=false;i=s.closeIndex;continue}else{const e=new XmlNode(o);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(r);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);r=e}n="";i=l}}}else{n+=e[i]}}return t.child};function addChild(e,t,r,n){if(!this.options.captureMetaData)n=undefined;const s=this.options.jPath?r.toString():r;const i=this.options.updateTag(t.tagname,s,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,n)}else{e.addChild(t,n)}}function OrderedObjParser_replaceEntitiesValue(e,t,r){const n=this.options.processEntities;if(!n||!n.enabled){return e}if(n.allowedTags){const s=this.options.jPath?r.toString():r;const i=Array.isArray(n.allowedTags)?n.allowedTags.includes(t):n.allowedTags(t,s);if(!i){return e}}if(n.tagFilter){const s=this.options.jPath?r.toString():r;if(!n.tagFilter(t,s)){return e}}for(const t of Object.keys(this.docTypeEntities)){const r=this.docTypeEntities[t];const s=e.match(r.regx);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}const t=e.length;e=e.replace(r.regx,r.val);if(n.maxExpandedLength){this.currentExpandedLength+=e.length-t;if(this.currentExpandedLength>n.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n.maxExpandedLength}`)}}}}for(const t of Object.keys(this.lastEntities)){const r=this.lastEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities){for(const t of Object.keys(this.htmlEntities)){const r=this.htmlEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val);return e}function saveTextToParentTag(e,t,r,n){if(e){if(n===undefined)n=t.child.length===0;e=this.parseTextData(e,t.tagname,r,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,n);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t){if(!e||e.length===0)return false;for(let r=0;r",r,`${t} is not closed`);let o=e.substring(r+2,i).trim();if(o===t){s--;if(s===0){return{tagContent:e.substring(n,r),i:i}}}r=i}else if(e[r+1]==="?"){const t=findClosingIndex(e,"?>",r+1,"StopNode is not closed.");r=t}else if(e.substr(r+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",r+3,"StopNode is not closed.");r=t}else if(e.substr(r+1,2)==="!["){const t=findClosingIndex(e,"]]>",r,"StopNode is not closed.")-2;r=t}else{const n=readTagExp(e,r,">");if(n){const e=n&&n.tagName;if(e===t&&n.tagExp[n.tagExp.length-1]!=="/"){s++}r=n.closeIndex}}}}}function parseValue(e,t,r){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,r)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,r){const n=Number.parseInt(e,t);if(n>=0&&n<=1114111){return String.fromCodePoint(n)}else{return r+e+";"}}function transformTagName(e,t,r,n){if(e){const n=e(t);if(r===t){r=n}t=n}t=sanitizeName(t,n);return{tagName:t,tagExp:r}}function sanitizeName(e,t){if(Fr.includes(e)){throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}else if(Lr.includes(e)){return t.onDangerousProperty(e)}return e}const $r=XmlNode.getMetaDataSymbol();function stripAttributePrefix(e,t){if(!e||typeof e!=="object")return{};if(!t)return e;const r={};for(const n in e){if(n.startsWith(t)){const s=n.substring(t.length);r[s]=e[n]}else{r[n]=e[n]}}return r}function prettify(e,t,r,n){return compress(e,t,r,n)}function compress(e,t,r,n){let s;const i={};for(let o=0;o0)i[t.textNodeName]=s}else if(s!==undefined)i[t.textNodeName]=s;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e${i}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const r=zr.validate(e);if(r!==true){throw r}const n=new XMLParser(getParserOptions(t));const s=n.parse(e);if(s["?xml"]){delete s["?xml"]}if(!t.includeRoot){for(const e of Object.keys(s)){const t=s[e];return typeof t==="object"?Object.assign({},t):t}}return s}const Zr=esm_createClientLogger("storage-blob");var en=n(4434);class BuffersStream extends fe.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,r){super(r);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let n=0;for(const e of this.buffers){n+=e.byteLength}if(n=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const n=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,n));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=n;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(i===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=i;r+=i}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var tn=n(4573);const rn=tn.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,r){this.capacity=e;this._size=0;const n=Math.ceil(e/rn);for(let t=0;t0){e[0]=e[0].slice(i)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new en.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,r,n,s,i){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=n;this.concurrency=s;this.encoding=i}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthr.getReadableStream()),r.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let nn;function cache_getCachedDefaultHttpClient(){if(!nn){nn=esm_defaultHttpClient_createDefaultHttpClient()}return nn}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const sn="1.0.0";const on={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const an={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const An=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const cn=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_common_escape(r);t.pathname=r;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=getValueInConnString(e,"AccountName");i=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){n=getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let n=getValueInConnString(e,"AccountName");if(!n){n=getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+padStart(t.toString(),r-e.length,"0");return base64encode(i)}async function utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,sanitizeURL(n))}else{t.set(r,n)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;ei}const o=s0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,an.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,an.CONTENT_ENCODING),this.getHeaderValueToSign(e,an.CONTENT_LENGTH),this.getHeaderValueToSign(e,an.CONTENT_MD5),this.getHeaderValueToSign(e,an.CONTENT_TYPE),this.getHeaderValueToSign(e,an.DATE),this.getHeaderValueToSign(e,an.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,an.IF_MATCH),this.getHeaderValueToSign(e,an.IF_NONE_MATCH),this.getHeaderValueToSign(e,an.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,an.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(an.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const n=getURLQueries(e.url);const s={};if(n){const e=[];for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const r=t.toLowerCase();s[r]=n[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const mn=esm_createClientLogger("storage-common");var pn;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(pn||(pn={}));function NewRetryPolicyFactory(e){return{create:(t,r)=>new StorageRetryPolicy(t,r,e)}}const gn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const hn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,r=gn){super(e,t);this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:gn.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):gn.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:gn.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:gn.maxRetryDelayInMs):gn.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:gn.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:gn.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const n=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){n.url=setURLHost(n.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){n.url=setURLParameter(n.url,on.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let i;try{mn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);i=await this._nextPolicy.sendRequest(n);if(!this.shouldRetry(s,r,i)){return i}t=t||!s&&i.status===404}catch(e){mn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,i,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,n){if(t>=this.retryOptions.maxTries){mn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(const e of s){if(n.name.toUpperCase().includes(e)||n.message.toUpperCase().includes(e)||n.code&&n.code.toString().toUpperCase()===e){mn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||n){const t=r?r.status:n?n.statusCode:0;if(!e&&t===404){mn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){mn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(r){if(r?.status>=400){const e=r.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(n?.code==="PARSE_ERROR"&&n?.message.startsWith(`Error "Error: Unclosed root tag`)){mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,r){let n=0;if(e){switch(this.retryOptions.retryPolicyType){case pn.EXPONENTIAL:n=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case pn.FIXED:n=this.retryOptions.retryDelayInMs;break}}else{n=Math.random()*1e3}mn.info(`RetryPolicy: Delay for ${n}ms`);return utils_common_delay(n,r,hn)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const fn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:fn,async sendRequest(e,t){if(kt){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,on.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(an.COOKIE);e.headers.delete(an.CONTENT_LENGTH);return t(e)}}}const yn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:yn,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const Cn="storageRetryPolicy";const En={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Bn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const In=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??En.retryPolicyType;const r=e.maxTries??En.maxTries;const n=e.retryDelayInMs??En.retryDelayInMs;const s=e.maxRetryDelayInMs??En.maxRetryDelayInMs;const i=e.secondaryHost??En.secondaryHost;const o=e.tryTimeoutInMs??En.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:s}){if(t>=r){mn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${r}, no further try.`);return false}if(s){for(const e of Bn){if(s.name.toUpperCase().includes(e)||s.message.toUpperCase().includes(e)||s.code&&s.code.toString().toUpperCase()===e){mn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(s?.code==="PARSE_ERROR"&&s?.message.startsWith(`Error "Error: Unclosed root tag`)){mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||s){const t=n?.status??s?.statusCode??0;if(!e&&t===404){mn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){mn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,r){let i=0;if(e){switch(t){case pn.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*n,s);break;case pn.FIXED:i=n;break}}else{i=Math.random()*1e3}mn.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:Cn,async sendRequest(e,t){if(o){e.url=setURLParameter(e.url,on.Parameters.TIMEOUT,String(Math.floor(o/1e3)))}const r=e.url;const n=i?setURLHost(e.url,i):undefined;let s=false;let a=1;let A=true;let c;let l;while(A){const i=s||!n||!["GET","HEAD","OPTIONS"].includes(e.method)||a%2===1;e.url=i?r:n;c=undefined;l=undefined;try{mn.info(`RetryPolicy: =====> Try=${a} ${i?"Primary":"Secondary"}`);c=await t(e);s=s||!i&&c.status===404}catch(e){if(esm_restError_isRestError(e)){mn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);l=e}else{mn.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}A=shouldRetry({isPrimaryRetry:i,attempt:a,response:c,error:l});if(A){await utils_common_delay(calculateDelay(i,a),e.abortSignal,In)}a++}if(c){return c}throw l??new Wt("RetryPolicy failed without known error.")}}}const Qn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(an.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(t.body))}const r=[t.method.toUpperCase(),getHeaderValueToSign(t,an.CONTENT_LANGUAGE),getHeaderValueToSign(t,an.CONTENT_ENCODING),getHeaderValueToSign(t,an.CONTENT_LENGTH),getHeaderValueToSign(t,an.CONTENT_MD5),getHeaderValueToSign(t,an.CONTENT_TYPE),getHeaderValueToSign(t,an.DATE),getHeaderValueToSign(t,an.IF_MODIFIED_SINCE),getHeaderValueToSign(t,an.IF_MATCH),getHeaderValueToSign(t,an.IF_NONE_MATCH),getHeaderValueToSign(t,an.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,an.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const n=(0,St.createHmac)("sha256",e.accountKey).update(r,"utf8").digest("base64");t.headers.set(an.AUTHORIZATION,`SharedKey ${e.accountName}:${n}`)}function getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}function getCanonicalizedHeadersString(e){let t=[];for(const[r,n]of e.headers){if(r.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)){t.push({name:r,value:n})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}function getCanonicalizedResourceString(t){const r=getURLPath(t.url)||"/";let n="";n+=`/${e.accountName}${r}`;const s=getURLQueries(t.url);const i={};if(s){const e=[];for(const t in s){if(Object.prototype.hasOwnProperty.call(s,t)){const r=t.toLowerCase();i[r]=s[t];e.push(r)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}return{name:Qn,async sendRequest(e,t){signRequest(e);return t(e)}}}const bn="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:bn,async sendRequest(e,t){try{const r=await t(e);return r}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.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.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const Sn="12.31.0";const Nn="2026-02-06";const wn=256*1024*1024;const Rn=4e3*1024*1024;const xn=5e4;const Dn=8*1024*1024;const kn=4*1024*1024;const vn=5;const Tn=100*1e3;const Pn="https://storage.azure.com/.default";const Mn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ln={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Fn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const Un="";const On="*";const Hn=1*1024*1024;const _n=256;const zn=4*Hn;const qn="\r\n";const Gn="HTTP/1.1";const Vn="AES256";const Yn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Jn=["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"];const Wn=["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"];const jn="BlobUsesCustomerSpecifiedEncryption";const $n="BlobDoesNotUseCustomerSpecifiedEncryption";const Kn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const r=new Pipeline([],t);r._credential=e;return r}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const r=e.factories.filter((e=>!t.some((t=>t(e)))));if(r.length){const e=r.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(r),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...r}=e.options;let n=e._coreHttpClient;if(!n){n=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=n}let s=e._corePipeline;if(!s){const t=`azsdk-js-azure-storage-blob/${Sn}`;const n=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;s=createClientPipeline({...r,loggingOptions:{additionalAllowedHeaderNames:Jn,additionalAllowedQueryParameters:Wn,logger:Zr.info},userAgentOptions:{userAgentPrefix:n},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});s.removePolicy({phase:"Retry"});s.removePolicy({name:Ut});s.addPolicy(storageCorrectContentLengthPolicy());s.addPolicy(storageRetryPolicy(r.retryOptions),{phase:"Retry"});s.addPolicy(storageRequestFailureDetailsParserPolicy());s.addPolicy(storageBrowserPolicy());const i=processDownlevelPipeline(e);if(i){s.addPolicy(i.wrappedPolicies,i.afterRetry?{afterPhase:"Retry"}:undefined)}const o=getCredentialFromPipeline(e);if(isTokenCredential(o)){s.addPolicy(bearerTokenAuthenticationPolicy({credential:o,scopes:r.audience??Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(o instanceof StorageSharedKeyCredential){s.addPolicy(storageSharedKeyCredentialPolicy({accountName:o.accountName,accountKey:o.accountKey}),{phase:"Sign"})}e._corePipeline=s}return{...r,allowInsecureConnection:true,httpClient:n,pipeline:s}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const r of e.factories){if(isTokenCredential(r.credential)){t=r.credential}else if(isStorageSharedKeyCredential(r)){return r}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const r={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const n={log(e,t){},shouldLog(e){return false}};const s=e.create(r,n);const i=s.constructor.name;return t.some((e=>i.startsWith(e)))}var Xn;(function(e){e["AES256"]="AES256"})(Xn||(Xn={}));var Zn;(function(e){e["Backup"]="backup"})(Zn||(Zn={}));var es;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(es||(es={}));var ts;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ts||(ts={}));const rs={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ns={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const as={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const As={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const cs={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const ls={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const us={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const ds={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ms={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ps={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const gs={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const hs={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const ys={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Cs={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Es={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const Bs={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Is={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Qs={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const bs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Ss={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ns={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ws={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const Rs={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const xs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const Ds={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ks={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const vs={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ts={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Ps={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const Ms={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Ls={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Fs={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Us={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Os={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Hs={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const _s={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const zs={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const qs={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const Gs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const Vs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ys={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ii={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Si={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ni={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const wi={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ri={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Di={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ki={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ti={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mi={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Fi={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ui={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _i={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const qi={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Vi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $i={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xi={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Zi={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const eo={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ro={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const no={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const so={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const oo={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ao={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Ao={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const uo={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const mo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const po={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ho={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const fo={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Co={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Eo={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Bo={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Io={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qo={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const So={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const No={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wo={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ro={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Do={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ko={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const To={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Po={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Mo={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qo={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Wo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Aa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const la={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const ua={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ha={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ca={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ea={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ba={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qa={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ba={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Sa={parameterPath:"blobServiceProperties",mapper:rs};const Na={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const wa={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Ra={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const xa={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Da={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const ka={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const va={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Ta={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Pa={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ma={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const La={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const Fa={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Ua={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Oa={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Ha={parameterPath:"keyInfo",mapper:hs};const _a={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const za={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const qa={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ga={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Va={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Ya={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Ja={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wa={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const ja={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const $a={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const Ka={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Xa={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Za={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const eA={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const tA={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const rA={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const nA={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sA={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const iA={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const oA={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const aA={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const AA={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const cA={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const lA={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const uA={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const dA={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mA={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const pA={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const gA={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const hA={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const fA={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const yA={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const CA={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const EA={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const BA={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const IA={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const QA={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const bA={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const SA={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const NA={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const wA={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const RA={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const xA={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const DA={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const kA={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const vA={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const TA={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const PA={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const MA={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const LA={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const FA={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const UA={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const OA={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const HA={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const _A={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const zA={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const qA={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const GA={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const VA={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const YA={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const JA={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const WA={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jA={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const $A={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const KA={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const XA={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ZA={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const ec={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tc={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const rc={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const nc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const sc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const ic={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const oc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const ac={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Ac={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const cc={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const lc={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const uc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const dc={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const mc={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const pc={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const gc={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const hc={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const fc={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yc={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Cc={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Ec={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bc={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Ic={parameterPath:["options","queryRequest"],mapper:Os};const Qc={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bc={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Sc={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Nc={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const wc={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Rc={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const xc={parameterPath:["options","tags"],mapper:Bs};const Dc={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const kc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const vc={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Tc={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Pc={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Mc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Lc={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Fc={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Uc={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oc={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Hc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const _c={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const zc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const qc={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Gc={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Vc={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Yc={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Jc={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Wc={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jc={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const $c={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Kc={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const Xc={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zc={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const el={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tl={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const rl={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const nl={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const sl={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const il={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ol={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const al={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Al={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const cl={parameterPath:"blocks",mapper:Ts};const ll={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ul={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},ml)}getProperties(e){return this.client.sendOperationRequest({options:e},pl)}getStatistics(e){return this.client.sendOperationRequest({options:e},gl)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},hl)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},fl)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},yl)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},Cl)}filterBlobs(e){return this.client.sendOperationRequest({options:e},El)}}const dl=createSerializer(s,true);const ml={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ys},default:{bodyMapper:ls,headersMapper:Js}},requestBody:Sa,queryParameters:[Ra,xa,Da],urlParameters:[wa],headerParameters:[ba,Na,ka,va],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const pl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rs,headersMapper:Ws},default:{bodyMapper:ls,headersMapper:js}},queryParameters:[Ra,xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const gl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:us,headersMapper:$s},default:{bodyMapper:ls,headersMapper:Ks}},queryParameters:[Ra,Da,Pa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const hl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ms,headersMapper:Xs},default:{bodyMapper:ls,headersMapper:Zs}},queryParameters:[Da,Ma,La,Fa,Ua,Oa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const fl={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:ys,headersMapper:ei},default:{bodyMapper:ls,headersMapper:ti}},requestBody:Ha,queryParameters:[Ra,Da,_a],urlParameters:[wa],headerParameters:[ba,Na,ka,va],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const yl={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ri},default:{bodyMapper:ls,headersMapper:ni}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const Cl={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:si},default:{bodyMapper:ls,headersMapper:ii}},requestBody:qa,queryParameters:[Da,Ga],urlParameters:[wa],headerParameters:[Na,ka,va,Va,Ya],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const El={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:oi},default:{bodyMapper:ls,headersMapper:ai}},queryParameters:[Da,Fa,Ua,Ja,Wa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Il)}getProperties(e){return this.client.sendOperationRequest({options:e},Ql)}delete(e){return this.client.sendOperationRequest({options:e},bl)}setMetadata(e){return this.client.sendOperationRequest({options:e},Sl)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Nl)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},wl)}restore(e){return this.client.sendOperationRequest({options:e},Rl)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},xl)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},Dl)}filterBlobs(e){return this.client.sendOperationRequest({options:e},kl)}acquireLease(e){return this.client.sendOperationRequest({options:e},vl)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Tl)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Pl)}breakLease(e){return this.client.sendOperationRequest({options:e},Ml)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},Ll)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Fl)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ul)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ol)}}const Bl=createSerializer(s,true);const Il={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ai},default:{bodyMapper:ls,headersMapper:ci}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,Ka,Xa,Za],isXML:true,serializer:Bl};const Ql={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:li},default:{bodyMapper:ls,headersMapper:ui}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,eA],isXML:true,serializer:Bl};const bl={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:di},default:{bodyMapper:ls,headersMapper:mi}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA],isXML:true,serializer:Bl};const Sl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:pi},default:{bodyMapper:ls,headersMapper:gi}},queryParameters:[Da,ja,nA],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA],isXML:true,serializer:Bl};const Nl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:hi},default:{bodyMapper:ls,headersMapper:fi}},queryParameters:[Da,ja,sA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA],isXML:true,serializer:Bl};const wl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:yi},default:{bodyMapper:ls,headersMapper:Ci}},requestBody:iA,queryParameters:[Da,ja,sA],urlParameters:[wa],headerParameters:[ba,Na,ka,va,Ka,eA,tA,rA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bl};const Rl={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ei},default:{bodyMapper:ls,headersMapper:Bi}},queryParameters:[Da,ja,oA],urlParameters:[wa],headerParameters:[ka,va,Ta,aA,AA],isXML:true,serializer:Bl};const xl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ii},default:{bodyMapper:ls,headersMapper:Qi}},queryParameters:[Da,ja,cA],urlParameters:[wa],headerParameters:[ka,va,Ta,lA,uA],isXML:true,serializer:Bl};const Dl={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:bi},default:{bodyMapper:ls,headersMapper:Si}},requestBody:qa,queryParameters:[Da,Ga,ja],urlParameters:[wa],headerParameters:[Na,ka,va,Va,Ya],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bl};const kl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:Ni},default:{bodyMapper:ls,headersMapper:wi}},queryParameters:[Da,Fa,Ua,Ja,Wa,ja],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const vl={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ri},default:{bodyMapper:ls,headersMapper:xi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,mA,pA,gA],isXML:true,serializer:Bl};const Tl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Di},default:{bodyMapper:ls,headersMapper:ki}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,hA,fA],isXML:true,serializer:Bl};const Pl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:vi},default:{bodyMapper:ls,headersMapper:Ti}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,yA],isXML:true,serializer:Bl};const Ml={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Pi},default:{bodyMapper:ls,headersMapper:Mi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,CA,EA],isXML:true,serializer:Bl};const Ll={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Li},default:{bodyMapper:ls,headersMapper:Fi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,BA,IA],isXML:true,serializer:Bl};const Fl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ss,headersMapper:Ui},default:{bodyMapper:ls,headersMapper:Oi}},queryParameters:[Da,Ma,La,Fa,Ua,ja,QA,bA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const Ul={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ds,headersMapper:Hi},default:{bodyMapper:ls,headersMapper:_i}},queryParameters:[Da,Ma,La,Fa,Ua,ja,QA,bA,SA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const Ol={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:zi},default:{bodyMapper:ls,headersMapper:qi}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},_l)}getProperties(e){return this.client.sendOperationRequest({options:e},zl)}delete(e){return this.client.sendOperationRequest({options:e},ql)}undelete(e){return this.client.sendOperationRequest({options:e},Gl)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Vl)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Yl)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Jl)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Wl)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},jl)}setMetadata(e){return this.client.sendOperationRequest({options:e},$l)}acquireLease(e){return this.client.sendOperationRequest({options:e},Kl)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Xl)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Zl)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},eu)}breakLease(e){return this.client.sendOperationRequest({options:e},tu)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ru)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},nu)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},su)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},iu)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ou)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},au)}query(e){return this.client.sendOperationRequest({options:e},Au)}getTags(e){return this.client.sendOperationRequest({options:e},cu)}setTags(e){return this.client.sendOperationRequest({options:e},lu)}}const Hl=createSerializer(s,true);const _l={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Gi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Gi},default:{bodyMapper:ls,headersMapper:Vi}},queryParameters:[Da,NA,wA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,xA,DA,kA,vA,TA,PA,MA,LA],isXML:true,serializer:Hl};const zl={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Yi},default:{bodyMapper:ls,headersMapper:Ji}},queryParameters:[Da,NA,wA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,kA,vA,TA,PA,MA,LA],isXML:true,serializer:Hl};const ql={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Wi},default:{bodyMapper:ls,headersMapper:ji}},queryParameters:[Da,NA,wA,UA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,FA],isXML:true,serializer:Hl};const Gl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$i},default:{bodyMapper:ls,headersMapper:Ki}},queryParameters:[Da,oA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const Vl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xi},default:{bodyMapper:ls,headersMapper:Zi}},queryParameters:[Da,OA],urlParameters:[wa],headerParameters:[ka,va,Ta,HA,_A],isXML:true,serializer:Hl};const Yl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eo},default:{bodyMapper:ls,headersMapper:to}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,zA,qA,GA,VA,YA,JA],isXML:true,serializer:Hl};const Jl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ro},default:{bodyMapper:ls,headersMapper:no}},queryParameters:[Da,NA,wA,WA],urlParameters:[wa],headerParameters:[ka,va,Ta,rA,jA,$A],isXML:true,serializer:Hl};const Wl={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:so},default:{bodyMapper:ls,headersMapper:oo}},queryParameters:[Da,NA,wA,WA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const jl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ao},default:{bodyMapper:ls,headersMapper:Ao}},queryParameters:[Da,NA,wA,KA],urlParameters:[wa],headerParameters:[ka,va,Ta,XA],isXML:true,serializer:Hl};const $l={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:co},default:{bodyMapper:ls,headersMapper:lo}},queryParameters:[Da,nA],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA],isXML:true,serializer:Hl};const Kl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:uo},default:{bodyMapper:ls,headersMapper:mo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,mA,pA,gA,PA,MA,LA],isXML:true,serializer:Hl};const Xl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:po},default:{bodyMapper:ls,headersMapper:go}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,hA,fA,PA,MA,LA],isXML:true,serializer:Hl};const Zl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ho},default:{bodyMapper:ls,headersMapper:fo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,yA,PA,MA,LA],isXML:true,serializer:Hl};const eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yo},default:{bodyMapper:ls,headersMapper:Co}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,BA,IA,PA,MA,LA],isXML:true,serializer:Hl};const tu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Eo},default:{bodyMapper:ls,headersMapper:Bo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,CA,EA,PA,MA,LA],isXML:true,serializer:Hl};const ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Io},default:{bodyMapper:ls,headersMapper:Qo}},queryParameters:[Da,ec],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA],isXML:true,serializer:Hl};const nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:bo},default:{bodyMapper:ls,headersMapper:So}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,PA,MA,LA,jA,$A,tc,rc,nc,sc,ic,oc,ac,Ac,cc,lc,uc],isXML:true,serializer:Hl};const su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:No},default:{bodyMapper:ls,headersMapper:wo}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,PA,MA,LA,jA,$A,ZA,tc,nc,sc,ic,oc,Ac,cc,uc,dc,mc,pc,gc,hc],isXML:true,serializer:Hl};const iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Ro},default:{bodyMapper:ls,headersMapper:xo}},queryParameters:[Da,fc,Cc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,yc],isXML:true,serializer:Hl};const ou={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Do},202:{headersMapper:Do},default:{bodyMapper:ls,headersMapper:ko}},queryParameters:[Da,NA,wA,Ec],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA,rc,Bc],isXML:true,serializer:Hl};const au={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:vo},default:{bodyMapper:ls,headersMapper:To}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const Au={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Po},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Po},default:{bodyMapper:ls,headersMapper:Mo}},requestBody:Ic,queryParameters:[Da,NA,Qc],urlParameters:[wa],headerParameters:[ba,Na,ka,va,eA,tA,rA,kA,vA,TA,PA,MA,LA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hl};const cu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Bs,headersMapper:Lo},default:{bodyMapper:ls,headersMapper:Fo}},queryParameters:[Da,NA,wA,bc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA,Sc,Nc,wc,Rc],isXML:true,serializer:Hl};const lu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Uo},default:{bodyMapper:ls,headersMapper:Oo}},requestBody:xc,queryParameters:[Da,wA,bc],urlParameters:[wa],headerParameters:[ba,Na,ka,va,eA,LA,Sc,Nc,wc,Rc,Dc,kc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hl};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:r},du)}uploadPages(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},mu)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},pu)}uploadPagesFromURL(e,t,r,n,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:r,range:n,options:s},gu)}getPageRanges(e){return this.client.sendOperationRequest({options:e},hu)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},fu)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},yu)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},Cu)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Eu)}}const uu=createSerializer(s,true);const du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ho},default:{bodyMapper:ls,headersMapper:_o}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,vc,Tc,Pc],isXML:true,serializer:uu};const mu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zo},default:{bodyMapper:ls,headersMapper:qo}},requestBody:Lc,queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Va,eA,tA,rA,RA,kA,vA,TA,PA,MA,LA,ZA,Dc,kc,Mc,Fc,Oc,Hc,_c,zc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:uu};const pu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:ls,headersMapper:Vo}},queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,RA,kA,vA,TA,PA,MA,LA,ZA,Hc,_c,zc,qc],isXML:true,serializer:uu};const gu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Yo},default:{bodyMapper:ls,headersMapper:Jo}},queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,nc,sc,ic,oc,mc,pc,hc,Oc,Hc,_c,zc,Gc,Vc,Yc,Jc],isXML:true,serializer:uu};const hu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:Wo},default:{bodyMapper:ls,headersMapper:jo}},queryParameters:[Da,Fa,Ua,NA,Wc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,PA,MA,LA],isXML:true,serializer:uu};const fu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:$o},default:{bodyMapper:ls,headersMapper:Ko}},queryParameters:[Da,Fa,Ua,NA,Wc,jc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,PA,MA,LA,$c],isXML:true,serializer:uu};const yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xo},default:{bodyMapper:ls,headersMapper:Zo}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,Tc],isXML:true,serializer:uu};const Cu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ea},default:{bodyMapper:ls,headersMapper:ta}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,Pc,Kc],isXML:true,serializer:uu};const Eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ra},default:{bodyMapper:ls,headersMapper:na}},queryParameters:[Da,Xc],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,PA,MA,LA,Ac],isXML:true,serializer:uu};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Iu)}appendBlock(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},Qu)}appendBlockFromUrl(e,t,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:r},bu)}seal(e){return this.client.sendOperationRequest({options:e},Su)}}const Bu=createSerializer(s,true);const Iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sa},default:{bodyMapper:ls,headersMapper:ia}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,cc,uc,Zc],isXML:true,serializer:Bu};const Qu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oa},default:{bodyMapper:ls,headersMapper:aa}},requestBody:Lc,queryParameters:[Da,el],urlParameters:[wa],headerParameters:[ka,va,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,Dc,kc,Mc,Fc,tl,rl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Bu};const bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Aa},default:{bodyMapper:ls,headersMapper:ca}},queryParameters:[Da,el],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,nc,sc,ic,oc,mc,pc,hc,Dc,Gc,Yc,tl,rl,nl],isXML:true,serializer:Bu};const Su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:la},default:{bodyMapper:ls,headersMapper:ua}},queryParameters:[Da,sl],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,rl],isXML:true,serializer:Bu};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},wu)}putBlobFromUrl(e,t,r){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:r},Ru)}stageBlock(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:r,options:n},xu)}stageBlockFromURL(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:r,options:n},Du)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},ku)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},vu)}}const Nu=createSerializer(s,true);const wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:da},default:{bodyMapper:ls,headersMapper:ma}},requestBody:Lc,queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,Dc,kc,Mc,Fc,il],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Nu};const Ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pa},default:{bodyMapper:ls,headersMapper:ga}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,ZA,tc,nc,sc,ic,oc,ac,Ac,cc,mc,pc,gc,hc,Dc,il,ol],isXML:true,serializer:Nu};const xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ha},default:{bodyMapper:ls,headersMapper:fa}},requestBody:Lc,queryParameters:[Da,al,Al],urlParameters:[wa],headerParameters:[ka,va,Va,eA,kA,vA,TA,ZA,Dc,kc,Mc,Fc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Nu};const Du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ya},default:{bodyMapper:ls,headersMapper:Ca}},queryParameters:[Da,al,Al],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,kA,vA,TA,ZA,nc,sc,ic,oc,mc,pc,hc,Gc,Yc,nl],isXML:true,serializer:Nu};const ku={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ea},default:{bodyMapper:ls,headersMapper:Ba}},requestBody:cl,queryParameters:[Da,ll],urlParameters:[wa],headerParameters:[ba,Na,ka,va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,Dc,kc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Nu};const vu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:Ia},default:{bodyMapper:ls,headersMapper:Qa}},queryParameters:[Da,NA,ll,ul],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA],isXML:true,serializer:Nu};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const r={requestContentType:"application/json; charset=utf-8"};const n=`azsdk-js-azure-storage-blob/12.30.0`;const s=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;const i={...r,...t,userAgentOptions:{userAgentPrefix:s},endpoint:t.endpoint??t.baseUri??"{url}"};super(i);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const r={...t};if(r.path==="/{containerName}"||r.path==="/{containerName}/{blob}"){r.path=""}return super.sendOperationRequest(e,r)}}function utils_common_escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_utils_common_escape(r);t.pathname=r;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=Yn}let r=utils_common_getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=utils_common_getValueInConnString(e,"AccountName");i=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!r){n=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=utils_common_getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let n=utils_common_getValueInConnString(e,"AccountName");if(!n){n=utils_common_getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function utils_common_setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function utils_common_getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+utils_common_padStart(t.toString(),r-e.length,"0");return utils_common_base64encode(i)}async function utils_utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,utils_common_sanitizeURL(n))}else{t.set(r,n)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&Kn.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.blobTagSet.push({key:r,value:n})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const n=r.split("_");const s="or-";if(n[0].startsWith(s)){n[0]=n[0].substring(s.length)}const i={ruleId:n[1],replicationStatus:e[r]};const o=t.findIndex((e=>e.policyId===n[0]));if(o>-1){t[o].rules.push(i)}else{t.push({policyId:n[0],rules:[i]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let n=0;let s=0;while(n0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){return generateBlobSASQueryParametersInternal(e,t,r).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,r){const n=e.version?e.version:Nn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let i;if(s===undefined&&r!==undefined){i=new UserDelegationKeyCredential(r,t)}if(s===undefined&&i===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(n>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{if(n>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,i)}else{return generateBlobSASQueryParametersUDK20201206(e,i)}}}if(n>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(n>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,i)}else{return generateBlobSASQueryParametersUDK20181109(e,i)}}}if(n>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let n;if(e.permissions){if(e.blobName){n=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{n=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[n?n:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const i=t.computeHMACSHA256(s);return{sasQueryParameters:new SASQueryParameters(e.version,i,n,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:s}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:i}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:i}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:i}}function getCanonicalName(e,t,r){const n=[`/blob/${e}/${t}`];if(r){n.push(`/${r}`)}return n.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Nn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const r=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=r.container}else{this._isContainer=false;this._containerOrBlobOperation=r.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-acquireLease",t,(async r=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:r.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-changeLease",t,(async r=>{const n=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));this._leaseId=e;return n}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 Tu.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 Tu.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-breakLease",t,(async r=>{const n={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(n))}))}}class RetriableReadableStream extends fe.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,r,n,s={}){super({highWaterMark:s.highWaterMark});this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+n-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return kt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,r,n,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,n,s)}}const Mu=16;const Lu=new Uint8Array([79,98,106,1]);const Fu="avro.codec";const Uu="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const n=await e.read(t,{abortSignal:r.abortSignal});if(n.length!==t){throw new Error("Hit stream end.")}return n}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let n=0;let s,i,o;do{s=await AvroParser.readByte(e,t);i=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return n}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const n=new TextDecoder;return n.decode(r)}static async readMapPair(e,t,r={}){const n=await AvroParser.readString(e,r);const s=await t(e,r);return{key:n,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const n=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of n){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const n=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);n.push(s)}}return n}}var Ou;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Ou||(Ou={}));var Hu;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(Hu||(Hu={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case Hu.NULL:case Hu.BOOLEAN:case Hu.INT:case Hu.LONG:case Hu.FLOAT:case Hu.DOUBLE:case Hu.BYTES:case Hu.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case Ou.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Ou.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Ou.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Ou.ARRAY:case Ou.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case Hu.NULL:return AvroParser.readNull();case Hu.BOOLEAN:return AvroParser.readBoolean(e,t);case Hu.INT:return AvroParser.readInt(e,t);case Hu.LONG:return AvroParser.readLong(e,t);case Hu.FLOAT:return AvroParser.readFloat(e,t);case Hu.DOUBLE:return AvroParser.readDouble(e,t);case Hu.BYTES:return AvroParser.readBytes(e,t);case Hu.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const n in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,n)){r[n]=await this._fields[n].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,Mu,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}const _u=e(import.meta.url)("buffer");const zu=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return _u.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw zu}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const r=this._readable.read(e);if(r){this._position+=r.length;return this.toUint8Array(r)}else{return new Promise(((r,n)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();n()};const abortHandler=()=>{cleanUp();n(zu)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends fe.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const n=t.description;if(typeof n!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:n})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return kt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var qu;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(qu||(qu={}));var Gu;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(Gu||(Gu={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=Vn}}var Vu;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(Vu||(Vu={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:r,_response:{...e._response,parsedBody:{pageRange:t,clearRange:r}}}}const Yu=esm_createClientLogger("core-lro");const Ju=2e3;const Wu=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:n}=e;return e=>{if(n(e)){r.setError(t,e);r.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let r=e;if(r.slice(-1)!=="."){r=r+"."}return r+" "+t}function simplifyError(e){let t=e.message;let r=e.code;let n=e;while(n.innererror){n=n.innererror;r=n.code;t=appendReadableErrorMessage(t,n.message)}return{code:r,message:t}}function processOperationStatus(e){const{state:t,stateProxy:r,status:n,isDone:s,processResult:i,getError:o,response:a,setErrorAsResult:A}=e;switch(n){case"succeeded":{r.setSucceeded(t);break}case"failed":{const e=o===null||o===void 0?void 0:o(a);let n="";if(e){const{code:t,message:r}=simplifyError(e);n=`. ${t}. ${r}`}const s=`The long-running operation has failed${n}`;r.setError(t,new Error(s));r.setFailed(t);Yu.warning(s);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(a,t))||s===undefined&&["succeeded","canceled"].concat(A?[]:["failed"]).includes(n)){r.setResult(t,buildResult({response:a,state:t,processResult:i}))}}function buildResult(e){const{processResult:t,response:r,state:n}=e;return t?t(r,n):r}async function operation_initOperation(e){const{init:t,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:i,setErrorAsResult:o}=e;const{operationLocation:a,resourceLocation:A,metadata:c,response:l}=await t();if(a)i===null||i===void 0?void 0:i(a,false);const u={metadata:c,operationLocation:a,resourceLocation:A};Yu.verbose(`LRO: Operation description:`,u);const d=r.initState(u);const m=s({response:l,state:d,operationLocation:a});processOperationStatus({state:d,status:m,stateProxy:r,response:l,setErrorAsResult:o,processResult:n});return d}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:n,operationLocation:s,getOperationStatus:i,getResourceLocation:o,isOperationError:a,options:A}=e;const c=await t(s,A).catch(setStateError({state:r,stateProxy:n,isOperationError:a}));const l=i(c,r);Yu.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${l}\n\tPolling status: ${Wu.includes(l)?"Stopped":"Running"}`);if(l==="succeeded"){const e=o(c,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:n,isOperationError:a})),status:l}}}return{response:c,status:l}}async function operation_pollOperation(e){const{poll:t,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:l,processResult:u,getError:d,updateState:m,setDelay:p,isDone:g,setErrorAsResult:h}=e;const{operationLocation:f}=r.config;if(f!==undefined){const{response:e,status:y}=await pollOperationHelper({poll:t,getOperationStatus:i,state:r,stateProxy:n,operationLocation:f,getResourceLocation:o,isOperationError:A,options:s});processOperationStatus({status:y,response:e,state:r,stateProxy:n,isDone:g,processResult:u,getError:d,setErrorAsResult:h});if(!Wu.includes(y)){const t=l===null||l===void 0?void 0:l(e);if(t)p(t);const n=a===null||a===void 0?void 0:a(e,r);if(n!==undefined){const e=f!==n;r.config.operationLocation=n;c===null||c===void 0?void 0:c(n,e)}else c===null||c===void 0?void 0:c(f,false)}m===null||m===void 0?void 0:m(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=e;switch(n){case"PUT":{return s}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:s}default:{return getDefault()}}function getDefault(){switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return s}case"location":default:{return r}}}}function operation_inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:n,resourceLocationConfig:s}=e;const i=getOperationLocationHeader(t);const o=getAzureAsyncOperationHeader(t);const a=getOperationLocationPollingUrl({operationLocation:i,azureAsyncOperation:o});const A=getLocationHeader(t);const c=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(a!==undefined){return{mode:"OperationLocation",operationLocation:a,resourceLocation:findResourceLocation({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}}else if(A!==undefined){return{mode:"ResourceLocation",operationLocation:A}}else if(c==="PUT"&&n){return{mode:"Body",operationLocation:n}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(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:{Yu.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:n,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const i=(r=n===null||n===void 0?void 0:n.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:i,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){Yu.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){Yu.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:n?({flatResponse:e},t)=>n(e,t):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:i})}function operation_getOperationLocation({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}function accessBodyProperty({flatResponse:e,rawResponse:t},r){var n,s;return(n=e===null||e===void 0?void 0:e[r])!==null&&n!==void 0?n:(s=t.body)===null||s===void 0?void 0:s[r]}function operation_getResourceLocation(e,t){const r=accessBodyProperty(e,"resourceLocation");if(r&&typeof r==="string"){t.config.resourceLocation=r}return t.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:n,processResult:s,updateState:i,setDelay:o,state:a,setErrorAsResult:A}=e;return operation_pollOperation({state:a,stateProxy:r,setDelay:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:i,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:n,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:A})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:i,getPollingInterval:o,getError:a,resolveOnUnsuccessful:A}=e;return async({init:e,poll:c},l)=>{const{processResult:u,updateState:d,withOperationLocation:m,intervalInMs:p=POLL_INTERVAL_IN_MS,restoreFrom:g}=l||{};const h=createStateProxy();const f=m?(()=>{let e=false;return(t,r)=>{if(r)m(t);else if(!e)m(t);e=true}})():undefined;const y=g?deserializeState(g):await initOperation({init:e,stateProxy:h,processResult:u,getOperationStatus:r,withOperationLocation:f,setErrorAsResult:!A});let C;const E=new AbortController;const B=new Map;const handleProgressEvents=async()=>B.forEach((e=>e(y)));const I="Operation was canceled";let Q=p;const b={getOperationState:()=>y,getResult:()=>y.result,isDone:()=>["succeeded","failed","canceled"].includes(y.status),isStopped:()=>C===undefined,stopPolling:()=>{E.abort()},toString:()=>JSON.stringify({state:y}),onProgress:e=>{const t=Symbol();B.set(t,e);return()=>B.delete(t)},pollUntilDone:e=>C!==null&&C!==void 0?C:C=(async()=>{const{abortSignal:t}=e||{};function abortListener(){E.abort()}const r=E.signal;if(t===null||t===void 0?void 0:t.aborted){E.abort()}else if(!r.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!b.isDone()){await b.poll({abortSignal:r});while(!b.isDone()){await delay(Q,{abortSignal:r});await b.poll({abortSignal:r})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(A){return b.getResult()}else{switch(y.status){case"succeeded":return b.getResult();case"canceled":throw new Error(I);case"failed":throw y.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{C=undefined})),async poll(e){if(A){if(b.isDone())return}else{switch(y.status){case"succeeded":return;case"canceled":throw new Error(I);case"failed":throw y.error}}await pollOperation({poll:c,state:y,stateProxy:h,getOperationLocation:t,isOperationError:s,withOperationLocation:f,getPollingInterval:o,getOperationStatus:n,getResourceLocation:i,processResult:u,getError:a,updateState:d,options:e,setDelay:e=>{Q=e},setErrorAsResult:!A});await handleProgressEvents();if(!A){switch(y.status){case"canceled":throw new Error(I);case"failed":throw y.error}}}};return b}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:i,updateState:o,withOperationLocation:a,resolveOnUnsuccessful:A=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:A})({init:async()=>{const t=await e.sendInitialRequest();const n=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:n,withOperationLocation:a,restoreFrom:i,updateState:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,n,s,i,o){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=n;this.processResult=s;this.updateState=i;this.isDone=o}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const n=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:n?(e,{rawResponse:t})=>n(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){Yu.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=Ju,resumeFrom:n,resolveOnUnsuccessful:s=false,isDone:i,lroResourceLocationConfig:o,processResult:a,updateState:A}=t||{};const c=n?operation_deserializeState(n):{};const l=new GenericPollOperation(c,e,!s,o,a,A,i);super(l);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};l.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:r,intervalInMs:n=15e3,onProgress:s,resumeFrom:i,startCopyFromURLOptions:o}=e;let a;if(i){a=JSON.parse(i).state}const A=makeBlobBeginCopyFromURLPollOperation({...a,blobClient:t,copySource:r,startCopyFromURLOptions:o});super(A);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=n}delay(){return delay_delay(this.intervalInMs)}}const ju=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const $u=async function update(e={}){const t=this.state;const{blobClient:r,copySource:n,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(n,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:n,copyProgress:s}=r;const i=t.copyProgress;if(s){t.copyProgress=s}if(n==="pending"&&s!==i&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(n==="success"){t.result=r;t.isCompleted=true}else if(n==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const Ku=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:ju,toString:Ku,update:$u}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Xu;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Xu||(Xu={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Xu.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new en.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Xu.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const A=setTimeout((()=>a(new Error(`The operation cannot be completed in timeout.`))),Tn);e.on("readable",(()=>{if(i>=o){clearTimeout(A);n();return}let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,s)}const c=i+a.length>o?o-i:a.length;t.fill(a.slice(0,c),r+i,r+i+c);i+=c}));e.on("end",(()=>{clearTimeout(A);if(i{clearTimeout(A);a(e)}))}))}async function streamToBuffer2(e,t,r){let n=0;const s=t.length;return new Promise(((i,o)=>{e.on("readable",(()=>{let i=e.read();if(!i){return}if(typeof i==="string"){i=Buffer.from(i,r)}if(n+i.length>s){o(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(i,n,n+i.length);n+=i.length}));e.on("end",(()=>{i(n)}));e.on("error",o)}))}async function streamToBuffer3(e,t){return new Promise(((r,n)=>{const s=[];e.on("data",(e=>{s.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{r(Buffer.concat(s))}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,n)=>{const s=Zu.createWriteStream(t);e.on("error",(e=>{n(e)}));s.on("error",(e=>{n(e)}));s.on("close",r);e.pipe(s)}))}const ed=j.promisify(Zu.stat);const td=Zu.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,r,n){n=n||{};let s;let i;if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Mn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Mn.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new Clients_BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-download",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onDownloadProgress:kt?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)};if(!kt){return i}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=vn}if(s.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!s.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(i,(async t=>{const n={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||s.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:r.conditions?.tagConditions},range:rangeToString({count:e+s.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download({abortSignal:r.abortSignal,...n})).readableStreamBody}),e,s.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}))}async exists(e={}){return Tu.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===jn||e.details.errorCode===$n)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-getProperties",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...r,_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return Tu.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return Tu.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return Tu.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-setHTTPHeaders",t,(async r=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async setTags(e,t={}){return Tu.withSpan("BlobClient-setTags",t,(async r=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return Tu.withSpan("BlobClient-getTags",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={...r,_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}};return n}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const n=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await n.poll();return n}async abortCopyFromURL(e,t={}){return Tu.withSpan("BlobClient-abortCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return Tu.withSpan("BlobClient-syncCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async setAccessTier(e,t={}){return Tu.withSpan("BlobClient-setAccessTier",t,(async r=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:r.tracingOptions}))))}async downloadToBuffer(e,t,r,n={}){let s;let i=0;let o=0;let a=n;if(e instanceof Buffer){s=e;i=t||0;o=typeof r==="number"?r:0}else{i=typeof e==="number"?e:0;o=typeof t==="number"?t:0;a=r||{}}let A=a.blockSize??0;if(A<0){throw new RangeError("blockSize option must be >= 0")}if(A===0){A=kn}if(i<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!a.conditions){a.conditions={}}return Tu.withSpan("BlobClient-downloadToBuffer",a,(async e=>{if(!o){const t=await this.getProperties({...a,tracingOptions:e.tracingOptions});o=t.contentLength-i;if(o<0){throw new RangeError(`offset ${i} shouldn't be larger than blob size ${t.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(s.length{let r=i+o;if(n+A{const i=await this.download(t,r,{...n,tracingOptions:s.tracingOptions});if(i.readableStreamBody){await readStreamToLocalFile(i.readableStreamBody,e)}i.blobDownloadStream=undefined;return i}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const r=new URL(this.url);if(r.host.split(".")[1]==="blob"){const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}else if(utils_common_isIpEndpointStyle(r)){const n=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=n[2];t=n[4]}else{const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return Tu.withSpan("BlobClient-startCopyFromURL",t,(async r=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:r.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Tu.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return Tu.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return Tu.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Tu.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:On};return Tu.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const r=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...r,_response:r._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return Tu.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-appendBlock",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async appendBlockFromURL(e,t,r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-appendBlockFromURL",n,(async s=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:n.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:n.sourceContentMD5,sourceContentCrc64:n.sourceContentCrc64,leaseAccessConditions:n.conditions,appendPositionAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}}class Clients_BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new Clients_BlockBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!kt){throw new Error("This operation currently is only supported in Node.js.")}return Tu.withSpan("BlockBlobClient-query",t,(async r=>{const n=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:r.tracingOptions}));return new BlobQueryResponse(n,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-upload",r,(async n=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-syncUploadFromURL",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async stageBlock(e,t,r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-stageBlock",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,r,t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async stageBlockFromURL(e,t,r=0,n,s={}){ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-stageBlockFromURL",s,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!n?undefined:rangeToString({offset:r,count:n}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-commitBlockList",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async getBlockList(e,t={}){return Tu.withSpan("BlockBlobClient-getBlockList",t,(async r=>{const n=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));if(!n.committedBlocks){n.committedBlocks=[]}if(!n.uncommittedBlocks){n.uncommittedBlocks=[]}return n}))}async uploadData(e,t={}){return Tu.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(kt){let r;if(e instanceof Buffer){r=e}else if(e instanceof ArrayBuffer){r=Buffer.from(e)}else{e=e;r=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.byteLength,t)}else{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}}))}async uploadBrowserData(e,t={}){return Tu.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}))}async uploadSeekableInternal(e,t,r={}){let n=r.blockSize??0;if(n<0||n>Rn){throw new RangeError(`blockSize option must be >= 0 and <= ${Rn}`)}const s=r.maxSingleShotSize??wn;if(s<0||s>wn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${wn}`)}if(n===0){if(t>Rn*xn){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>s){n=Math.ceil(t/xn);if(n{if(t<=s){return utils_common_assertResponse(await this.upload(e(0,t),t,i))}const o=Math.floor((t-1)/n)+1;if(o>xn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${xn}`)}const a=[];const A=esm_randomUUID();let c=0;const l=new Batch(r.concurrency);for(let s=0;s{const l=utils_common_generateBlockID(A,s);const u=n*s;const d=s===o-1?t:u+n;const m=d-u;a.push(l);await this.stageBlock(l,e(u,m),m,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions});c+=m;if(r.onProgress){r.onProgress({loadedBytes:c})}}))}await l.do();return this.commitBlockList(a,i)}))}async uploadFile(e,t={}){return Tu.withSpan("BlockBlobClient-uploadFile",t,(async r=>{const n=(await ed(e)).size;return this.uploadSeekableInternal(((t,r)=>()=>td(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),n,{...t,tracingOptions:r.tracingOptions})}))}async uploadStream(e,t=Dn,r=5,n={}){if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return Tu.withSpan("BlockBlobClient-uploadStream",n,(async s=>{let i=0;const o=esm_randomUUID();let a=0;const A=[];const c=new BufferScheduler(e,t,r,(async(e,t)=>{const r=utils_common_generateBlockID(o,i);A.push(r);i++;await this.stageBlock(r,e,t,{customerProvidedKey:n.customerProvidedKey,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions});a+=t;if(n.onProgress){n.onProgress({loadedBytes:a})}}),Math.ceil(r/4*3));await c.do();return utils_common_assertResponse(await this.commitBlockList(A,{...n,tracingOptions:s.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-create",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async createIfNotExists(e,t={}){return Tu.withSpan("PageBlobClient-createIfNotExists",t,(async r=>{try{const n={ifNoneMatch:On};const s=utils_common_assertResponse(await this.create(e,{...t,conditions:n,tracingOptions:r.tracingOptions}));return{succeeded:true,...s,_response:s._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-uploadPages",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(r,e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:n.conditions,transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async uploadPagesFromURL(e,t,r,n,s={}){s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-uploadPagesFromURL",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:n}),0,rangeToString({offset:r,count:n}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async clearPages(e=0,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-clearPages",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async getPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-getPageRanges",r,(async n=>{const s=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:n.tracingOptions}));return rangeResponseFromModel(s)}))}async listPageRangesSegment(e=0,t,r,n={}){return Tu.withSpan("PageBlobClient-getPageRangesSegment",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,r,n={}){let s;if(!!r||r===undefined){do{s=await this.listPageRangesSegment(e,t,r,n);r=s.continuationToken;yield await s}while(r)}}async*listPageRangeItems(e=0,t,r={}){let n;for await(const s of this.listPageRangeItemSegments(e,t,n,r)){yield*ExtractPageRangeInfoItems(s)}}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const n=this.listPageRangeItems(e,t,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listPageRangeItemSegments(e,t,n.continuationToken,{maxPageSize:n.maxPageSize,...r})}}async getPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};return Tu.withSpan("PageBlobClient-getPageRangesDiff",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesDiffSegment(e,t,r,n,s={}){return Tu.withSpan("PageBlobClient-getPageRangesDiffSegment",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:s?.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,r,n,s){let i;if(!!n||n===undefined){do{i=await this.listPageRangesDiffSegment(e,t,r,n,s);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeDiffItems(e,t,r,n){let s;for await(const i of this.listPageRangeDiffItemSegments(e,t,r,s,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,{...n});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n})}}async getPageRangesDiffForManagedDisks(e,t,r,n={}){n.conditions=n.conditions||{};return Tu.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevSnapshotUrl:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async resize(e,t={}){t.conditions=t.conditions||{};return Tu.withSpan("PageBlobClient-resize",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async updateSequenceNumber(e,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-updateSequenceNumber",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async startCopyIncremental(e,t={}){return Tu.withSpan("PageBlobClient-startCopyIncremental",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(zn);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const rd=": ";const nd=" ";const sd=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${qn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Ln.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const n=new Array(r);let s=0;let i=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===id.UNLOCKED){this.keys[e]=id.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=id.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===id.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let n;let s;if(typeof e==="string"&&(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){n=e;s=t}else if(e instanceof BlobClient){n=e.url;s=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}return Tu.withSpan("BatchDeleteRequest-addSubRequest",r,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:n,credential:s},(async()=>{await new BlobClient(n,this.batchRequest.createPipeline(s)).delete(e)}))}))}async setBlobAccessTier(e,t,r,n){let s;let i;let o;if(typeof e==="string"&&(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){s=e;i=t;o=r}else if(e instanceof BlobClient){s=e.url;i=e.credential;o=t;n=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return Tu.withSpan("BatchSetTierRequest-addSubRequest",n,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:s,credential:i},(async()=>{await new BlobClient(s,this.batchRequest.createPipeline(i)).setAccessTier(o,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${qn}${Fn.CONTENT_TYPE}: application/http${qn}${Fn.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const r=new Pipeline([]);r._credential=e;r._corePipeline=t;return r}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${Fn.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${Gn}${qn}`].join(qn);for(const[t,r]of e.headers){this.body+=`${t}: ${r}${qn}`}this.body+=qn}preAddSubRequest(e){if(this.operationCount>=_n){throw new RangeError(`Cannot exceed ${_n} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${qn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let r="";for(const[t]of e.headers){if(utils_common_iEqual(t,Fn.X_MS_VERSION)){r=t}}if(r!==""){e.headers.delete(r)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(!t){n=newPipeline(new AnonymousCredential,r)}else{n=newPipeline(t,r)}const s=new StorageContextClient(e,getCoreClientOptions(n));const i=utils_common_getURLPath(e);if(i&&i!=="/"){this.serviceOrContainerContext=s.container}else{this.serviceOrContainerContext=s.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const n=new BlobBatch;for(const s of e){if(typeof s==="string"){await n.deleteBlob(s,t,r)}else{await n.deleteBlob(s,t)}}return this.submitBatch(n)}async setBlobsAccessTier(e,t,r,n){const s=new BlobBatch;for(const i of e){if(typeof i==="string"){await s.setBlobAccessTier(i,t,r,n)}else{await s.setBlobAccessTier(i,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return Tu.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const r=e.getHttpRequestBody();const n=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(r),e.getMultiPartContentType(),r,{...t}));const s=new BatchResponseParser(n,e.getSubRequests());const i=await s.parseBatchResponse();const o={_response:n._response,contentType:n.contentType,errorCode:n.errorCode,requestId:n.requestId,clientRequestId:n.clientRequestId,version:n.version,subResponses:i.subResponses,subResponsesSucceededCount:i.subResponsesSucceededCount,subResponsesFailedCount:i.subResponsesFailedCount};return o}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,r){let n;let s;r=r||{};if(isPipelineLike(t)){s=e;n=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){s=e;n=newPipeline(t,r)}else if(!t&&typeof t!=="string"){s=e;n=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const i=t;const o=utils_common_extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);s=utils_common_appendToURLPath(o.url,encodeURIComponent(i));if(!r.proxyOptions){r.proxyOptions=proxyPolicy_getDefaultProxySettings(o.proxyUri)}n=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){s=utils_common_appendToURLPath(o.url,encodeURIComponent(i))+"?"+o.accountSas;n=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(s,n);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return Tu.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return Tu.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return Tu.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new Clients_BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return Tu.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return Tu.withSpan("ContainerClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const r=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={_response:r._response,blobPublicAccess:r.blobPublicAccess,date:r.date,etag:r.etag,errorCode:r.errorCode,lastModified:r.lastModified,requestId:r.requestId,clientRequestId:r.clientRequestId,signedIdentifiers:[],version:r.version};for(const e of r){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}n.signedIdentifiers.push({accessPolicy:t,id:e.id})}return n}))}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("ContainerClient-setAccessPolicy",r,(async n=>{const s=[];for(const e of t||[]){s.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:r.abortSignal,access:e,containerAcl:s,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,n={}){return Tu.withSpan("ContainerClient-uploadBlockBlob",n,(async n=>{const s=this.getBlockBlobClient(e);const i=await s.upload(t,r,n);return{blockBlobClient:s,response:i}}))}async deleteBlob(e,t={}){return Tu.withSpan("ContainerClient-deleteBlob",t,(async r=>{let n=this.getBlobClient(e);if(t.versionId){n=n.withVersion(t.versionId)}return n.delete(r)}))}async listBlobFlatSegment(e,t={}){return Tu.withSpan("ContainerClient-listBlobFlatSegment",t,(async r=>{const n=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:r.tracingOptions}));const s={...n,_response:{...n._response,parsedBody:ConvertInternalResponseOfListBlobFlat(n._response.parsedBody)},segment:{...n.segment,blobItems:n.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return s}))}async listBlobHierarchySegment(e,t,r={}){return Tu.withSpan("ContainerClient-listBlobHierarchySegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...r,tracingOptions:n.tracingOptions}));const i={...s,_response:{...s._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(s._response.parsedBody)},segment:{...s.segment,blobItems:s.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:s.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return i}))}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listBlobFlatSegment(e,t);e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async*listHierarchySegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.listBlobHierarchySegment(e,t,r);t=n.continuationToken;yield await n}while(t)}}async*listItemsByHierarchy(e,t={}){let r;for await(const n of this.listHierarchySegments(e,r,t)){const e=n.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const n={...t,...r.length>0?{include:r}:{}};const s=this.listItemsByHierarchy(e,n);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async findBlobsByTagsSegment(e,t,r={}){return Tu.withSpan("ContainerClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async getAccountInfo(e={}){return Tu.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const r=e.version?e.version:Nn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const n=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const i=AccountSASResourceTypes.parse(e.resourceTypes).toString();let o;if(r>="2020-12-06"){o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const a=t.computeHMACSHA256(o);return{sasQueryParameters:new SASQueryParameters(r,a,n.toString(),s,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:o}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const r=utils_common_extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(r.proxyUri)}const n=newPipeline(e,t);return new BlobServiceClient(r.url,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){n=newPipeline(t,r)}else{n=newPipeline(new AnonymousCredential,r)}super(e,n);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return Tu.withSpan("BlobServiceClient-createContainer",t,(async t=>{const r=this.getContainerClient(e);const n=await r.create(t);return{containerClient:r,containerCreateResponse:n}}))}async deleteContainer(e,t={}){return Tu.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const r=this.getContainerClient(e);return r.delete(t)}))}async undeleteContainer(e,t,r={}){return Tu.withSpan("BlobServiceClient-undeleteContainer",r,(async n=>{const s=this.getContainerClient(r.destinationContainerName||e);const i=s["storageClientContext"].container;const o=utils_common_assertResponse(await i.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:n.tracingOptions}));return{containerClient:s,containerUndeleteResponse:o}}))}async getProperties(e={}){return Tu.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return Tu.withSpan("BlobServiceClient-setProperties",t,(async r=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:r.tracingOptions}))))}async getStatistics(e={}){return Tu.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Tu.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return Tu.withSpan("BlobServiceClient-listContainersSegment",t,(async r=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:r.tracingOptions}))))}async findBlobsByTagsSegment(e,t,r={}){return Tu.withSpan("BlobServiceClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listContainersSegment(e,t);r.containerItems=r.containerItems||[];e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async getUserDelegationKey(e,t,r={}){return Tu.withSpan("BlobServiceClient-getUserDelegationKey",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}));const i={signedObjectId:s.signedObjectId,signedTenantId:s.signedTenantId,signedStartsOn:new Date(s.signedStartsOn),signedExpiresOn:new Date(s.signedExpiresOn),signedService:s.signedService,signedVersion:s.signedVersion,value:s.value};const o={_response:s._response,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,date:s.date,errorCode:s.errorCode,...i};return o}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).toString();return utils_common_appendToURLQuery(this.url,s)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).stringToSign}}var od;(function(e){e["AES256"]="AES256"})(od||(od={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf 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(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore 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`;super(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);i.pq(`Sent ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadCacheArchiveSDK(e,t,r){return ad(this,void 0,void 0,(function*(){var n;const s=new BlobClient(e);const o=s.getBlockBlobClient();const a=new UploadProgress((n=r===null||r===void 0?void 0:r.archiveSizeBytes)!==null&&n!==void 0?n:0);const A={blockSize:r===null||r===void 0?void 0:r.uploadChunkSize,concurrency:r===null||r===void 0?void 0:r.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer();i.Yz(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);const e=yield o.uploadFile(t,A);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){i.$e(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{a.stopDisplayTimer()}}))}var Ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function requestUtils_isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[V.Hv.BadGateway,V.Hv.ServiceUnavailable,V.Hv.GatewayTimeout];return t.includes(e)}function sleep(e){return Ad(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r){return Ad(this,arguments,void 0,(function*(e,t,r,n=P,s=M,o=undefined){let a="";let A=1;while(A<=n){let c=undefined;let l=undefined;let u=false;try{c=yield t()}catch(e){if(o){c=o(e)}u=true;a=e.message}if(c){l=r(c);if(!isServerErrorStatusCode(l)){return c}}if(l){u=isRetryableStatusCode(l);a=`Cache service responded with ${l}`}i.Yz(`${e} - Attempt ${A} of ${n} failed with error: ${a}`);if(!u){i.Yz(`${e} - Error is not retryable`);break}yield sleep(s);A++}throw Error(`${e} failed: ${a}`)}))}function requestUtils_retryTypedResponse(e,t){return Ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.statusCode),r,n,(e=>{if(e instanceof V.Kg){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function requestUtils_retryHttpClientResponse(e,t){return Ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.message.statusCode),r,n)}))}var cd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return cd(this,void 0,void 0,(function*(){const r=util.promisify(stream.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;core.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);core.info(`Received ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadUtils_downloadCacheHttpClient(e,t){return cd(this,void 0,void 0,(function*(){const r=fs.createWriteStream(t);const n=new HttpClient("actions/cache");const s=yield retryHttpClientResponse("downloadCache",(()=>cd(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(SocketTimeout,(()=>{s.message.destroy();core.debug(`Aborting download, socket timed out after ${SocketTimeout} ms`)}));yield pipeResponseToStream(s,r);const i=s.message.headers["content-length"];if(i){const e=parseInt(i);const r=utils.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{core.debug("Unable to validate download, no Content-Length header")}}))}function downloadUtils_downloadCacheHttpClientConcurrent(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=yield fs.promises.open(t,"w");const i=new HttpClient("actions/cache",undefined,{socketTimeout:r.timeoutInMs,keepAlive:true});try{const t=yield retryHttpClientResponse("downloadCacheMetadata",(()=>cd(this,void 0,void 0,(function*(){return yield i.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const a=parseInt(o);if(Number.isNaN(a)){throw new Error(`Could not interpret Content-Length: ${a}`)}const A=[];const c=4*1024*1024;for(let t=0;tcd(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(i,e,t,r)}))})}A.reverse();let l=0;let u=0;const d=new DownloadProgress(a);d.startDisplayTimer();const m=d.onProgress();const p=[];let g;const waitAndWrite=()=>cd(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(p));yield s.write(e.buffer,0,e.count,e.offset);l--;delete p[e.offset];u+=e.count;m({loadedBytes:u})}));while(g=A.pop()){p[g.offset]=g.promiseGetter();l++;if(l>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)){yield waitAndWrite()}}while(l>0){yield waitAndWrite()}}finally{i.dispose();yield s.close()}}))}function downloadSegmentRetry(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=5;let i=0;while(true){try{const s=3e4;const i=yield promiseWithTimeout(s,downloadSegment(e,t,r,n));if(typeof i==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return i}catch(e){if(i>=s){throw e}i++}}}))}function downloadSegment(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=yield retryHttpClientResponse("downloadCachePart",(()=>cd(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${r}-${r+n-1}`})}))));if(!s.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:r,count:n,buffer:yield s.readBodyBuffer()}}))}function downloadUtils_downloadCacheStorageSDK(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const i=yield s.getProperties();const o=(n=i.contentLength)!==null&&n!==void 0?n:-1;if(o<0){core.debug("Unable to determine content length, downloading file with http-client...");yield downloadUtils_downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,buffer.constants.MAX_LENGTH);const n=new DownloadProgress(o);const i=fs.openSync(t,"w");try{n.startDisplayTimer();const t=new AbortController;const a=t.signal;while(!n.isDone()){const A=n.segmentOffset+n.segmentSize;const c=Math.min(e,o-A);n.nextSegment(c);const l=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(A,c,{abortSignal:a,concurrency:r.downloadConcurrency,onProgress:n.onProgress()}));if(l==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(l)){fs.writeFileSync(i,l)}}}finally{n.stopDisplayTimer();fs.closeSync(i)}}}))}const promiseWithTimeout=(e,t)=>cd(void 0,void 0,void 0,(function*(){let r;const n=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,n]).then((e=>{clearTimeout(r);return e}))}));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;i.Yz(`Use Azure SDK: ${t.useAzureSdk}`);i.Yz(`Upload concurrency: ${t.uploadConcurrency}`);i.Yz(`Upload chunk size: ${t.uploadChunkSize}`);return t}function options_getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}core.debug(`Use Azure SDK: ${t.useAzureSdk}`);core.debug(`Download concurrency: ${t.downloadConcurrency}`);core.debug(`Request timeout (ms): ${t.timeoutInMs}`);core.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);core.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);core.debug(`Lookup only: ${t.lookupOnly}`);return t}function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const r=t==="GITHUB.COM";const n=t.endsWith(".GHE.COM");const s=t.endsWith(".LOCALHOST");return!r&&!n&&!s}function config_getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=config_getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var ld=n(8658);function user_agent_getUserAgentString(){return`@actions/cache-${ld.version}`}var ud=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;i.Yz(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new Y.tZ(e);return new V.Qq(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,r){return ud(this,void 0,void 0,(function*(){const n=createHttpClient();const s=utils.getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const o=yield retryTypedResponse("getCacheEntry",(()=>ud(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(i))}))));if(o.statusCode===204){if(core.isDebug()){yield printCachesListForDiagnostics(e[0],n,s)}return null}if(!isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode}`)}const a=o.result;const A=a===null||a===void 0?void 0:a.archiveLocation;if(!A){throw new Error("Cache not found.")}core.setSecret(A);core.debug(`Cache Result:`);core.debug(JSON.stringify(a));return a}))}function printCachesListForDiagnostics(e,t,r){return ud(this,void 0,void 0,(function*(){const n=`caches?key=${encodeURIComponent(e)}`;const s=yield retryTypedResponse("listCache",(()=>ud(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(n))}))));if(s.statusCode===200){const t=s.result;const n=t===null||t===void 0?void 0:t.totalCount;if(n&&n>0){core.debug(`No matching cache found for cache key '${e}', version '${r} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){core.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n=new URL(e);const s=getDownloadOptions(r);if(n.hostname.endsWith(".blob.core.windows.net")){if(s.useAzureSdk){yield downloadCacheStorageSDK(e,t,s)}else if(s.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,s)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield requestUtils_retryTypedResponse("reserveCache",(()=>ud(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),i)}))));return o}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,n,s){return ud(this,void 0,void 0,(function*(){i.Yz(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${getContentRange(n,s)}`);const o={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,s)};const a=yield requestUtils_retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${s})`,(()=>ud(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),o)}))));if(!requestUtils_isSuccessStatusCode(a.message.statusCode)){throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,n){return ud(this,void 0,void 0,(function*(){const s=getArchiveFileSizeInBytes(r);const o=getCacheApiUrl(`caches/${t.toString()}`);const a=A.openSync(r,"r");const c=getUploadOptions(n);const l=assertDefined("uploadConcurrency",c.uploadConcurrency);const u=assertDefined("uploadChunkSize",c.uploadChunkSize);const d=[...new Array(l).keys()];i.Yz("Awaiting all uploads");let m=0;try{yield Promise.all(d.map((()=>ud(this,void 0,void 0,(function*(){while(mA.createReadStream(r,{fd:a,start:n,end:i,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),n,i)}})))))}finally{A.closeSync(a)}return}))}function commitCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n={size:r};return yield requestUtils_retryTypedResponse("commitCache",(()=>ud(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,r,n){return ud(this,void 0,void 0,(function*(){const s=getUploadOptions(n);if(s.useAzureSdk){if(!r){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(r,t,n)}else{const r=createHttpClient();i.Yz("Upload cache");yield uploadFile(r,e,t,n);i.Yz("Commiting cache");const s=getArchiveFileSizeInBytes(t);i.pq(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const o=yield commitCache(r,e,s);if(!requestUtils_isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`)}i.pq("Cache saved successfully")}}))}var dd=n(4420);var md=n(8886);class CacheScope$Type extends md.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){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.pospd}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posfd.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=yd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return r.then((e=>Cd.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=Ed.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return r.then((e=>Bd.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return r.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return r.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return r.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const r=t.searchParams.get("sig");if(r){(0,i.Pq)(r);(0,i.Pq)(encodeURIComponent(r))}}catch(t){(0,i.Yz)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.Yz)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Qd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,r,n){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const s=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(r){this.baseRetryIntervalMilliseconds=r}if(n){this.retryMultiplier=n}this.httpClient=new V.Qq(e,[new Y.tZ(s)])}request(e,t,r,n){return Qd(this,void 0,void 0,(function*(){const s=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.Yz)(`[Request] ${t} ${s}`);const o={"Content-Type":r};try{const{body:e}=yield this.retryableRequest((()=>Qd(this,void 0,void 0,(function*(){return this.httpClient.post(s,JSON.stringify(n),o)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Qd(this,void 0,void 0,(function*(){let t=0;let r="";let n="";while(t0){(0,i.$e)(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${r}`)}}catch(e){if(e instanceof SyntaxError){(0,i.Yz)(`Raw Body: ${n}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}s=true;r=e.message}if(!s){throw new Error(`Received non-retryable error: ${r}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${r}`)}const o=this.getExponentialRetryTimeMilliseconds(t);(0,i.pq)(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${r}. Retrying request in ${o} ms...`);yield this.sleep(o);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[V.Hv.BadGateway,V.Hv.GatewayTimeout,V.Hv.InternalServerError,V.Hv.ServiceUnavailable];return t.includes(e)}sleep(e){return Qd(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const r=t*this.retryMultiplier;return Math.trunc(Math.random()*(r-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var bd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const Sd=process.platform==="win32";function getTarPath(){return bd(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=U;if(e){return{path:e,type:T.GNU}}else if((0,A.existsSync)(t)){return{path:t,type:T.BSD}}break}case"darwin":{const e=yield x.K7("gtar",false);if(e){return{path:e,type:T.GNU}}else{return{path:yield x.K7("tar",true),type:T.BSD}}}default:break}return{path:yield x.K7("tar",true),type:T.GNU}}))}function getTarArgs(e,t,r){return bd(this,arguments,void 0,(function*(e,t,r,n=""){const s=[`"${e.path}"`];const i=getCacheFileName(t);const a="cache.tar";const A=getWorkingDirectory();const c=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(r){case"create":s.push("--posix","-cf",c?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--exclude",c?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",A.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--files-from",H);break;case"extract":s.push("-xf",c?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",A.replace(new RegExp(`\\${o.sep}`,"g"),"/"));break;case"list":s.push("-tf",c?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P");break}if(e.type===T.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t){return bd(this,arguments,void 0,(function*(e,t,r=""){let n;const s=yield getTarPath();const i=yield getTarArgs(s,e,t,r);const o=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const a=s.type===T.BSD&&e!==v.Gzip&&Sd;if(a&&t!=="create"){n=[[...o].join(" "),[...i].join(" ")]}else{n=[[...i].join(" "),[...o].join(" ")]}if(a){return n}return[n.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return bd(this,void 0,void 0,(function*(){const n=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(t){case v.Zstd:return n?["zstd -d --long=30 --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",Sd?'"zstd -d --long=30"':"unzstd --long=30"];case v.ZstdWithoutLong:return n?["zstd -d --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",Sd?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return bd(this,void 0,void 0,(function*(){const r=getCacheFileName(t);const n=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(t){case v.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",Sd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case v.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",Sd?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return bd(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,a.m)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function tar_listTar(e,t){return bd(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}function tar_extractTar(e,t){return bd(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield io.mkdirP(r);const n=yield getCommands(t,"extract",e);yield execCommands(n)}))}function createTar(e,t,r){return bd(this,void 0,void 0,(function*(){(0,A.writeFileSync)(o.join(e,H),t.join("\n"));const n=yield getCommands(r,"create");yield execCommands(n,e)}))}var Nd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){const i=getCacheServiceVersion();core.debug(`Cache service version: ${i}`);checkPaths(e);switch(i){case"v2":return yield restoreCacheV2(e,t,r,n,s);case"v1":default:return yield restoreCacheV1(e,t,r,n,s)}}))}function restoreCacheV1(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){r=r||[];const i=[t,...r];core.debug("Resolved Keys:");core.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const o=yield utils.getCompressionMethod();let a="";try{const t=yield cacheHttpClient.getCacheEntry(i,e,{compressionMethod:o,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(n===null||n===void 0?void 0:n.lookupOnly){core.info("Lookup only - skipping download");return t.cacheKey}a=path.join(yield utils.createTempDirectory(),utils.getCacheFileName(o));core.debug(`Archive Path: ${a}`);yield cacheHttpClient.downloadCache(t.archiveLocation,a,n);if(core.isDebug()){yield listTar(a,o)}const r=utils.getArchiveFileSizeInBytes(a);core.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield extractTar(a,o);core.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to restore: ${e.message}`)}else{core.warning(`Failed to restore: ${e.message}`)}}}finally{try{yield utils.unlinkFile(a)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){n=Object.assign(Object.assign({},n),{useAzureSdk:true});r=r||[];const i=[t,...r];core.debug("Resolved Keys:");core.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}let o="";try{const a=cacheTwirpClient.internalCacheTwirpClient();const A=yield utils.getCompressionMethod();const c={key:t,restoreKeys:r,version:utils.getCacheVersion(e,A,s)};const l=yield a.GetCacheEntryDownloadURL(c);if(!l.ok){core.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return undefined}const u=c.key!==l.matchedKey;if(u){core.info(`Cache hit for restore-key: ${l.matchedKey}`)}else{core.info(`Cache hit for: ${l.matchedKey}`)}if(n===null||n===void 0?void 0:n.lookupOnly){core.info("Lookup only - skipping download");return l.matchedKey}o=path.join(yield utils.createTempDirectory(),utils.getCacheFileName(A));core.debug(`Archive path: ${o}`);core.debug(`Starting download of archive to: ${o}`);yield cacheHttpClient.downloadCache(l.signedDownloadUrl,o,n);const d=utils.getArchiveFileSizeInBytes(o);core.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`);if(core.isDebug()){yield listTar(o,A)}yield extractTar(o,A);core.info("Cache restored successfully");return l.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to restore: ${e.message}`)}else{core.warning(`Failed to restore: ${e.message}`)}}}finally{try{if(o){yield utils.unlinkFile(o)}}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){const s=config_getCacheServiceVersion();i.Yz(`Cache service version: ${s}`);checkPaths(e);checkKey(t);switch(s){case"v2":return yield saveCacheV2(e,t,r,n);case"v1":default:return yield saveCacheV1(e,t,r,n)}}))}function saveCacheV1(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){var s,a,A,c,l;const u=yield getCompressionMethod();let d=-1;const m=yield resolvePaths(e);i.Yz("Cache Paths:");i.Yz(`${JSON.stringify(m)}`);if(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.`)}const p=yield createTempDirectory();const g=o.join(p,getCacheFileName(u));i.Yz(`Archive Path: ${g}`);try{yield createTar(p,m,u);if(i._o()){yield tar_listTar(g,u)}const o=10*1024*1024*1024;const h=getArchiveFileSizeInBytes(g);i.Yz(`File Size: ${h}`);if(h>o&&!isGhes()){throw new Error(`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the 10GB limit, not saving cache.`)}i.Yz("Reserving Cache");const f=yield reserveCache(t,e,{compressionMethod:u,enableCrossOsArchive:n,cacheSize:h});if((s=f===null||f===void 0?void 0:f.result)===null||s===void 0?void 0:s.cacheId){d=(a=f===null||f===void 0?void 0:f.result)===null||a===void 0?void 0:a.cacheId}else if((f===null||f===void 0?void 0:f.statusCode)===400){throw new Error((c=(A=f===null||f===void 0?void 0:f.error)===null||A===void 0?void 0:A.message)!==null&&c!==void 0?c:`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(l=f===null||f===void 0?void 0:f.error)===null||l===void 0?void 0:l.message}`)}i.Yz(`Saving Cache (ID: ${d})`);yield saveCache(d,g,"",r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){i.pq(`Failed to save: ${t.message}`)}else{if(t instanceof V.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to save: ${t.message}`)}else{i.$e(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(g)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return d}))}function saveCacheV2(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){r=Object.assign(Object.assign({},r),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const s=yield getCompressionMethod();const a=internalCacheTwirpClient();let A=-1;const c=yield resolvePaths(e);i.Yz("Cache Paths:");i.Yz(`${JSON.stringify(c)}`);if(c.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.`)}const l=yield createTempDirectory();const u=o.join(l,getCacheFileName(s));i.Yz(`Archive Path: ${u}`);try{yield createTar(l,c,s);if(i._o()){yield tar_listTar(u,s)}const o=getArchiveFileSizeInBytes(u);i.Yz(`File Size: ${o}`);r.archiveSizeBytes=o;i.Yz("Reserving Cache");const d=getCacheVersion(e,s,n);const m={key:t,version:d};let p;try{const e=yield a.CreateCacheEntry(m);if(!e.ok){if(e.message){i.$e(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}p=e.signedUploadUrl}catch(e){i.Yz(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}i.Yz(`Attempting to upload cache located at: ${u}`);yield saveCache(A,u,p,r);const g={key:t,version:d,sizeBytes:`${o}`};const h=yield a.FinalizeCacheEntryUpload(g);i.Yz(`FinalizeCacheEntryUploadResponse: ${h.ok}`);if(!h.ok){if(h.message){throw new FinalizeCacheError(h.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}A=parseInt(h.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){i.pq(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){i.$e(t.message)}else{if(t instanceof V.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to save: ${t.message}`)}else{i.$e(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(u)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return A}))}},3838:(e,t,r)=>{r.d(t,{Yz:()=>core_debug,z3:()=>error,Gu:()=>getState,pq:()=>info,_o:()=>isDebug,Pq:()=>core_setSecret,$e:()=>warning});var n=r(857);function utils_toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var i=r(6982);var o=r(9896);function file_command_issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!fs.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}fs.appendFileSync(r,`${toCommandValue(t)}${os.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(e,t){const r=`ghadelimiter_${crypto.randomUUID()}`;const n=toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${os.EOL}${n}${os.EOL}${r}`}var a=r(6928);var A=r(4942);var c=r(2145);var l=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return l(this,void 0,void 0,(function*(){var t;const r=oidc_utils_OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return l(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}debug(`ID token url is ${t}`);const r=yield oidc_utils_OidcClient.getCall(t);setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var u=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{access:d,appendFile:m,writeFile:p}=o.promises;const g="GITHUB_STEP_SUMMARY";const h="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return u(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[g];if(!e){throw new Error(`Unable to find environment variable for $${g}. Check if your runtime environment supports job summaries.`)}try{yield d(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return u(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?p:m;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return u(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(i,r,o)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const i=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const f=new Summary;const y=null&&f;const C=null&&f;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var E=r(7187);var B=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const getWindowsInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>B(void 0,void 0,void 0,(function*(){var e,t,r,n;const{stdout:s}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=s.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(r=s.match(/ProductName:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,r]=e.trim().split("\n");return{name:t,version:r}}));const I=n.platform();const Q=n.arch();const b=I==="win32";const S=I==="darwin";const N=I==="linux";function getDetails(){return B(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield b?getWindowsInfo():S?getMacOsInfo():getLinuxInfo()),{platform:I,arch:Q,isWindows:b,isMacOS:S,isLinux:N})}))}var w=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var R;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(R||(R={}));function exportVariable(e,t){const r=toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return issueFileCommand("ENV",prepareKeyValueMessage(e,t))}issueCommand("set-env",{name:e},r)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(os.EOL);issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=R.Failure;error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+n.EOL)}function startGroup(e){issue("group",e)}function endGroup(){issue("endgroup")}function group(e,t){return w(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return issueFileCommand("STATE",prepareKeyValueMessage(e,t))}issueCommand("save-state",{name:e},toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return w(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}},7187:(t,r,n)=>{n.d(r,{m:()=>exec});var s=n(3193);var i=n(857);var o=n(4434);const a=e(import.meta.url)("child_process");var A=n(6928);var c=n(8701);var l=n(90);const u=e(import.meta.url)("timers");var d=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const m=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=t?"":"[command]";if(m){if(this._isCmdFile()){s+=r;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let n=t+e.toString();let s=n.indexOf(i.EOL);while(s>-1){const e=n.substring(0,s);r(e);n=n.substring(s+i.EOL.length);s=n.indexOf(i.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let s=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(s&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return d(this,void 0,void 0,(function*(){if(!l.Qh(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=A.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.K7(this.toolPath,true);return new Promise(((e,t)=>d(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield l.t2(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=a.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let A="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}A=this._processLineBuffer(e,A,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(A.length>0){this.emit("stdline",A)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let r=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let i=0;i0){t.push(s);s=""}continue}append(o)}if(s.length>0){t.push(s.trim())}return t}class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,u.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var p=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function exec(e,t,r){return p(this,void 0,void 0,(function*(){const n=argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];t=n.slice(1).concat(t||[]);const i=new ToolRunner(s,t,r);return i.exec()}))}function getExecOutput(e,t,r){return p(this,void 0,void 0,(function*(){var n,s;let i="";let o="";const a=new StringDecoder("utf8");const A=new StringDecoder("utf8");const c=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const l=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=A.write(e);if(l){l(e)}};const stdOutListener=e=>{i+=a.write(e);if(c){c(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));i+=a.end();o+=A.end();return{exitCode:d,stdout:i,stderr:o}}))}},2145:(e,t,r)=>{r.d(t,{tZ:()=>BearerCredentialHandler});var n=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},4942:(e,t,r)=>{r.d(t,{Qq:()=>HttpClient,Kg:()=>HttpClientError,Hv:()=>l});var n=r(8611);var s=r.t(n,2);var i=r(5692);var o=r.t(i,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var a=r(770);var A=r(6752);var c=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l||(l={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u||(u={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(d={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const m=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const h=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return c(this,void 0,void 0,(function*(){return new Promise((e=>c(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return c(this,void 0,void 0,(function*(){return new Promise((e=>c(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return c(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return c(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return c(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return c(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return c(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e){return c(this,arguments,void 0,(function*(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return c(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let i=this._prepareRequest(e,s,n);const o=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let a=0;let A;do{A=yield this.requestRaw(i,r);if(A&&A.message&&A.message.statusCode===l.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(A)){e=t;break}}if(e){return e.handleAuthentication(this,i,r)}else{return A}}let t=this._maxRedirects;while(A.message.statusCode&&m.includes(A.message.statusCode)&&this._allowRedirects&&t>0){const o=A.message.headers["location"];if(!o){break}const a=new URL(o);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield A.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,a,n);A=yield this.requestRaw(i,r);t--}if(!A.message.statusCode||!p.includes(A.message.statusCode)){return A}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;s.on("socket",(e=>{i=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i=n.parsedUrl.protocol==="https:";n.httpModule=i?o:s;const a=i?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){n=typeof e==="number"?e.toString():e}}const s=e[t];if(s!==undefined){return typeof s==="number"?s.toString():s}if(n!==undefined){return n}return r}_getExistingOrDefaultContentTypeHeader(e,t){let r;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[u.ContentType];if(e){if(typeof e==="number"){r=String(e)}else if(Array.isArray(e)){r=e.join(", ")}else{r=e}}}const n=e[u.ContentType];if(n!==undefined){if(typeof n==="number"){return String(n)}else if(Array.isArray(n)){return n.join(", ")}else{return n}}if(r!==undefined){return r}return t}_getAgent(e){let t;const r=getProxyUrl(e);const s=r&&r.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const o=e.protocol==="https:";let A=100;if(this.requestOptions){A=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:A,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s=r.protocol==="https:";if(o){n=s?a.httpsOverHttps:a.httpsOverHttp}else{n=s?a.httpOverHttps:a.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:A};t=o?new i.Agent(e):new n.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new A.kT(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const r=process.env["ACTIONS_ORCHESTRATION_ID"];if(r){const e=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return c(this,void 0,void 0,(function*(){e=Math.min(h,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return c(this,void 0,void 0,(function*(){return new Promise(((r,n)=>c(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const i={statusCode:s,result:null,headers:{}};if(s===l.NotFound){r(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,dateTimeDeserializer)}else{o=JSON.parse(a)}i.result=o}i.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=i.result;n(t)}else{r(i)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},90:(e,t,r)=>{r.d(t,{Ck:()=>c,H8:()=>y,Qh:()=>isRooted,t2:()=>exists,vr:()=>tryGetExecutablePath});var n=r(9896);var s=r(6928);var i=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{chmod:o,copyFile:a,lstat:A,mkdir:c,open:l,readdir:u,rename:d,rm:m,rmdir:p,stat:g,symlink:h,unlink:f}=n.promises;const y=process.platform==="win32";function readlink(e){return i(this,void 0,void 0,(function*(){const t=yield fs.promises.readlink(e);if(y&&!t.endsWith("\\")){return`${t}\\`}return t}))}const C=268435456;const E=n.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield g(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return i(this,arguments,void 0,(function*(e,t=false){const r=t?yield g(e):yield A(e);return r.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(y){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return i(this,void 0,void 0,(function*(){let r=undefined;try{r=yield g(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){const r=s.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const i of t){e=n+i;r=undefined;try{r=yield g(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){try{const t=s.dirname(e);const r=s.basename(e).toUpperCase();for(const n of yield u(t)){if(r===n.toUpperCase()){e=s.join(t,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(y){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}},8701:(e,t,r)=>{r.d(t,{K7:()=>which,U$:()=>mkdirP});var n=r(2613);var s=r(6928);var i=r(90);var o=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function cp(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){const{force:n,recursive:s,copySourceDirectory:i}=readCopyOptions(r);const o=(yield ioUtil.exists(t))?yield ioUtil.stat(t):null;if(o&&o.isFile()&&!n){return}const a=o&&o.isDirectory()&&i?path.join(t,path.basename(e)):t;if(!(yield ioUtil.exists(e))){throw new Error(`no such file or directory: ${e}`)}const A=yield ioUtil.stat(e);if(A.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(path.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}function mv(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){if(yield ioUtil.exists(t)){let n=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));n=yield ioUtil.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return o(this,void 0,void 0,(function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return o(this,void 0,void 0,(function*(){(0,n.ok)(e,"a path argument must be provided");yield i.Ck(e,{recursive:true})}))}function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(i.H8){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(i.H8&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(s.delimiter)){if(e){t.push(e)}}}if(i.Qh(e)){const r=yield i.vr(e,t);if(r){return[r]}return[]}if(e.includes(s.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield i.vr(s.join(o,e),t);if(r){n.push(r)}}return n}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield ioUtil.readdir(e);for(const i of s){const s=`${e}/${i}`;const o=`${t}/${i}`;const a=yield ioUtil.lstat(s);if(a.isDirectory()){yield cpDirRecursive(s,o,r,n)}else{yield copyFile(s,o,n)}}yield ioUtil.chmod(t,(yield ioUtil.stat(e)).mode)}))}function copyFile(e,t,r){return o(this,void 0,void 0,(function*(){if((yield ioUtil.lstat(e)).isSymbolicLink()){try{yield ioUtil.lstat(t);yield ioUtil.unlink(t)}catch(e){if(e.code==="EPERM"){yield ioUtil.chmod(t,"0666");yield ioUtil.unlink(t)}}const r=yield ioUtil.readlink(e);yield ioUtil.symlink(r,t,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(t))||r){yield ioUtil.copyFile(e,t)}}))}},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.0","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.3"},"devDependencies":{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete r[e]}return s.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var s=[];s.d=0;n.then((e=>{i[t]=e;resolveQueue(s)}),(e=>{i[r]=e;resolveQueue(s)}));var i={};i[e]=e=>e(s);return i}}var o={};o[e]=e=>{};o[t]=n;return o}));__nccwpck_require__.a=(n,s,i)=>{var o;i&&((o=[]).d=-1);var a=new Set;var A=n.exports;var c;var l;var u;var d=new Promise(((e,t)=>{u=t;l=e}));d[t]=A;d[e]=e=>(o&&e(o),a.forEach(e),d["catch"]((e=>{})));n.exports=d;s((n=>{c=wrapDeps(n);var s;var getResult=()=>c.map((e=>{if(e[r])throw e[r];return e[t]}));var i=new Promise((t=>{s=()=>t(getResult);s.r=0;var fnQueue=e=>e!==o&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));c.map((t=>t[e](fnQueue)))}));return s.r?i:getResult()}),(e=>(e?u(d[r]=e):l(A),resolveQueue(o))));o&&o.d<0&&(o.d=0)}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(5901);n=await n; \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:i}=r(8625);const{MessageSizeExceededError:o}=r(8707);const a=Buffer.from([0,0,255,255]);const A=Symbol("kBuffer");const c=Symbol("kLength");const l=4*1024*1024;class PerMessageDeflate{#$;#m={};#S=false;#K=null;constructor(e){this.#m.serverNoContextTakeover=e.has("server_no_context_takeover");this.#m.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#S){r(new o);return}if(!this.#$){let e=s;if(this.#m.serverMaxWindowBits){if(!i(this.#m.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#m.serverMaxWindowBits)}try{this.#$=n({windowBits:e})}catch(e){r(e);return}this.#$[A]=[];this.#$[c]=0;this.#$.on("data",(e=>{if(this.#S){return}this.#$[c]+=e.length;if(this.#$[c]>l){this.#S=true;this.#$.removeAllListeners();this.#$.destroy();this.#$=null;if(this.#K){const e=this.#K;this.#K=null;e(new o)}return}this.#$[A].push(e)}));this.#$.on("error",(e=>{this.#$=null;r(e)}))}this.#K=r;this.#$.write(e);if(t){this.#$.write(a)}this.#$.flush((()=>{if(this.#S||!this.#$){return}const e=Buffer.concat(this.#$[A],this.#$[c]);this.#$[A].length=0;this.#$[c]=0;this.#K=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:A,sentCloseFrameState:c}=r(736);const{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:m}=r(1216);const{channels:p}=r(2414);const{isValidStatusCode:g,isValidOpcode:h,failWebsocketConnection:f,websocketMessageReceived:y,utf8Decode:C,isControlFrame:E,isTextBinaryFrame:B,isContinuationFrame:I}=r(8625);const{WebsocketFrameSend:Q}=r(3264);const{closeWebSocketConnection:b}=r(6897);const{PerMessageDeflate:S}=r(9469);class ByteParser extends n{#X=[];#Z=0;#ee=false;#E=i.INFO;#te={};#re=[];#ne;constructor(e,t){super();this.ws=e;this.#ne=t==null?new Map:t;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new S(t))}}_write(e,t,r){this.#X.push(e);this.#Z+=e.length;this.#ee=true;this.run(r)}run(e){while(this.#ee){if(this.#E===i.INFO){if(this.#Z<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const A=t[1]&127;const c=t[0]&64;const l=t[0]&32;const u=t[0]&16;if(!h(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(c!==0&&!this.#ne.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(l!==0||u!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!B(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(B(n)&&this.#re.length>0){f(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((A>125||a)&&E(n)){f(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#re.length===0&&!this.#te.compressed){f(this.ws,"Unexpected continuation frame");return}if(A<=125){this.#te.payloadLength=A;this.#E=i.READ_DATA}else if(A===126){this.#E=i.PAYLOADLENGTH_16}else if(A===127){this.#E=i.PAYLOADLENGTH_64}if(B(n)){this.#te.binaryType=n;this.#te.compressed=c!==0}this.#te.opcode=n;this.#te.masked=s;this.#te.fin=r;this.#te.fragmented=a}else if(this.#E===i.PAYLOADLENGTH_16){if(this.#Z<2){return e()}const t=this.consume(2);this.#te.payloadLength=t.readUInt16BE(0);this.#E=i.READ_DATA}else if(this.#E===i.PAYLOADLENGTH_64){if(this.#Z<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=n;this.#E=i.READ_DATA}else if(this.#E===i.READ_DATA){if(this.#Z{if(t){f(this.ws,t.message);return}this.#re.push(r);if(!this.#te.fin){this.#E=i.INFO;this.#ee=true;this.run(e);return}y(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#E=i.INFO;this.#re.length=0;this.run(e)}));this.#ee=false;break}}}}}consume(e){if(e>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return A}if(this.#X[0].length===e){this.#Z-=this.#X[0].length;return this.#X.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#X[0];const{length:s}=n;if(s+r===e){t.set(this.#X.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#X[0]=n.subarray(e-r);break}else{t.set(this.#X.shift(),r);r+=n.length}}this.#Z-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!g(t)){return{code:1002,reason:"Invalid status code",error:true}}let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}try{r=C(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:r,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:r}=this.#te;if(t===o.CLOSE){if(r===1){f(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(e);if(this.#te.closeInfo.error){const{code:e,reason:t}=this.#te.closeInfo;b(this.ws,e,t,t.length);f(this.ws,t);return false}if(this.ws[u]!==c.SENT){let e=A;if(this.#te.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#te.closeInfo.code,0)}const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.CLOSE),(e=>{if(!e){this.ws[u]=c.SENT}}))}this.ws[l]=a.CLOSING;this.ws[m]=true;return false}else if(t===o.PING){if(!this.ws[m]){const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.PONG));if(p.ping.hasSubscribers){p.ping.publish({payload:e})}}}else if(t===o.PONG){if(p.pong.hasSubscribers){p.pong.publish({payload:e})}}return true}get closingInfo(){return this.#te.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,r)=>{const{WebsocketFrameSend:n}=r(3264);const{opcodes:s,sendHints:i}=r(736);const o=r(4660);const a=Buffer[Symbol.species];class SendQueue{#se=new o;#ie=false;#oe;constructor(e){this.#oe=e}add(e,t,r){if(r!==i.blob){const n=createFrame(e,r);if(!this.#ie){this.#oe.write(n,t)}else{const e={promise:null,callback:t,frame:n};this.#se.push(e)}return}const n={promise:e.arrayBuffer().then((e=>{n.promise=null;n.frame=createFrame(e,r)})),callback:t,frame:null};this.#se.push(n);if(!this.#ie){this.#ae()}}async#ae(){this.#ie=true;const e=this.#se;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#ie=false}}function createFrame(e,t){return new n(toBuffer(e,t)).createFrame(t===i.string?s.TEXT:s.BINARY)}function toBuffer(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new a(e);case i.typedArray:return new a(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:i,kBinaryType:o,kWebSocketURL:a}=r(1216);const{states:A,opcodes:c}=r(736);const{ErrorEvent:l,createFastMessageEvent:u}=r(5188);const{isUtf8:d}=r(4573);const{collectASequenceOfCodePointsFast:m,removeHTTPWhitespace:p}=r(1900);function isConnecting(e){return e[n]===A.CONNECTING}function isEstablished(e){return e[n]===A.OPEN}function isClosing(e){return e[n]===A.CLOSING}function isClosed(e){return e[n]===A.CLOSED}function fireEvent(e,t,r=(e,t)=>new Event(e,t),n={}){const s=r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==A.OPEN){return}let s;if(t===c.TEXT){try{s=f(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===c.BINARY){if(e[o]==="blob"){s=new Blob([r])}else{s=toArrayBuffer(r)}}fireEvent("message",e,u,{origin:e[a].origin,data:s})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[i]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new l(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function isContinuationFrame(e){return e===c.CONTINUATION}function isTextBinaryFrame(e){return e===c.TEXT||e===c.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const r=new Map;while(t.position57){return false}}const t=Number.parseInt(e,10);return t>=8&&t<=15}const g=typeof process.versions.icu==="string";const h=g?new TextDecoder("utf-8",{fatal:true}):undefined;const f=g?h.decode.bind(h):function(e){if(d(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:f,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,r)=>{const{webidl:n}=r(5893);const{URLSerializer:s}=r(1900);const{environmentSettingsObject:i}=r(3168);const{staticPropertyDescriptors:o,states:a,sentCloseFrameState:A,sendHints:c}=r(736);const{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:m,kResponse:p,kSentClose:g,kByteParser:h}=r(1216);const{isConnecting:f,isEstablished:y,isClosing:C,isValidSubprotocol:E,fireEvent:B}=r(8625);const{establishWebSocketConnection:I,closeWebSocketConnection:Q}=r(6897);const{ByteParser:b}=r(1652);const{kEnumerableProperty:S,isBlobLike:N}=r(3440);const{getGlobalDispatcher:w}=r(2581);const{types:R}=r(7975);const{ErrorEvent:x,CloseEvent:D}=r(5188);const{SendQueue:k}=r(3900);class WebSocket extends EventTarget{#M={open:null,error:null,close:null,message:null};#Ae=0;#ce="";#ne="";#le;constructor(e,t=[]){super();n.util.markAsUncloneable(this);const r="WebSocket constructor";n.argumentLengthCheck(arguments,1,r);const s=n.converters["DOMString or sequence or WebSocketInit"](t,r,"options");e=n.converters.USVString(e,r,"url");t=s.protocols;const o=i.settingsObject.baseUrl;let a;try{a=new URL(e,o)}catch(e){throw new DOMException(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>E(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);const c=i.settingsObject;this[d]=I(a,t,c,this,((e,t)=>this.#ue(e,t)),s);this[u]=WebSocket.CONNECTING;this[g]=A.NOT_SENT;this[m]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);const r="WebSocket.close";if(e!==undefined){e=n.converters["unsigned short"](e,r,"code",{clamp:true})}if(t!==undefined){t=n.converters.USVString(t,r,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let s=0;if(t!==undefined){s=Buffer.byteLength(t);if(s>123){throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError")}}Q(this,e,t,s)}send(e){n.brandCheck(this,WebSocket);const t="WebSocket.send";n.argumentLengthCheck(arguments,1,t);e=n.converters.WebSocketSendData(e,t,"data");if(f(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!y(this)||C(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#Ae+=t;this.#le.add(e,(()=>{this.#Ae-=t}),c.string)}else if(R.isArrayBuffer(e)){this.#Ae+=e.byteLength;this.#le.add(e,(()=>{this.#Ae-=e.byteLength}),c.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#Ae+=e.byteLength;this.#le.add(e,(()=>{this.#Ae-=e.byteLength}),c.typedArray)}else if(N(e)){this.#Ae+=e.size;this.#le.add(e,(()=>{this.#Ae-=e.size}),c.blob)}}get readyState(){n.brandCheck(this,WebSocket);return this[u]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#Ae}get url(){n.brandCheck(this,WebSocket);return s(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#ne}get protocol(){n.brandCheck(this,WebSocket);return this.#ce}get onopen(){n.brandCheck(this,WebSocket);return this.#M.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#M.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#M.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#M.close){this.removeEventListener("close",this.#M.close)}if(typeof e==="function"){this.#M.close=e;this.addEventListener("close",e)}else{this.#M.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#M.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[m]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[m]="blob"}else{this[m]=e}}#ue(e,t){this[p]=e;const r=new b(this,t);r.on("drain",onParserDrain);r.on("error",onParserError.bind(this));e.socket.ws=this;this[h]=r;this.#le=new k(e.socket);this[u]=a.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#ne=n}const s=e.headersList.get("sec-websocket-protocol");if(s!==null){this.#ce=s}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=a.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=a.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=a.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=a.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:S,readyState:S,bufferedAmount:S,onopen:S,onerror:S,onclose:S,close:S,onmessage:S,binaryType:S,send:S,extensions:S,protocol:S,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e,t,r){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e,t,r)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:n.converters.any,defaultValue:()=>w()},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(N(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||R.isArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};function onParserDrain(){this.ws[p].socket.resume()}function onParserError(e){let t;let r;if(e instanceof D){t=e.reason;r=e.code}else{t=e.message}B("error",this,(()=>new x("error",{error:e,message:t})));Q(this,r)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},7030:t=>{t.exports=e(import.meta.url)("node:net")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},8658:(e,t,r)=>{const n=r(4012);e.exports={version:n.version}},5901:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(3838);var s=r(8949);const i=["wordpress","wordpress-tests-lib"];async function run(){const e=(0,n.Gu)("ok_to_save_cache");if(e!=="yes"){(0,n.$e)(`⚠️ Something went wrong, not saving cache`);return}for(const e of i){const t=(0,n.Gu)(`dir_${e}`);const r=(0,n.Gu)(`cache_key_${e}`);if(t&&r){(0,n.pq)(`ℹ️ Saving ${e} cache with the key of ${r}`);try{process.env.GITHUB_WORKSPACE=t;process.chdir(t);await(0,s.Io)([e],r)}catch(t){(0,n.$e)(`⚠️ Failed to save cache for ${e}: ${t.message}`)}}}}await run();t()}catch(o){t(o)}}),1)},8949:(t,r,n)=>{n.d(r,{Io:()=>cache_saveCache});var s={};n.r(s);n.d(s,{AccessPolicy:()=>bs,AppendBlobAppendBlockExceptionHeaders:()=>aa,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ca,AppendBlobAppendBlockFromUrlHeaders:()=>Aa,AppendBlobAppendBlockHeaders:()=>oa,AppendBlobCreateExceptionHeaders:()=>ia,AppendBlobCreateHeaders:()=>sa,AppendBlobSealExceptionHeaders:()=>ua,AppendBlobSealHeaders:()=>la,ArrowConfiguration:()=>Gs,ArrowField:()=>Vs,BlobAbortCopyFromURLExceptionHeaders:()=>xo,BlobAbortCopyFromURLHeaders:()=>Ro,BlobAcquireLeaseExceptionHeaders:()=>mo,BlobAcquireLeaseHeaders:()=>uo,BlobBreakLeaseExceptionHeaders:()=>Bo,BlobBreakLeaseHeaders:()=>Eo,BlobChangeLeaseExceptionHeaders:()=>Co,BlobChangeLeaseHeaders:()=>yo,BlobCopyFromURLExceptionHeaders:()=>wo,BlobCopyFromURLHeaders:()=>No,BlobCreateSnapshotExceptionHeaders:()=>Qo,BlobCreateSnapshotHeaders:()=>Io,BlobDeleteExceptionHeaders:()=>ji,BlobDeleteHeaders:()=>Wi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>oo,BlobDeleteImmutabilityPolicyHeaders:()=>so,BlobDownloadExceptionHeaders:()=>Vi,BlobDownloadHeaders:()=>Gi,BlobFlatListSegment:()=>Ns,BlobGetAccountInfoExceptionHeaders:()=>To,BlobGetAccountInfoHeaders:()=>vo,BlobGetPropertiesExceptionHeaders:()=>Ji,BlobGetPropertiesHeaders:()=>Yi,BlobGetTagsExceptionHeaders:()=>Fo,BlobGetTagsHeaders:()=>Lo,BlobHierarchyListSegment:()=>ks,BlobItemInternal:()=>ws,BlobName:()=>Rs,BlobPrefix:()=>vs,BlobPropertiesInternal:()=>xs,BlobQueryExceptionHeaders:()=>Mo,BlobQueryHeaders:()=>Po,BlobReleaseLeaseExceptionHeaders:()=>go,BlobReleaseLeaseHeaders:()=>po,BlobRenewLeaseExceptionHeaders:()=>fo,BlobRenewLeaseHeaders:()=>ho,BlobServiceProperties:()=>rs,BlobServiceStatistics:()=>us,BlobSetExpiryExceptionHeaders:()=>Zi,BlobSetExpiryHeaders:()=>Xi,BlobSetHttpHeadersExceptionHeaders:()=>to,BlobSetHttpHeadersHeaders:()=>eo,BlobSetImmutabilityPolicyExceptionHeaders:()=>no,BlobSetImmutabilityPolicyHeaders:()=>ro,BlobSetLegalHoldExceptionHeaders:()=>Ao,BlobSetLegalHoldHeaders:()=>ao,BlobSetMetadataExceptionHeaders:()=>lo,BlobSetMetadataHeaders:()=>co,BlobSetTagsExceptionHeaders:()=>Oo,BlobSetTagsHeaders:()=>Uo,BlobSetTierExceptionHeaders:()=>ko,BlobSetTierHeaders:()=>Do,BlobStartCopyFromURLExceptionHeaders:()=>So,BlobStartCopyFromURLHeaders:()=>bo,BlobTag:()=>Is,BlobTags:()=>Bs,BlobUndeleteExceptionHeaders:()=>Ki,BlobUndeleteHeaders:()=>$i,Block:()=>Ms,BlockBlobCommitBlockListExceptionHeaders:()=>Ba,BlockBlobCommitBlockListHeaders:()=>Ea,BlockBlobGetBlockListExceptionHeaders:()=>Qa,BlockBlobGetBlockListHeaders:()=>Ia,BlockBlobPutBlobFromUrlExceptionHeaders:()=>ga,BlockBlobPutBlobFromUrlHeaders:()=>pa,BlockBlobStageBlockExceptionHeaders:()=>fa,BlockBlobStageBlockFromURLExceptionHeaders:()=>Ca,BlockBlobStageBlockFromURLHeaders:()=>ya,BlockBlobStageBlockHeaders:()=>ha,BlockBlobUploadExceptionHeaders:()=>ma,BlockBlobUploadHeaders:()=>da,BlockList:()=>Ps,BlockLookupList:()=>Ts,ClearRange:()=>Us,ContainerAcquireLeaseExceptionHeaders:()=>xi,ContainerAcquireLeaseHeaders:()=>Ri,ContainerBreakLeaseExceptionHeaders:()=>Mi,ContainerBreakLeaseHeaders:()=>Pi,ContainerChangeLeaseExceptionHeaders:()=>Fi,ContainerChangeLeaseHeaders:()=>Li,ContainerCreateExceptionHeaders:()=>ci,ContainerCreateHeaders:()=>Ai,ContainerDeleteExceptionHeaders:()=>mi,ContainerDeleteHeaders:()=>di,ContainerFilterBlobsExceptionHeaders:()=>wi,ContainerFilterBlobsHeaders:()=>Ni,ContainerGetAccessPolicyExceptionHeaders:()=>fi,ContainerGetAccessPolicyHeaders:()=>hi,ContainerGetAccountInfoExceptionHeaders:()=>qi,ContainerGetAccountInfoHeaders:()=>zi,ContainerGetPropertiesExceptionHeaders:()=>ui,ContainerGetPropertiesHeaders:()=>li,ContainerItem:()=>ps,ContainerListBlobFlatSegmentExceptionHeaders:()=>Oi,ContainerListBlobFlatSegmentHeaders:()=>Ui,ContainerListBlobHierarchySegmentExceptionHeaders:()=>_i,ContainerListBlobHierarchySegmentHeaders:()=>Hi,ContainerProperties:()=>gs,ContainerReleaseLeaseExceptionHeaders:()=>ki,ContainerReleaseLeaseHeaders:()=>Di,ContainerRenameExceptionHeaders:()=>Qi,ContainerRenameHeaders:()=>Ii,ContainerRenewLeaseExceptionHeaders:()=>Ti,ContainerRenewLeaseHeaders:()=>vi,ContainerRestoreExceptionHeaders:()=>Bi,ContainerRestoreHeaders:()=>Ei,ContainerSetAccessPolicyExceptionHeaders:()=>Ci,ContainerSetAccessPolicyHeaders:()=>yi,ContainerSetMetadataExceptionHeaders:()=>gi,ContainerSetMetadataHeaders:()=>pi,ContainerSubmitBatchExceptionHeaders:()=>Si,ContainerSubmitBatchHeaders:()=>bi,CorsRule:()=>As,DelimitedTextConfiguration:()=>zs,FilterBlobItem:()=>Es,FilterBlobSegment:()=>Cs,GeoReplication:()=>ds,JsonTextConfiguration:()=>qs,KeyInfo:()=>hs,ListBlobsFlatSegmentResponse:()=>Ss,ListBlobsHierarchySegmentResponse:()=>Ds,ListContainersSegmentResponse:()=>ms,Logging:()=>ns,Metrics:()=>as,PageBlobClearPagesExceptionHeaders:()=>Vo,PageBlobClearPagesHeaders:()=>Go,PageBlobCopyIncrementalExceptionHeaders:()=>na,PageBlobCopyIncrementalHeaders:()=>ra,PageBlobCreateExceptionHeaders:()=>_o,PageBlobCreateHeaders:()=>Ho,PageBlobGetPageRangesDiffExceptionHeaders:()=>Ko,PageBlobGetPageRangesDiffHeaders:()=>$o,PageBlobGetPageRangesExceptionHeaders:()=>jo,PageBlobGetPageRangesHeaders:()=>Wo,PageBlobResizeExceptionHeaders:()=>Zo,PageBlobResizeHeaders:()=>Xo,PageBlobUpdateSequenceNumberExceptionHeaders:()=>ta,PageBlobUpdateSequenceNumberHeaders:()=>ea,PageBlobUploadPagesExceptionHeaders:()=>qo,PageBlobUploadPagesFromURLExceptionHeaders:()=>Jo,PageBlobUploadPagesFromURLHeaders:()=>Yo,PageBlobUploadPagesHeaders:()=>zo,PageList:()=>Ls,PageRange:()=>Fs,QueryFormat:()=>_s,QueryRequest:()=>Os,QuerySerialization:()=>Hs,RetentionPolicy:()=>ss,ServiceFilterBlobsExceptionHeaders:()=>ai,ServiceFilterBlobsHeaders:()=>oi,ServiceGetAccountInfoExceptionHeaders:()=>ni,ServiceGetAccountInfoHeaders:()=>ri,ServiceGetPropertiesExceptionHeaders:()=>js,ServiceGetPropertiesHeaders:()=>Ws,ServiceGetStatisticsExceptionHeaders:()=>Ks,ServiceGetStatisticsHeaders:()=>$s,ServiceGetUserDelegationKeyExceptionHeaders:()=>ti,ServiceGetUserDelegationKeyHeaders:()=>ei,ServiceListContainersSegmentExceptionHeaders:()=>Zs,ServiceListContainersSegmentHeaders:()=>Xs,ServiceSetPropertiesExceptionHeaders:()=>Js,ServiceSetPropertiesHeaders:()=>Ys,ServiceSubmitBatchExceptionHeaders:()=>ii,ServiceSubmitBatchHeaders:()=>si,SignedIdentifier:()=>Qs,StaticWebsite:()=>cs,StorageError:()=>ls,UserDelegationKey:()=>ys});var i=n(3838);var o=n(6928);var a=n(7187);var A=n(9896);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;i.Yz(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;i.Yz(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;i.Yz(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;i.Yz(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;i.Yz(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}var c=n(2613);const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){c(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);c(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();c(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();c(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}c(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=o.sep}return e+t}function hasAbsoluteRoot(e){c(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){c(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var u;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(u||(u={}));const d=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const r of e){const e=d?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const n of e){const e=d?n.searchPath.toUpperCase():n.searchPath;if(t[e]==="included"){continue}let s=false;let i=e;let o=dirname(i);while(o!==i){if(t[o]){s=true;break}i=o;o=dirname(i)}if(!s){r.push(n.searchPath);t[e]="included"}}return r}function internal_pattern_helper_match(e,t){let r=u.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}function internal_pattern_helper_partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var m=n(857);var p=n(3772);const g=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){c(e,`Parameter 'itemPath' must not be empty`);e=safeTrimTrailingSeparator(e);if(!hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=dirname(t)}this.segments.unshift(t)}}else{c(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;tPattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new Path(a).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(a[0]),f?"i":"");this.isImplicitPattern=t;const A={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};s=f?s.replace(/\\/g,"/"):s;this.minimatch=new h(s,A)}match(e){if(this.segments[this.segments.length-1]==="**"){e=normalizeSeparators(e);if(!e.endsWith(o.sep)&&this.isImplicitPattern===false){e=`${e}${o.sep}`}}else{e=safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.Directory:u.All}return u.None}partialMatch(e){e=safeTrimTrailingSeparator(e);if(dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c(e,"pattern cannot be empty");const r=new Path(e).segments.map((e=>Pattern.getLiteral(e)));c(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c(!hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=normalizeSeparators(e);if(e==="."||e.startsWith(`.${o.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${o.sep}`)){t=t||m.homedir();c(t,"Unable to determine HOME directory");c(hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=s;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}class SearchState{constructor(e,t){this.path=e;this.level=t}}var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var C=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var E=undefined&&undefined.__await||function(e){return this instanceof E?(this.v=e,this):new E(e)};var B=undefined&&undefined.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),s[Symbol.asyncIterator]=function(){return this},s;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(n[e]){s[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof E?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};const I=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return y(this,void 0,void 0,(function*(){var e,t,r,n;const s=[];try{for(var i=true,o=C(this.globGenerator()),a;a=yield o.next(),e=a.done,!e;i=true){n=a.value;i=false;const e=n;s.push(e)}}catch(e){t={error:e}}finally{try{if(!i&&!e&&(r=o.return))yield r.call(o)}finally{if(t)throw t.error}}return s}))}globGenerator(){return B(this,arguments,(function*globGenerator_1(){const e=getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of getSearchPaths(t)){i.Yz(`Search path '${e}'`);try{yield E(A.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new SearchState(e,1))}const n=[];while(r.length){const s=r.pop();const i=internal_pattern_helper_match(t,s.path);const a=!!i||internal_pattern_helper_partialMatch(t,s.path);if(!i&&!a){continue}const c=yield E(DefaultGlobber.stat(s,e,n));if(!c){continue}if(e.excludeHiddenFiles&&o.basename(s.path).match(/^\./)){continue}if(c.isDirectory()){if(i&u.Directory&&e.matchDirectories){yield yield E(s.path)}else if(!a){continue}const t=s.level+1;const n=(yield E(A.promises.readdir(s.path))).map((e=>new SearchState(o.join(s.path,e),t)));r.push(...n.reverse())}else if(i&u.File){yield yield E(s.path)}}}))}static create(e,t){return y(this,void 0,void 0,(function*(){const r=new DefaultGlobber(t);if(I){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new Pattern(e))}}r.searchPaths.push(...getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return y(this,void 0,void 0,(function*(){let n;if(t.followSymbolicLinks){try{n=yield A.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){i.Yz(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield A.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield A.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){i.Yz(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n}))}}var Q=n(6982);const b=e(import.meta.url)("stream");var S=n(9023);var N=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var w=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};function hashFiles(e,t){return N(this,arguments,void 0,(function*(e,t,r=false){var n,s,i,o;var a;const A=r?core.info:core.debug;let c=false;const l=t?t:(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const u=crypto.createHash("sha256");let d=0;try{for(var m=true,p=w(e.globGenerator()),g;g=yield p.next(),n=g.done,!n;m=true){o=g.value;m=false;const e=o;A(e);if(!e.startsWith(`${l}${path.sep}`)){A(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){A(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const r=util.promisify(stream.pipeline);yield r(fs.createReadStream(e),t);u.write(t.digest());d++;if(!c){c=true}}}catch(e){s={error:e}}finally{try{if(!m&&!n&&(i=p.return))yield i.call(p)}finally{if(s)throw s.error}}u.end();if(c){A(`Found ${d} files to hash.`);return u.digest("hex")}else{A(`No matches found for glob`);return""}}))}var R=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function create(e,t){return R(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return R(this,arguments,void 0,(function*(e,t="",r,n=false){let s=true;if(r&&typeof r.followSymbolicLinks==="boolean"){s=r.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:s});return _hashFiles(i,t,n)}))}var x=n(8701);var D=n(2088);var k;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(k||(k={}));var v;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(v||(v={}));var T;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(T||(T={}));const P=2;const M=5e3;const L=5e3;const F=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const U=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const O="cache.tar";const H="manifest.txt";const _=10*Math.pow(1024,3);var z=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var q=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};const G="1.0";function createTempDirectory(){return z(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=o.join(r,"actions","temp")}const r=o.join(t,Q.randomUUID());yield x.U$(r);return r}))}function getArchiveFileSizeInBytes(e){return A.statSync(e).size}function resolvePaths(e){return z(this,void 0,void 0,(function*(){var t,r,n,s;var a;const A=[];const c=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const l=yield create(e.join("\n"),{implicitDescendants:false});try{for(var u=true,d=q(l.globGenerator()),m;m=yield d.next(),t=m.done,!t;u=true){s=m.value;u=false;const e=s;const t=o.relative(c,e).replace(new RegExp(`\\${o.sep}`,"g"),"/");i.Yz(`Matched: ${t}`);if(t===""){A.push(".")}else{A.push(`${t}`)}}}catch(e){r={error:e}}finally{try{if(!u&&!t&&(n=d.return))yield n.call(d)}finally{if(r)throw r.error}}return A}))}function unlinkFile(e){return z(this,void 0,void 0,(function*(){return S.promisify(A.unlink)(e)}))}function getVersion(e){return z(this,arguments,void 0,(function*(e,t=[]){let r="";t.push("--version");i.Yz(`Checking ${e} ${t.join(" ")}`);try{yield a.m(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){i.Yz(e.message)}r=r.trim();i.Yz(r);return r}))}function getCompressionMethod(){return z(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=D.clean(e);i.Yz(`zstd version: ${t}`);if(e===""){return v.Gzip}else{return v.ZstdWithoutLong}}))}function getCacheFileName(e){return e===v.Gzip?k.Gzip:k.Zstd}function getGnuTarPathOnWindows(){return z(this,void 0,void 0,(function*(){if(A.existsSync(F)){return F}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?x.K7("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,r=false){const n=e.slice();if(t){n.push(t)}if(process.platform==="win32"&&!r){n.push("windows-only")}n.push(G);return Q.createHash("sha256").update(n.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var V=n(4942);var Y=n(2145);var J=n(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}const W=e(import.meta.url)("node:os");var j=n(7975);const $=e(import.meta.url)("node:process");function log(e,...t){$.stderr.write(`${j.format(e,...t)}${W.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){X=e;Z=[];ee=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){ee.push(e.substring(1))}else{Z.push(e)}}for(const e of te){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of ee){if(namespaceMatches(e,t)){return false}}for(const t of Z){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let r=t;if(t.indexOf("**")!==-1){const e=[];let n="";for(const r of t){if(r==="*"&&n==="*"){continue}else{n=r;e.push(r)}}r=e.join("")}let n=0;let s=0;const i=r.length;const o=e.length;let a=-1;let A=-1;while(n=0){s=a+1;n=A+1;if(n===o){return false}while(e[n]!==r[s]){n++;if(n===o){return false}}A=n;n++;s++;continue}else{return false}}const c=n===e.length;const l=s===r.length;const u=s===r.length-1&&r[s]==="*";return c&&(l||u)}function disable(){const e=X||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:re.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}te.push(t);return t}function destroy(){const e=te.indexOf(this);if(e>=0){te.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return se.includes(e)}function createLoggerContext(e){const t=new Set;const r=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let n;const s=ne(e.namespace);s.log=(...e)=>{ne.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${se.join(",")}`)}n=e;const r=[];for(const e of t){if(shouldEnable(e)){r.push(e.namespace)}}ne.enable(r.join(","))}if(r){if(isTypeSpecRuntimeLogLevel(r)){contextSetLogLevel(r)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(e){return Boolean(n&&ie[e.level]<=ie[n])}function createLogger(e,r){const n=Object.assign(e.extend(r),{level:r});patchLogMethod(e,n);if(shouldEnable(n)){const e=ne.disable();ne.enable(e+","+n.namespace)}t.add(n);return n}function contextGetLogLevel(){return n}function contextCreateClientLogger(e){const t=s.extend(e);patchLogMethod(s,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:s}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(e){oe.setLogLevel(e)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(e){return oe.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,r]of this._headersMap){t[e]=r.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const Ae=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!Ae.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!Ae.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((r=>{if(e.name&&r.policy.name===e.name||e.phase&&r.options.phase===e.phase){t.push(r.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const r=this.getOrderedPolicies();const n=r.reduceRight(((e,t)=>r=>t.sendRequest(r,e)),(t=>e.sendRequest(t)));return n(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const r=createPhase("Serialize");const n=createPhase("None");const s=createPhase("Deserialize");const i=createPhase("Retry");const o=createPhase("Sign");const a=[r,n,s,i,o];function getPhase(e){if(e==="Retry"){return i}else if(e==="Serialize"){return r}else if(e==="Deserialize"){return s}else if(e==="Sign"){return o}else{return n}}for(const e of this._policies){const r=e.policy;const n=e.options;const s=r.name;if(t.has(s)){throw new Error("Duplicate policy names not allowed in pipeline")}const i={policy:r,dependsOn:new Set,dependants:new Set};if(n.afterPhase){i.afterPhase=getPhase(n.afterPhase);i.afterPhase.hasAfterPolicies=true}t.set(s,i);const o=getPhase(n.phase);o.policies.add(i)}for(const e of this._policies){const{policy:r,options:n}=e;const s=r.name;const i=t.get(s);if(!i){throw new Error(`Missing node for policy ${s}`)}if(n.afterPolicies){for(const e of n.afterPolicies){const r=t.get(e);if(r){i.dependsOn.add(r);r.dependants.add(i)}}}if(n.beforePolicies){for(const e of n.beforePolicies){const r=t.get(e);if(r){r.dependsOn.add(i);i.dependants.add(r)}}}}function walkPhase(r){r.hasRun=true;for(const n of r.policies){if(n.afterPhase&&(!n.afterPhase.hasRun||n.afterPhase.policies.size)){continue}if(n.dependsOn.size===0){e.push(n.policy);for(const e of n.dependants){e.dependsOn.delete(n)}t.delete(n.policy.name);r.policies.delete(n)}}}function walkPhases(){for(const e of a){walkPhase(e);if(e.policies.size>0&&e!==n){if(!n.hasRun){walkPhase(n)}return}if(e.hasAfterPolicies){walkPhase(n)}}}let A=0;while(t.size>0){A++;const t=e.length;walkPhases();if(e.length<=t&&A>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}const ce=j.inspect.custom;const le="REDACTED";const ue=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const de=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=ue.concat(e);t=de.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return{...r,name:r.name,message:r.message}}if(e==="headers"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,le)}}return t.toString()}sanitizeHeaders(e){const t={};for(const r of Object.keys(e)){if(this.allowedHeaderNames.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=le}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const r of Object.keys(e)){if(this.allowedQueryParameters.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=le}}return t}}const me=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,ce,{value:()=>`RestError: ${this.message} \n ${me.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var pe=n(7067);const ge=e(import.meta.url)("node:https");var he=n(8522);var fe=n(7075);const ye=createClientLogger("ts-http-runtime");const Ce={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends fe.Transform{loadedBytes=0;progressCallback;_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});r()}catch(e){r(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let r;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}r=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",r)}let n;if(e.timeout>0){n=setTimeout((()=>{const r=new Sanitizer;ye.info(`request to '${r.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const s=e.headers.get("Accept-Encoding");const i=s?.includes("gzip")||s?.includes("deflate");let o=typeof e.body==="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){const t=getBodyLength(o);if(t!==null){e.headers.set("Content-Length",t)}}let a;try{if(o&&e.onUploadProgress){const t=e.onUploadProgress;const r=new ReportTransform(t);r.on("error",(e=>{ye.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(o)){o.pipe(r)}else{r.end(o)}o=r}const r=await this.makeRequest(e,t,o);if(n!==undefined){clearTimeout(n)}const s=getResponseHeaders(r);const A=r.statusCode??0;const c={status:A,headers:s,request:e};if(e.method==="HEAD"){r.resume();return c}a=i?getDecodedResponseStream(r,s):r;const l=e.onDownloadProgress;if(l){const e=new ReportTransform(l);e.on("error",(e=>{ye.error("Error in download progress",e)}));a.pipe(e);a=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(c.status)){c.readableStreamBody=a}else{c.bodyAsText=await streamToText(a)}return c}finally{if(e.abortSignal&&r){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(o)){t=isStreamComplete(o)}let n=Promise.resolve();if(nodeHttpClient_isReadableStream(a)){n=isStreamComplete(a)}Promise.all([t,n]).then((()=>{if(r){e.abortSignal?.removeEventListener("abort",r)}})).catch((e=>{ye.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,r){const n=new URL(e.url);const s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const i=e.agent??this.getOrCreateAgent(e,s);const o={agent:i,hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((n,i)=>{const a=s?pe.request(o,n):ge.request(o,n);a.once("error",(t=>{i(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");a.destroy(e);i(e)}));if(r&&nodeHttpClient_isReadableStream(r)){r.pipe(a)}else if(r){if(typeof r==="string"||Buffer.isBuffer(r)){a.end(r)}else if(isArrayBuffer(r)){a.end(ArrayBuffer.isView(r)?Buffer.from(r.buffer):Buffer.from(r))}else{ye.error("Unrecognized body type",r);i(new restError_RestError("Unrecognized body type"))}}else{a.end()}}))}getOrCreateAgent(e,t){const r=e.disableKeepAlive;if(t){if(r){return pe.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new pe.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(r&&!e.tlsSettings){return ge.globalAgent}const t=e.tlsSettings??Ce;let n=this.cachedHttpsAgents.get(t);if(n&&n.options.keepAlive===!r){return n}ye.info("No cached TLS Agent exist, creating a new Agent");n=new ge.Agent({keepAlive:!r,...t});this.cachedHttpsAgents.set(t,n);return n}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const r of Object.keys(e.headers)){const n=e.headers[r];if(Array.isArray(n)){if(n.length>0){t.set(r,n[0])}}else if(n){t.set(r,n)}}return t}function getDecodedResponseStream(e,t){const r=t.get("Content-Encoding");if(r==="gzip"){const t=he.createGunzip();e.pipe(t);return t}else if(r==="deflate"){const t=he.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,r)=>{const n=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){n.push(e)}else{n.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(n).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){r(e)}else{r(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Ee="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??ye.info;const r=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Ee,async sendRequest(e,n){if(!t.enabled){return n(e)}t(`Request: ${r.sanitize(e)}`);const s=await n(e);t(`Response status code: ${s.status}`);t(`Headers: ${r.sanitize(s.headers)}`);return s}}}const Be="redirectPolicy";const Ie=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:r=false}=e;return{name:Be,async sendRequest(e,n){const s=await n(e);return handleRedirect(n,s,t,r)}}}async function handleRedirect(e,t,r,n,s=0){const{request:i,status:o,headers:a}=t;const A=a.get("location");if(A&&(o===300||o===301&&Ie.includes(i.method)||o===302&&Ie.includes(i.method)||o===303&&i.method==="POST"||o===307)&&s{let i=undefined;let o=undefined;const rejectOnAbort=()=>s(new AbortError(r?.abortErrorMsg?r?.abortErrorMsg:Se));const removeListeners=()=>{if(r?.abortSignal&&o){r.abortSignal.removeEventListener("abort",o)}};o=()=>{if(i){clearTimeout(i)}removeListeners();return rejectOnAbort()};if(r?.abortSignal&&r.abortSignal.aborted){return rejectOnAbort()}i=setTimeout((()=>{removeListeners();n(t)}),e);if(r?.abortSignal){r.abortSignal.addEventListener("abort",o)}}))}function parseHeaderValueAsNumber(e,t){const r=e.headers.get(t);if(!r)return;const n=Number(r);if(Number.isNaN(n))return;return n}const Ne="Retry-After";const we=["retry-after-ms","x-ms-retry-after-ms",Ne];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of we){const r=parseHeaderValueAsNumber(e,t);if(r===0||r){const e=t===Ne?1e3:1;return r*e}}const t=e.headers.get(Ne);if(!t)return;const r=Date.parse(t);const n=r-Date.now();return Number.isFinite(n)?Math.max(0,n):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Re=1e3;const xe=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Re;const r=e.maxRetryDelayInMs??xe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:i}){const o=isSystemError(i);const a=o&&e.ignoreSystemErrors;const A=isExponentialRetryResponse(s);const c=A&&e.ignoreHttpStatusCodes;const l=s&&(isThrottlingRetryResponse(s)||!A);if(l||c||a){return{skipStrategy:true}}if(i&&!o&&!A){return{errorToThrow:i}}return calculateRetryDelay(n,{retryDelayInMs:t,maxRetryDelayInMs:r})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const De="0.3.4";const ke=3;const ve=createClientLogger("ts-http-runtime retryPolicy");const Te="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:ke}){const r=t.logger||ve;return{name:Te,async sendRequest(n,s){let i;let o;let a=-1;e:while(true){a+=1;i=undefined;o=undefined;try{r.info(`Retry ${a}: Attempting to send request`,n.requestId);i=await s(n);r.info(`Retry ${a}: Received a response from request`,n.requestId)}catch(e){r.error(`Retry ${a}: Received an error from request`,n.requestId);o=e;if(!e||o.name!=="RestError"){throw e}i=o.response}if(n.abortSignal?.aborted){r.error(`Retry ${a}: Request aborted.`);const e=new AbortError;throw e}if(a>=(t.maxRetries??ke)){r.info(`Retry ${a}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(o){throw o}else if(i){return i}else{throw new Error("Maximum retries reached with no response or error to throw")}}r.info(`Retry ${a}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||r;e.info(`Retry ${a}: Processing retry strategy ${t.name}.`);const s=t.retry({retryCount:a,response:i,responseError:o});if(s.skipStrategy){e.info(`Retry ${a}: Skipped.`);continue t}const{errorToThrow:A,retryAfterInMs:c,redirectTo:l}=s;if(A){e.error(`Retry ${a}: Retry strategy ${t.name} throws error:`,A);throw A}if(c||c===0){e.info(`Retry ${a}: Retry strategy ${t.name} retries after ${c}`);await helpers_delay(c,undefined,{abortSignal:n.abortSignal});continue e}if(l){e.info(`Retry ${a}: Retry strategy ${t.name} redirects to ${l}`);n.url=l;continue e}}if(o){r.info(`None of the retry strategies could work with the received error. Throwing it.`);throw o}if(i){r.info(`None of the retry strategies could work with the received response. Returning it.`);return i}}}}}const Pe="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Pe,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??ke}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Me=typeof window!=="undefined"&&typeof window.document!=="undefined";const Le=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Fe=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ue=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Oe=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const He=Oe&&!Ue&&!Fe;const _e=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const ze="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[r,n]of e.entries()){t[r]??=[];t[r].push(n)}return t}function formDataPolicy_formDataPolicy(){return{name:ze,async sendRequest(e,t){if(Oe&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.append(r,e.toString())}}else{t.append(r,n.toString())}}return t.toString()}async function prepareFormData(e,t){const r=t.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",r??"multipart/form-data");const n=[];for(const[t,r]of Object.entries(e)){for(const e of Array.isArray(r)?r:[r]){if(typeof e==="string"){n.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const r=e.name||"blob";const s=httpHeaders_createHttpHeaders();s.set("Content-Disposition",`form-data; name="${t}"; filename="${r}"`);s.set("Content-Type",e.type||"application/octet-stream");n.push({headers:s,body:e})}}}t.multipartBody={parts:n}}var qe=n(3669);var Ge=n(1970);const Ve="HTTPS_PROXY";const Ye="HTTP_PROXY";const Je="ALL_PROXY";const We="NO_PROXY";const je="proxyPolicy";const $e=[];let Ke=false;const Xe=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(Ve);const t=getEnvironmentValue(Je);const r=getEnvironmentValue(Ye);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const n=new URL(e).hostname;if(r?.has(n)){return r.get(n)}let s=false;for(const e of t){if(e[0]==="."){if(n.endsWith(e)){s=true}else{if(n.length===e.length-1&&n===e.slice(1)){s=true}}}else{if(n===e){s=true}}}r?.set(n,s);return s}function loadNoProxy(){const e=getEnvironmentValue(We);Ke=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const r=t.protocol?t.protocol+"//":"";return{host:r+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,r){if(e.agent){return}const n=new URL(e.url);const s=n.protocol!=="https:";if(e.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const i=e.headers.toJSON();if(s){if(!t.httpProxyAgent){t.httpProxyAgent=new Ge.HttpProxyAgent(r,{headers:i})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new qe.HttpsProxyAgent(r,{headers:i})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!Ke){$e.push(...loadNoProxy())}const r=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const n={};return{name:je,async sendRequest(e,s){if(!e.proxySettings&&r&&!isBypassed(e.url,t?.customNoProxyList??$e,t?.customNoProxyList?undefined:Xe)){setProxyAgentOnRequest(e,n,r)}else if(e.proxySettings){setProxyAgentOnRequest(e,n,getUrlFromProxySettings(e.proxySettings))}return s(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function typeGuards_isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:r}=await e.read();if(t){return}yield r}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return b.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return b.Readable.from(Buffer.from(e))}else if(typeGuards_isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return b.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[r,n]of e){t+=`${r}: ${n}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const r of e){const e=getLength(r);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,r){const n=[bytesEncoding_stringToUint8Array(`--${r}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${r}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const s=getTotalLength(n);if(s){e.headers.set("Content-Length",s)}e.body=await concat(n)}const Ze="multipartPolicy";const et=70;const tt=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>et){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!tt.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Ze,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let r=e.multipartBody.boundary;const n=e.headers.get("Content-Type")??"multipart/mixed";const s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s){throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`)}const[,i,o]=s;if(o&&r&&o!==r){throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`)}r??=o;if(r){assertValidBoundary(r)}else{r=generateBoundary()}e.headers.set("Content-Type",`${i}; boundary=${r}`);await buildRequestBody(e,e.multipartBody.parts,r);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let rt=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!rt){rt=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const nt="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:nt,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!n){return r(t)}if(n.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`)}t.headers.set(n.name,e.credential.key);return r(t)}}}const st="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:st,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!n){return r(t)}const{username:s,password:i}=e.credential;const o=uint8ArrayToString(stringToUint8Array(`${s}:${i}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${o}`);return r(t)}}}const it="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:it,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!n){return r(t)}const s=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}const ot="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:ot,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!n){return r(t)}const s=await e.credential.getOAuth2Token(n.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}let at;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:r,authSchemes:n,allowInsecureConnection:s}=e;if(r){if(isApiKeyCredential(r)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBasicCredential(r)){t.addPolicy(basicAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBearerTokenCredential(r)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isOAuth2TokenCredential(r)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!at){at=createDefaultHttpClient()}return at}function getHeaderValue(e,t){if(e.headers){const r=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(r){return e.headers[r]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:r}=e;if(r===null||r===undefined){return undefined}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return"text/plain; charset=UTF-8"}if(r instanceof Blob){return r.type||"application/octet-stream"}if(isBinaryBody(r)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const r=e.dispositionType??"form-data";let n=r;if(e.name){n+=`; name=${escapeDispositionField(e.name)}`}let s=undefined;if(e.filename){s=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){s=t}}if(s){n+=`; filename=${escapeDispositionField(s)}`}return n}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const r=getContentDisposition(e);const n=createHttpHeaders(e.headers??{});if(t){n.set("content-type",t)}if(r){n.set("content-disposition",r)}const s=normalizeBody(e.body,t);return{headers:n,body:s}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,r,n={},s){const i=s??getCachedDefaultHttpsClient();const o=buildPipelineRequest(e,t,n);try{const e=await r.sendRequest(i,o);const t=e.headers.toJSON();const s=e.readableStreamBody??e.browserStreamBody;const a=n.responseAsStream||s!==undefined?undefined:getResponseBody(e);const A=s??a;if(n?.onResponse){n.onResponse({...e,request:o,rawHeaders:t,parsedBody:a})}return{request:o,headers:t,status:`${e.status}`,body:A}}catch(e){if(isRestError(e)&&e.response&&n.onResponse){const{response:t}=e;const r=t.headers.toJSON();n?.onResponse({...t,request:o,rawHeaders:r},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(isBlob(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,r={}){const n=getRequestContentType(r);const{body:s,multipartBody:i}=getRequestBody(r.body,n);const o=createHttpHeaders({...r.headers?r.headers:{},accept:r.accept??r.headers?.accept??"application/json",...n&&{"content-type":n}});return createPipelineRequest({url:t,method:e,body:s,multipartBody:i,headers:o,allowInsecureConnection:r.allowInsecureConnection,abortSignal:r.abortSignal,onUploadProgress:r.onUploadProgress,onDownloadProgress:r.onDownloadProgress,timeout:r.timeout,enableBrowserStreams:true,streamResponseStatusCodes:r.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isBlob(e)){return{body:e}}if(isReadableStream(e)||typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const r=t.split(";")[0];switch(r){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const r=t.split(";")[0];const n=e.bodyAsText??"";if(r==="text/plain"){return String(n)}try{return n?JSON.parse(n):undefined}catch(t){if(r==="application/json"){throw createParseError(e,t)}return String(n)}}function createParseError(e,t){const r=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const n=t.code??RestError.PARSE_ERROR;return new RestError(r,{code:n,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const r=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;r.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:n,httpClient:s}=t;const i=t.endpoint??e;const client=(e,...t)=>{const getUrl=r=>buildRequestUrl(i,e,t,{allowInsecureConnection:n,...r});return{get:(e={})=>buildOperation("GET",getUrl(e),r,e,n,s),post:(e={})=>buildOperation("POST",getUrl(e),r,e,n,s),put:(e={})=>buildOperation("PUT",getUrl(e),r,e,n,s),patch:(e={})=>buildOperation("PATCH",getUrl(e),r,e,n,s),delete:(e={})=>buildOperation("DELETE",getUrl(e),r,e,n,s),head:(e={})=>buildOperation("HEAD",getUrl(e),r,e,n,s),options:(e={})=>buildOperation("OPTIONS",getUrl(e),r,e,n,s),trace:(e={})=>buildOperation("TRACE",getUrl(e),r,e,n,s)}};return{path:client,pathUnchecked:client,pipeline:r}}function buildOperation(e,t,r,n,s,i){s=n.allowInsecureConnection??s;return{then:function(o,a){return sendRequest(e,t,r,{...n,allowInsecureConnection:s},i).then(o,a)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const r=typeof e==="string"?t:e;const n=r.body?.error??r.body;const s=typeof e==="string"?e:n?.message??`Unexpected status code: ${r.status}`;return new RestError(s,{statusCode:statusCodeToNumber(r.status),code:n?.code,request:r.request,response:toPipelineResponse(r)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const At=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const ct=At.logger;function esm_setLogLevel(e){At.setLogLevel(e)}function esm_getLogLevel(){return At.getLogLevel()}function esm_createClientLogger(e){return At.createClientLogger(e)}const ut=esm_createClientLogger("core-rest-pipeline");const dt="agentPolicy";function agentPolicy_agentPolicy(e){return{name:dt,sendRequest:async(t,r)=>{if(!t.agent){t.agent=e}return r(t)}}}const mt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:mt,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const pt="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const ht="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:ht,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ft="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:ft,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const yt="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:yt,sendRequest:async(t,r)=>{if(!t.tlsSettings){t.tlsSettings=e}return r(t)}}}const Ct=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:ut.info,...e})}const Et=Be;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if($&&$.versions){const t=`${W.type()} ${W.release()}; ${W.arch()}`;const r=$.versions;if(r.bun){e.set("Bun",`${r.bun} (${t})`)}else if(r.deno){e.set("Deno",`${r.deno} (${t})`)}else if(r.node){e.set("Node",`${r.node} (${t})`)}}}const Bt="1.22.3";const It=3;function userAgent_getUserAgentString(e){const t=[];for(const[r,n]of e){const e=n?`${r}/${n}`:r;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Bt);await util_userAgentPlatform_setPlatformSpecificData(t);const r=userAgent_getUserAgentString(t);const n=e?`${e} ${r}`:r;return n}const Qt=userAgent_getUserAgentHeaderName();const bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:bt,async sendRequest(e,r){if(!e.headers.has(Qt)){e.headers.set(Qt,await t)}return r(e)}}}var St=n(7598);async function computeSha256Hmac(e,t,r){const n=Buffer.from(e,"base64");return createHmac("sha256",n).update(t).digest(r)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=t??{};return new Promise(((t,i)=>{function rejectOnAbort(){i(new AbortError_AbortError(s??"The operation was aborted."))}function removeListeners(){n?.removeEventListener("abort",onAbort)}function onAbort(){r?.();removeListeners();rejectOnAbort()}if(n?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();i(e)}))}catch(e){i(e)}n?.addEventListener("abort",onAbort)}))}const Nt="The delay was aborted.";function delay_delay(e,t){let r;const{abortSignal:n,abortErrorMsg:s}=t??{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Nt})}function delay_calculateRetryDelay(e,t){const r=t.retryDelayInMs*Math.pow(2,e);const n=Math.min(t.maxRetryDelayInMs,r);const s=n/2+getRandomIntegerInclusive(0,n/2);return{retryAfterInMs:s}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,r){return tspRuntime.computeSha256Hmac(e,t,r)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const wt=Me;const Rt=Ue;const xt=Fe;const Dt=Oe;const kt=Oe;const vt=He;const Tt=_e;const Pt=Le;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const Mt={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Lt=Symbol("rawContent");function hasRawContent(e){return typeof e[Lt]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[Lt]()}else{return e}}function createFileFromStream(e,t,r={}){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:r.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[Lt]:e}}function createFile(e,t,r={}){if(isNodeLike){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[Lt]:()=>e}}else{return new File([toArrayBuffer(e)],t,r)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const Ft=Ze;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(t,r)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,r)}}}const Ut=mt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const Ht=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const _t=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const zt="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:zt,async sendRequest(t,r){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return r(t)}}}const qt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const Gt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Vt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(Vt.span,e.span)}if(e.namespace){t=t.setValue(Vt.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const r=new TracingContextImpl(this);r._contextMap.set(e,t);return r}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var Yt=n(8914);const Jt=Yt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...r){return t(...r)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!Jt.instrumenterImplementation){Jt.instrumenterImplementation=createDefaultInstrumenter()}return Jt.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:r,packageVersion:n}=e;function startSpan(e,s,i){const o=getInstrumenter().startSpan(e,{...i,packageName:r,packageVersion:n,tracingContext:s?.tracingOptions?.tracingContext});let a=o.tracingContext;const A=o.span;if(!a.getValue(Vt.namespace)){a=a.setValue(Vt.namespace,t)}A.setAttribute("az.namespace",a.getValue(Vt.namespace));const c=Object.assign({},s,{tracingOptions:{...s?.tracingOptions,tracingContext:a}});return{span:A,updatedOptions:c}}async function withSpan(e,t,r,n){const{span:s,updatedOptions:i}=startSpan(e,t,n);try{const e=await withContext(i.tracingOptions.tracingContext,(()=>Promise.resolve(r(i,s))));s.setStatus({status:"success"});return e}catch(e){s.setStatus({status:"error",error:e});throw e}finally{s.end()}}function withContext(e,t,...r){return getInstrumenter().withContext(e,t,...r)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Wt=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const jt="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const r=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const n=tryCreateTracingClient();return{name:jt,async sendRequest(e,s){if(!n){return s(e)}const i=await t;const o={"http.url":r.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":i,requestId:e.requestId};if(i){o["http.user_agent"]=i}const{span:a,tracingContext:A}=tryCreateSpan(n,e,o)??{};if(!a||!A){return s(e)}try{const t=await n.withContext(A,s,e);tryProcessResponse(a,t);return t}catch(e){tryProcessError(a,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Bt})}catch(e){ut.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,r){try{const{span:n,updatedOptions:s}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return undefined}const i=e.createRequestHeaders(s.tracingOptions.tracingContext);for(const[e,r]of Object.entries(i)){t.headers.set(e,r)}return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(e){ut.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const r=t.headers.get("x-ms-request-id");if(r){e.setAttribute("serviceRequestId",r)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let r=true;function cleanup(){if(r){e.removeEventListener("abort",listener);r=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const $t="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:$t,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:r,cleanup:n}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=r;try{return await t(e)}finally{n?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(kt){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(kt){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:r,cleanup:n}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=r;return await e.sendRequest(t)}finally{n?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Kt=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Xt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Zt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const er=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:er,...t})}const tr={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,a);r=beginRefresh(tryGetAccessToken,i.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then((e=>{r=null;n=e;s=a.tenantId;return n})).catch((e=>{r=null;n=null;s=undefined;throw e}))}return r}return async(e,t)=>{const r=Boolean(t.claims);const i=s!==t.tenantId;if(r){n=null}const a=i||r||o.mustRefresh;if(a){return refresh(e,t)}if(o.shouldRefresh){refresh(e,t)}return n}}const rr="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:true};const i=await r(t,s);if(i){e.request.headers.set("Authorization",`Bearer ${i.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:r}=e;const n=await e.getAccessToken(r,{enableCae:true,claims:t});if(!n){return false}e.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:r,challengeCallbacks:n}=e;const s=e.logger||ut;const i={authorizeRequest:n?.authorizeRequest?.bind(n)??defaultAuthorizeRequest,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)};const o=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:rr,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await i.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:o,logger:s});let n;let a;let A;[n,a]=await trySendRequest(e,t);if(isChallengeResponse(n)){let c=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(c){let i;try{i=atob(c)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${c}`);return n}A=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(A){[n,a]=await trySendRequest(e,t)}}else if(i.authorizeRequestOnChallenge){A=await i.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:e,response:n,getAccessToken:o,logger:s});if(A){[n,a]=await trySendRequest(e,t)}if(isChallengeResponse(n)){c=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(c){let i;try{i=atob(c)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${c}`);return n}A=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(A){[n,a]=await trySendRequest(e,t)}}}}}if(a){throw a}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const r=/(\w+)="([^"]*)"/g;const n=[];let s;while((s=t.exec(e))!==null){const e=s[1];const t=s[2];const i={};let o;while((o=r.exec(t))!==null){i[o[1]]=o[2]}n.push({scheme:e,params:i})}return n}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const nr="auxiliaryAuthenticationHeaderPolicy";const sr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(t,s))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:r}=e;const n=e.logger||coreLogger;const s=new WeakMap;return{name:nr,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){n.info(`${nr} header will not be set due to empty credentials.`);return i(e)}const o=[];for(const i of t){let t=s.get(i);if(!t){t=createTokenCycler(i);s.set(i,t)}o.push(sendAuthorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:t,logger:n}))}const a=(await Promise.all(o)).filter((e=>Boolean(e)));if(a.length===0){n.warning(`None of the auxiliary tokens are valid. ${sr} header will not be set.`);return i(e)}e.headers.set(sr,a.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const ir="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:ir,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===ir))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const or="$";const ar="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const Ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return Ar.test(e)}const cr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return cr.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const r=e.parsedHeaders;if(e.request.method==="HEAD"){return{...r,body:e.parsedBody}}const n=t&&t.bodyMapper;const s=Boolean(n?.nullable);const i=n?.type.name;if(i==="Stream"){return{...r,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const o=i==="Composite"&&n.type.modelProperties||{};const a=Object.keys(o).some((e=>o[e].serializedName===""));if(i==="Sequence"||a){const t=e.parsedBody??[];for(const r of Object.keys(o)){if(o[r].serializedName){t[r]=e.parsedBody?.[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}return s&&!e.parsedBody&&!r&&Object.getOwnPropertyNames(o).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:isPrimitiveBody(e.parsedBody,i)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,n)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${n}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:r,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:i,MaxItems:o,MaxLength:a,MinItems:A,MinLength:c,MultipleOf:l,Pattern:u,UniqueItems:d}=e.constraints;if(r!==undefined&&t>=r){failValidation("ExclusiveMaximum",r)}if(n!==undefined&&t<=n){failValidation("ExclusiveMinimum",n)}if(s!==undefined&&t>s){failValidation("InclusiveMaximum",s)}if(i!==undefined&&to){failValidation("MaxItems",o)}if(a!==undefined&&t.length>a){failValidation("MaxLength",a)}if(A!==undefined&&t.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",d)}}}serialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar}};let i={};const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Sequence$/i)!==null){i=[]}if(e.isConstant){t=e.defaultValue}const{required:a,nullable:A}=e;if(a&&A&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(a&&!A&&(t===undefined||t===null)){throw new Error(`${r} cannot be null or undefined.`)}if(!a&&A===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t===undefined||t===null){i=t}else{if(o.match(/^any$/i)!==null){i=t}else if(o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){i=serializeBasicTypes(o,r,t)}else if(o.match(/^Enum$/i)!==null){const n=e;i=serializeEnumType(r,n.type.allowedValues,t)}else if(o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){i=serializeDateTypes(o,t,r)}else if(o.match(/^ByteArray$/i)!==null){i=serializeByteArrayType(r,t)}else if(o.match(/^Base64Url$/i)!==null){i=serializeBase64UrlType(r,t)}else if(o.match(/^Sequence$/i)!==null){i=serializeSequenceType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Dictionary$/i)!==null){i=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Composite$/i)!==null){i=serializeCompositeType(this,e,t,r,Boolean(this.isXML),s)}}return i}deserialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar},ignoreUnknownProperties:n.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let i;const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Composite$/i)!==null){i=deserializeCompositeType(this,e,t,r,s)}else{if(this.isXML){const e=s.xml.xmlCharKey;if(t[or]!==undefined&&t[e]!==undefined){t=t[e]}}if(o.match(/^Number$/i)!==null){i=parseFloat(t);if(isNaN(i)){i=t}}else if(o.match(/^Boolean$/i)!==null){if(t==="true"){i=true}else if(t==="false"){i=false}else{i=t}}else if(o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){i=t}else if(o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){i=new Date(t)}else if(o.match(/^UnixTime$/i)!==null){i=unixTimeToDate(t)}else if(o.match(/^ByteArray$/i)!==null){i=decodeString(t)}else if(o.match(/^Base64Url$/i)!==null){i=base64UrlToByteArray(t)}else if(o.match(/^Sequence$/i)!==null){i=deserializeSequenceType(this,e,t,r,s)}else if(o.match(/^Dictionary$/i)!==null){i=deserializeDictionaryType(this,e,t,r,s)}}if(e.isConstant){i=e.defaultValue}return i}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const n=e.split(".");for(const e of n){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&typeof r.pipe!=="function"&&typeof r.tee!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const n=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,r){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,n,s,i){if(!Array.isArray(r)){throw new Error(`${n} must be of type Array.`)}let o=t.type.element;if(!o||typeof o!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}.`)}if(o.type.name==="Composite"&&o.type.className){o=e.modelMappers[o.type.className]??o}const a=[];for(let t=0;te!==s));if(a){o[s]=e.serialize(A,r[s],n+'["'+s+'"]',i)}}}return o}return r}function getXmlObjectValue(e,t,r,n){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const i={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[or]){return t}else{const e={...t};e[or]=i;return e}}const o={};o[n.xml.xmlCharKey]=t;o[or]=i;return o}function isSpecialXmlProperty(e,t){return[or,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,n,s){const i=s.xml.xmlCharKey??ar;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const o=resolveModelProperties(e,t,n);let a={};const A=[];for(const c of Object.keys(o)){const l=o[c];const u=splitSerializeName(o[c].serializedName);A.push(u[0]);const{serializedName:d,xmlName:m,xmlElementName:p}=l;let g=n;if(d!==""&&d!==undefined){g=n+"."+d}const h=l.headerCollectionPrefix;if(h){const t={};for(const n of Object.keys(r)){if(n.startsWith(h)){t[n.substring(h.length)]=e.deserialize(l.type.value,r[n],g,s)}A.push(n)}a[c]=t}else if(e.isXML){if(l.xmlIsAttribute&&r[or]){a[c]=e.deserialize(l,r[or][m],g,s)}else if(l.xmlIsMsText){if(r[i]!==undefined){a[c]=r[i]}else if(typeof r==="string"){a[c]=r}}else{const t=p||m||d;if(l.xmlIsWrapped){const t=r[m];const n=t?.[p]??[];a[c]=e.deserialize(l,n,g,s);A.push(m)}else{const n=r[t];a[c]=e.deserialize(l,n,g,s);A.push(t)}}}else{let n;let i=r;let A=0;for(const e of u){if(!i)break;A++;i=i[e]}if(i===null&&A{for(const t in o){const r=splitSerializeName(o[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){a[t]=e.deserialize(c,r[t],n+'["'+t+'"]',s)}}}else if(r&&!s.ignoreUnknownProperties){for(const e of Object.keys(r)){if(a[e]===undefined&&!A.includes(e)&&!isSpecialXmlProperty(e,s)){a[e]=r[e]}}}return a}function deserializeDictionaryType(e,t,r,n,s){const i=t.type.value;if(!i||typeof i!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){const t={};for(const o of Object.keys(r)){t[o]=e.deserialize(i,r[o],n,s)}return t}return r}function deserializeSequenceType(e,t,r,n,s){let i=t.type.element;if(!i||typeof i!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){if(!Array.isArray(r)){r=[r]}if(i.type.name==="Composite"&&i.type.className){i=e.modelMappers[i.type.className]??i}const t=[];for(let o=0;o0){if(s.isConstant){i=s.defaultValue}else{let t=getPropertyFromParameterPath(e,n);if(!t.propertyFound&&r){t=getPropertyFromParameterPath(r,n)}let o=false;if(!t.propertyFound){o=s.required||n[0]==="options"&&n.length===2}i=o?s.defaultValue:t.propertyValue}}}else{if(s.required){i={}}for(const t in n){const o=s.type.modelProperties[t];const a=n[t];const A=getOperationArgumentValueFromParameter(e,{parameterPath:a,mapper:o},r);if(A!==undefined){if(!i){i={}}i[t]=A}}}return i}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let n=0;for(;n=200&&r.status<300}if(A.headersMapper){i.parsedHeaders=a.serializer.deserialize(A.headersMapper,i.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return i}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r,n){const s=200<=e.status&&e.status<300;const i=isOperationSpecEmpty(t)?s:!!r;if(i){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const o=r??t.responses.default;const a=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const A=new Wt(a,{statusCode:e.status,request:e.request,response:e});if(!o&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw A}const c=o?.bodyMapper;const l=o?.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let s;if(c){let e=r;if(t.isXML&&c.type.name===lr.Sequence){e=[];const t=c.xmlElementName;if(typeof r==="object"&&t){e=r[t]}}s=t.serializer.deserialize(c,e,"error.response.parsedBody",n)}const i=r.error||s||r;A.code=i.code;if(i.message){A.message=i.message}if(c){A.response.parsedBody=s}}if(e.headers&&l){A.response.parsedHeaders=t.serializer.deserialize(l,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){A.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:A,shouldReturnResponse:false}}async function parse(e,t,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){const i=r.bodyAsText;const o=r.headers.get("Content-Type")||"";const a=!o?[]:o.split(";").map((e=>e.toLowerCase()));try{if(a.length===0||a.some((t=>e.indexOf(t)!==-1))){r.parsedBody=JSON.parse(i);return r}else if(a.some((e=>t.indexOf(e)!==-1))){if(!s){throw new Error("Parsing XML not supported.")}const e=await s(i,n.xml);r.parsedBody=e;return r}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const n=e.code||Wt.PARSE_ERROR;const s=new Wt(t,{code:n,statusCode:r.status,request:r.request,response:r});throw s}}return r}function getStreamingResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const n=e.responses[r];if(n.bodyMapper&&n.bodyMapper.type.name===lr.Stream){t.add(Number(r))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:r}=e;let n;if(typeof t==="string"){n=t}else if(Array.isArray(t)){n=t.join(".")}else{n=r.serializedName}return n}const fr="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:fr,async sendRequest(e,r){const n=getOperationRequestInfo(e);const s=n?.operationSpec;const i=n?.operationArguments;if(s&&i){serializeHeaders(e,i,s);serializeRequestBody(e,i,s,t)}return r(e)}}}function serializeHeaders(e,t,r){if(r.headerParameters){for(const n of r.headerParameters){let s=getOperationArgumentValueFromParameter(t,n);if(s!==null&&s!==undefined||n.mapper.required){s=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n));const t=n.mapper.headerCollectionPrefix;if(t){for(const r of Object.keys(s)){e.headers.set(t+r,s[r])}}else{e.headers.set(n.mapper.serializedName||getPathStringFromParameter(n),s)}}}}const n=t.options?.requestOptions?.customHeaders;if(n){for(const t of Object.keys(n)){e.headers.set(t,n[t])}}}function serializeRequestBody(e,t,r,n=function(){throw new Error("XML serialization unsupported!")}){const s=t.options?.serializerOptions;const i={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??false,xmlCharKey:s?.xml.xmlCharKey??ar}};const o=i.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,r.requestBody);const s=r.requestBody.mapper;const{required:a,serializedName:A,xmlName:c,xmlElementName:l,xmlNamespace:u,xmlNamespacePrefix:d,nullable:m}=s;const p=s.type.name;try{if(e.body!==undefined&&e.body!==null||m&&e.body===null||a){const t=getPathStringFromParameter(r.requestBody);e.body=r.serializer.serialize(s,e.body,t,i);const a=p===lr.Stream;if(r.isXML){const t=d?`xmlns:${d}`:"xmlns";const r=getXmlValueWithNamespace(u,t,p,e.body,i);if(p===lr.Sequence){e.body=n(prepareXMLRootList(r,l||c||A,t,u),{rootName:c||A,xmlCharKey:o})}else if(!a){e.body=n(r,{rootName:c||A,xmlCharKey:o})}}else if(p===lr.String&&(r.contentType?.match("text/plain")||r.mediaType==="text")){return}else if(!a){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(A,undefined," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){e.formData={};for(const n of r.formDataParameters){const s=getOperationArgumentValueFromParameter(t,n);if(s!==undefined&&s!==null){const t=n.mapper.serializedName||getPathStringFromParameter(n);e.formData[t]=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n),i)}}}}function getXmlValueWithNamespace(e,t,r,n,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xml.xmlCharKey]=n;r[or]={[t]:e};return r}return n}function prepareXMLRootList(e,t,r,n){if(!Array.isArray(e)){e=[e]}if(!r||!n){return{[t]:e}}const s={[t]:e};s[or]={[r]:n};return s}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let yr;function getCachedDefaultHttpClient(){if(!yr){yr=esm_defaultHttpClient_createDefaultHttpClient()}return yr}const Cr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,r,n){const s=calculateUrlReplacements(t,r,n);let i=false;let o=replaceAll(e,s);if(t.path){let e=replaceAll(t.path,s);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){o=e;i=true}else{o=appendPath(o,e)}}const{queryParams:a,sequenceParams:A}=calculateQueryParameters(t,r,n);o=appendQueryParams(o,a,A,i);return o}function replaceAll(e,t){let r=e;for(const[e,n]of t){r=r.split(e).join(n)}return r}function calculateUrlReplacements(e,t,r){const n=new Map;if(e.urlParameters?.length){for(const s of e.urlParameters){let i=getOperationArgumentValueFromParameter(t,s,r);const o=getPathStringFromParameter(s);i=e.serializer.serialize(s.mapper,i,o);if(!s.skipEncoding){i=encodeURIComponent(i)}n.set(`{${s.mapper.serializedName||o}}`,i)}}return n}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const r=new URL(e);let n=r.pathname;if(!n.endsWith("/")){n=`${n}/`}if(t.startsWith("/")){t=t.substring(1)}const s=t.indexOf("?");if(s!==-1){const e=t.substring(0,s);const i=t.substring(s+1);n=n+e;if(i){r.search=r.search?`${r.search}&${i}`:i}}else{n=n+t}r.pathname=n;return r.toString()}function calculateQueryParameters(e,t,r){const n=new Map;const s=new Set;if(e.queryParameters?.length){for(const i of e.queryParameters){if(i.mapper.type.name==="Sequence"&&i.mapper.serializedName){s.add(i.mapper.serializedName)}let o=getOperationArgumentValueFromParameter(t,i,r);if(o!==undefined&&o!==null||i.mapper.required){o=e.serializer.serialize(i.mapper,o,getPathStringFromParameter(i));const t=i.collectionFormat?Cr[i.collectionFormat]:"";if(Array.isArray(o)){o=o.map((e=>{if(e===null||e===undefined){return""}return e}))}if(i.collectionFormat==="Multi"&&o.length===0){continue}else if(Array.isArray(o)&&(i.collectionFormat==="SSV"||i.collectionFormat==="TSV")){o=o.join(t)}if(!i.skipEncoding){if(Array.isArray(o)){o=o.map((e=>encodeURIComponent(e)))}else{o=encodeURIComponent(o)}}if(Array.isArray(o)&&(i.collectionFormat==="CSV"||i.collectionFormat==="Pipes")){o=o.join(t)}n.set(i.mapper.serializedName||getPathStringFromParameter(i),o)}}}return{queryParams:n,sequenceParams:s}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const r=e.split("&");for(const e of r){const[r,n]=e.split("=",2);const s=t.get(r);if(s){if(Array.isArray(s)){s.push(n)}else{t.set(r,[s,n])}}else{t.set(r,n)}}return t}function appendQueryParams(e,t,r,n=false){if(t.size===0){return e}const s=new URL(e);const i=simpleParseQueryParams(s.search);for(const[e,s]of t){const t=i.get(e);if(Array.isArray(t)){if(Array.isArray(s)){t.push(...s);const r=new Set(t);i.set(e,Array.from(r))}else{t.push(s)}}else if(t){if(Array.isArray(s)){s.unshift(t)}else if(r.has(e)){i.set(e,[t,s])}if(!n){i.set(e,s)}}else{i.set(e,s)}}const o=[];for(const[e,t]of i){if(typeof t==="string"){o.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const r of t){o.push(`${e}=${r}`)}}else{o.push(`${e}=${t}`)}}s.search=o.length?`?${o.join("&")}`:"";return s.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:r}of e.additionalPolicies){const e=r==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const r=t.baseUrl||this._endpoint;if(!r){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const n=getRequestUrl(r,t,e,this);const s=esm_pipelineRequest_createPipelineRequest({url:n});s.method=t.httpMethod;const i=getOperationRequestInfo(s);i.operationSpec=t;i.operationArguments=e;const o=t.contentType||this._requestContentType;if(o&&t.requestBody){s.headers.set("Content-Type",o)}const a=e.options;if(a){const e=a.requestOptions;if(e){if(e.timeout){s.timeout=e.timeout}if(e.onUploadProgress){s.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){s.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){i.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){s.allowInsecureConnection=true}}if(a.abortSignal){s.abortSignal=a.abortSignal}if(a.tracingOptions){s.tracingOptions=a.tracingOptions}}if(this._allowInsecureConnection){s.allowInsecureConnection=true}if(s.streamResponseStatusCodes===undefined){s.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(s);const r=flattenResponse(e,t.responses[e.status]);if(a?.onResponse){a.onResponse(e,r)}return r}catch(e){if(typeof e==="object"&&e?.response){const r=e.response;const n=flattenResponse(r,t.responses[e.statusCode]||t.responses["default"]);e.details=n;if(a?.onResponse){a.onResponse(r,n,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const r=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:r})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const r=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return r.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:r}=e;const n=e.logger||coreClientLogger;const s=r.headers.get("WWW-Authenticate");if(!s){n.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const i=parseCAEChallenge(s)||[];const o=i.find((e=>e.claims));if(!o){n.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const a=await e.getAccessToken(o.scope?[o.scope]:t,{claims:decodeStringToString(o.claims)});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}const Br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const r=getChallenge(e.response);if(r){const n=parseChallenge(r);const s=buildScopes(e,n);const i=extractTenantId(n);if(!i){return false}const o=await e.getAccessToken(s,{...t,tenantId:i});if(!o){return false}e.request.headers.set(Br.HeaderConstants.AUTHORIZATION,`${o.tokenType??"Bearer"} ${o.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const r=t.pathname.split("/");const n=r[1];if(n&&isUuid(n)){return n}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const r=new URL(t.resource_id);r.pathname=Br.DefaultScope;let n=r.toString();if(n==="https://disk.azure.com/.default"){n="https://disk.azure.com//.default"}return[n]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const n=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return n.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Ir=Symbol("Original PipelineRequest");const Qr=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const r=e;const n=r[Ir];const s=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=s;return n}else{const r=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:s,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){r[Qr]=t.originalRequest}return r}}function toWebResourceLike(e,t){const r=t?.originalRequest??e;const n={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(n,{get(t,s,i){if(s===Ir){return e}else if(s==="clone"){return()=>toWebResourceLike(toPipelineRequest(n,{originalRequest:r}),{createProxy:true,originalRequest:r})}return Reflect.get(t,s,i)},set(t,r,n,s){if(r==="keepAlive"){e.disableKeepAlive=!n}const i=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof r==="string"&&i.includes(r)){e[r]=n}return Reflect.set(t,r,n,s)}})}else{return n}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{const r=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(r)}}}class Expression{constructor(e,t={}){this.pattern=e;this.separator=t.separator||".";this.segments=this._parse(e);this._hasDeepWildcard=this.segments.some((e=>e.type==="deep-wildcard"));this._hasAttributeCondition=this.segments.some((e=>e.attrName!==undefined));this._hasPositionSelector=this.segments.some((e=>e.position!==undefined))}_parse(e){const t=[];let r=0;let n="";while(r0){const e=this.path[this.path.length-1];e.values=undefined}const n=this.path.length;if(!this.siblingStacks[n]){this.siblingStacks[n]=new Map}const s=this.siblingStacks[n];const i=r?`${r}:${e}`:e;const o=s.get(i)||0;let a=0;for(const e of s.values()){a+=e}s.set(i,o+1);const A={tag:e,position:a,counter:o};if(r!==null&&r!==undefined){A.namespace=r}if(t!==null&&t!==undefined){A.values=t}this.path.push(A)}pop(){if(this.path.length===0){return undefined}const e=this.path.pop();if(this.siblingStacks.length>this.path.length+1){this.siblingStacks.length=this.path.length+1}return e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];if(e!==null&&e!==undefined){t.values=e}}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:undefined}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:undefined}getAttrValue(e){if(this.path.length===0)return undefined;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(this.path.length===0)return false;const t=this.path[this.path.length-1];return t.values!==undefined&&e in t.values}getPosition(){if(this.path.length===0)return-1;return this.path[this.path.length-1].position??0}getCounter(){if(this.path.length===0)return-1;return this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=true){const r=e||this.separator;return this.path.map((e=>{if(t&&e.namespace){return`${e.namespace}:${e.tag}`}return e.tag})).join(r)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[];this.siblingStacks=[]}matches(e){const t=e.segments;if(t.length===0){return false}if(e.hasDeepWildcard()){return this._matchWithDeepWildcard(t)}return this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length){return false}for(let t=0;t=0&&t>=0){const n=e[r];if(n.type==="deep-wildcard"){r--;if(r<0){return true}const n=e[r];let s=false;for(let e=t;e>=0;e--){const i=e===this.path.length-1;if(this._matchSegment(n,this.path[e],i)){t=e-1;r--;s=true;break}}if(!s){return false}}else{const e=t===this.path.length-1;if(!this._matchSegment(n,this.path[t],e)){return false}t--;r--}}return r<0}_matchSegment(e,t,r){if(e.tag!=="*"&&e.tag!==t.tag){return false}if(e.namespace!==undefined){if(e.namespace!=="*"&&e.namespace!==t.namespace){return false}}if(e.attrName!==undefined){if(!r){return false}if(!t.values||!(e.attrName in t.values)){return false}if(e.attrValue!==undefined){const r=t.values[e.attrName];if(String(r)!==String(e.attrValue)){return false}}}if(e.position!==undefined){if(!r){return false}const n=t.counter??0;if(e.position==="first"&&n!==0){return false}else if(e.position==="odd"&&n%2!==1){return false}else if(e.position==="even"&&n%2!==0){return false}else if(e.position==="nth"){if(n!==e.positionValue){return false}}}return true}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e})));this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){const e=this;return new Proxy(e,{get(e,t,r){if(Rr.has(t)){return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. `+`Obtain a writable instance to mutate state.`)}}const n=Reflect.get(e,t,r);if(t==="path"||t==="siblingStacks"){return Object.freeze(Array.isArray(n)?n.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):n)}if(typeof n==="function"){return n.bind(e)}return n},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}const xr="\n";function toXml(e,t){let r="";if(t.format&&t.indentBy.length>0){r=xr}const n=[];if(t.stopNodes&&Array.isArray(t.stopNodes)){for(let e=0;et.maxNestedTags){throw new Error("Maximum nested tags exceeded")}if(!Array.isArray(e)){if(e!==undefined&&e!==null){let r=e.toString();r=replaceEntitiesValue(r,t);return r}return""}for(let a=0;a`;o=false;n.pop();continue}else if(c===t.commentPropName){i+=r+`\x3c!--${A[c][0][t.textNodeName]}--\x3e`;o=true;n.pop();continue}else if(c[0]==="?"){const e=attr_to_str(A[":@"],t,u);const s=c==="?xml"?"":r;let a=A[c][0][t.textNodeName];a=a.length!==0?" "+a:"";i+=s+`<${c}${a}${e}?>`;o=true;n.pop();continue}let d=r;if(d!==""){d+=t.indentBy}const m=attr_to_str(A[":@"],t,u);const p=r+`<${c}${m}`;let g;if(u){g=orderedJs2Xml_getRawContent(A[c],t)}else{g=arrToStr(A[c],t,d,n,s)}if(t.unpairedTags.indexOf(c)!==-1){if(t.suppressUnpairedNode)i+=p+">";else i+=p+"/>"}else if((!g||g.length===0)&&t.suppressEmptyNode){i+=p+"/>"}else if(g&&g.endsWith(">")){i+=p+`>${g}${r}`}else{i+=p+">";if(g&&r!==""&&(g.includes("/>")||g.includes("`}o=true;n.pop()}return i}function extractAttributeValues(e,t){if(!e||t.ignoreAttributes)return null;const r={};let n=false;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const i=s.startsWith(t.attributeNamePrefix)?s.substr(t.attributeNamePrefix.length):s;r[i]=e[s];n=true}return n?r:null}function orderedJs2Xml_getRawContent(e,t){if(!Array.isArray(e)){if(e!==undefined&&e!==null){return e.toString()}return""}let r="";for(let n=0;n`}else{r+=`<${i}${e}>${n}`}}}return r}function attr_to_str_raw(e,t){let r="";if(e&&!t.ignoreAttributes){for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let s=e[n];if(s===true&&t.suppressBooleanAttributes){r+=` ${n.substr(t.attributeNamePrefix.length)}`}else{r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}}}return r}function propName(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities){for(let r=0;r{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}const Dr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false,maxNestedTags:100,jPath:true};function Builder(e){this.options=Object.assign({},Dr,e);if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){this.options.stopNodes=this.options.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}this.stopNodeExpressions=[];if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){for(let e=0;e\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}const t=new Matcher;return this.j2x(e,0,t).val}};Builder.prototype.j2x=function(e,t,r){let n="";let s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}const i=this.options.jPath?r.toString():r;const o=this.checkStopNode(r);for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(typeof e[a]==="undefined"){if(this.isAttribute(a)){s+=""}}else if(e[a]===null){if(this.isAttribute(a)){s+=""}else if(a===this.options.cdataPropName){s+=""}else if(a[0]==="?"){s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar}}else if(e[a]instanceof Date){s+=this.buildTextValNode(e[a],a,"",t,r)}else if(typeof e[a]!=="object"){const A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i)){n+=this.buildAttrPairStr(A,""+e[a],o)}else if(!A){if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);s+=this.replaceEntitiesValue(t)}else{r.push(a);const n=this.checkStopNode(r);r.pop();if(n){const r=""+e[a];if(r===""){s+=this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+">"+r+""+e+"${e}`}else if(typeof e==="object"&&e!==null){const n=this.buildRawContent(e);const s=this.buildAttributesForStopNode(e);if(n===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${n}`}}}}else if(typeof n==="object"&&n!==null){const e=this.buildRawContent(n);const s=this.buildAttributesForStopNode(n);if(e===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${e}`}}else{t+=`<${r}>${n}`}}return t};Builder.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const r=e[this.options.attributesGroupName];for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e;const s=r[e];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}else{for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=this.isAttribute(r);if(n){const s=e[r];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}}return t};Builder.prototype.buildObjectNode=function(e,t,r,n){if(e===""){if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}}else{let s=""+e+s}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&i.length===0){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar}else{let s=this.options.tagValueProcessor(t,e);s=this.replaceEntitiesValue(s);if(s===""){return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}else{return this.indentate(n)+"<"+t+r+">"+s+"0&&this.options.processEntities){for(let t=0;t"&&e[i]!==" "&&e[i]!=="\t"&&e[i]!=="\n"&&e[i]!=="\r";i++){A+=e[i]}A=A.trim();if(A[A.length-1]==="/"){A=A.substring(0,A.length-1);i--}if(!validateTagName(A)){let t;if(A.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+A+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,i))}const c=readAttributeStr(e,i);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+A+"' have open quote.",getLineNumberForPosition(e,i))}let l=c.value;i=c.index;if(l[l.length-1]==="/"){const r=i-l.length;l=l.substring(0,l.length-1);const s=validateAttributeString(l,t);if(s===true){n=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,r+s.err.line))}}else if(a){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",getLineNumberForPosition(e,i))}else if(l.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,o))}else if(r.length===0){return getErrorObject("InvalidTag","Closing tag '"+A+"' has not been opened.",getLineNumberForPosition(e,o))}else{const t=r.pop();if(A!==t.tagName){let r=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+A+"'.",getLineNumberForPosition(e,o))}if(r.length==0){s=true}}}else{const a=validateAttributeString(l,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,i-l.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,i))}else if(t.unpairedTags.indexOf(A)!==-1){}else{r.push({tagName:A,tagStartPos:o})}n=true}for(i++;i0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const r=t;for(;t5&&n==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"){r--;if(r===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}}return t}const Or='"';const Hr="'";function readAttributeStr(e,t){let r="";let n="";let s=false;for(;t"){if(n===""){s=true;break}}r+=e[t]}if(n!==""){return false}return{value:r,index:t,tagClosed:s}}const _r=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const r=getAllMatches(e,_r);const n={};for(let e=0;e{if(Lr.includes(e)){return"__"+e}return e};const qr={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,r){return e},captureMetaData:false,maxNestedTags:100,strictReservedNames:true,jPath:true,onDangerousProperty:defaultOnDangerousProperty};function validatePropertyName(e,t){if(typeof e!=="string"){return}const r=e.toLowerCase();if(Lr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}if(Fr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}}function normalizeProcessEntities(e){if(typeof e==="boolean"){return{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}}if(typeof e==="object"&&e!==null){return{enabled:e.enabled!==false,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(e){const t=Object.assign({},qr,e);const r=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of r){if(e){validatePropertyName(e,t)}}if(t.onDangerousProperty===null){t.onDangerousProperty=defaultOnDangerousProperty}t.processEntities=normalizeProcessEntities(t.processEntities);if(t.stopNodes&&Array.isArray(t.stopNodes)){t.stopNodes=t.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}return t};let Gr;if(typeof Symbol!=="function"){Gr="@@xmlMetadata"}else{Gr=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]=Object.create(null)}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][Gr]={startIndex:t}}}static getMetaDataSymbol(){return Gr}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e;this.options=e}readDocType(e,t){const r=Object.create(null);let n=0;if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let s=1;let i=false,o=false;let a="";for(;t=this.options.maxEntityCount){throw new Error(`Entity count (${n+1}) exceeds maximum allowed (${this.options.maxEntityCount})`)}const e=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[s]={regx:RegExp(`&${e};`,"g"),val:i};n++}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:r}=this.readElementExp(e,t+1);t=r}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(hasSeq(e,"!--",t))o=true;else throw new Error(`Invalid DOCTYPE`);s++;a=""}else if(e[t]===">"){if(o){if(e[t-1]==="-"&&e[t-2]==="-"){o=false;s--}}else{s--}if(s===0){break}}else if(e[t]==="["){i=true}else{a+=e[t]}}if(s!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);const r=t;while(tthis.options.maxEntitySize){throw new Error(`Entity "${n}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}t--;return[n,s,t]}readNotationExp(e,t){t=skipWhitespace(e,t);const r=t;while(t{while(t1||i.length===1&&!a)){return e}else{const n=Number(r);const a=String(n);if(n===0)return n;if(a.search(/[eE]/)!==-1){if(t.eNotation)return n;else return e}else if(r.indexOf(".")!==-1){if(a==="0")return n;else if(a===o)return n;else if(a===`${s}${o}`)return n;else return e}let A=i?o:r;if(i){return A===a||s+A===a?n:e}else{return A===a||A===s+a?n:e}}}else{return e}}}const Wr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,r){if(!r.eNotation)return e;const n=t.match(Wr);if(n){let s=n[1]||"";const i=n[3].indexOf("e")===-1?"E":"e";const o=n[2];const a=s?e[o.length+1]===i:e[o.length]===i;if(o.length>1&&a)return e;else if(o.length===1&&(n[3].startsWith(`.${i}`)||n[3][0]===i)){return Number(t)}else if(o.length>0){if(r.leadingZeros&&!a){t=(n[1]||"")+n[3];return Number(t)}else return e}else{return Number(t)}}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(e,t,r){const n=t===Infinity;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return n?"Infinity":"-Infinity";case"original":default:return e}}function ignoreAttributes_getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}function extractRawAttributes(e,t){if(!e)return{};const r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return{};const n={};for(const e in r){if(e.startsWith(t.attributeNamePrefix)){const s=e.substring(t.attributeNamePrefix.length);n[s]=r[e]}else{n[e]=r[e]}}return n}function extractNamespace(e){if(!e||typeof e!=="string")return undefined;const t=e.indexOf(":");if(t!==-1&&t>0){const r=e.substring(0,t);if(r!=="xmlns"){return r}}return undefined}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;this.matcher=new Matcher;this.readonlyMatcher=this.matcher.readOnly();this.isCurrentNodeStopNode=false;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e0){if(!o)e=this.replaceEntitiesValue(e,t,r);const n=this.options.jPath?r.toString():r;const a=this.options.tagValueProcessor(t,e,n,s,i);if(a===null||a===undefined){return e}else if(typeof a!==typeof e||a!==e){return a}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=r+t[1]}}return e}const jr=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,r){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const n=getAllMatches(e,jr);const s=n.length;const i={};const o={};for(let e=0;e0&&typeof t==="object"&&t.updateCurrent){t.updateCurrent(o)}for(let e=0;e",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");if(e!==-1){s=s.substr(e+1)}}s=transformTagName(this.options.transformTagName,s,"",this.options).tagName;if(r){n=this.saveTextToParentTag(n,r,this.readonlyMatcher)}const o=this.matcher.getCurrentTag();if(s&&this.options.unpairedTags.indexOf(s)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}if(o&&this.options.unpairedTags.indexOf(o)!==-1){this.matcher.pop();this.tagsNodeStack.pop()}this.matcher.pop();this.isCurrentNodeStopNode=false;r=this.tagsNodeStack.pop();n="";i=t}else if(e[i+1]==="?"){let t=readTagExp(e,i,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)}this.addChild(r,e,this.readonlyMatcher,i)}i=t.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if(e.substr(i+1,2)==="!D"){const t=s.readDocType(e,i);this.docTypeEntities=t.entities;i=t.i}else if(e.substr(i+1,2)==="!["){const t=findClosingIndex(e,"]]>",i,"CDATA is not closed.")-2;const s=e.substring(i+9,t);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let o=this.parseTextData(s,r.tagname,this.readonlyMatcher,true,false,true,true);if(o==undefined)o="";if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}])}else{r.add(this.options.textNodeName,o)}i=t+2}else{let s=readTagExp(e,i,this.options.removeNSPrefix);if(!s){const t=e.substring(Math.max(0,i-50),Math.min(e.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${t}"`)}let o=s.tagName;const a=s.rawTagName;let A=s.tagExp;let c=s.attrExpPresent;let l=s.closeIndex;({tagName:o,tagExp:A}=transformTagName(this.options.transformTagName,o,A,this.options));if(this.options.strictReservedNames&&(o===this.options.commentPropName||o===this.options.cdataPropName||o===this.options.textNodeName||o===this.options.attributesGroupName)){throw new Error(`Invalid tag name: ${o}`)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,this.readonlyMatcher,false)}}const u=r;if(u&&this.options.unpairedTags.indexOf(u.tagname)!==-1){r=this.tagsNodeStack.pop();this.matcher.pop()}let d=false;if(A.length>0&&A.lastIndexOf("/")===A.length-1){d=true;if(o[o.length-1]==="/"){o=o.substr(0,o.length-1);A=o}else{A=A.substr(0,A.length-1)}c=o!==A}let m=null;let p={};let g=undefined;g=extractNamespace(a);if(o!==t.tagname){this.matcher.push(o,{},g)}if(o!==A&&c){m=this.buildAttributesMap(A,this.matcher,o);if(m){p=extractRawAttributes(m,this.options)}}if(o!==t.tagname){this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher)}const h=i;if(this.isCurrentNodeStopNode){let t="";if(d){i=s.closeIndex}else if(this.options.unpairedTags.indexOf(o)!==-1){i=s.closeIndex}else{const r=this.readStopNodeData(e,a,l+1);if(!r)throw new Error(`Unexpected end of ${a}`);i=r.i;t=r.tagContent}const n=new XmlNode(o);if(m){n[":@"]=m}n.add(this.options.textNodeName,t);this.matcher.pop();this.isCurrentNodeStopNode=false;this.addChild(r,n,this.readonlyMatcher,h)}else{if(d){({tagName:o,tagExp:A}=transformTagName(this.options.transformTagName,o,A,this.options));const e=new XmlNode(o);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);this.matcher.pop();this.isCurrentNodeStopNode=false}else if(this.options.unpairedTags.indexOf(o)!==-1){const e=new XmlNode(o);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);this.matcher.pop();this.isCurrentNodeStopNode=false;i=s.closeIndex;continue}else{const e=new XmlNode(o);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(r);if(m){e[":@"]=m}this.addChild(r,e,this.readonlyMatcher,h);r=e}n="";i=l}}}else{n+=e[i]}}return t.child};function addChild(e,t,r,n){if(!this.options.captureMetaData)n=undefined;const s=this.options.jPath?r.toString():r;const i=this.options.updateTag(t.tagname,s,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,n)}else{e.addChild(t,n)}}function OrderedObjParser_replaceEntitiesValue(e,t,r){const n=this.options.processEntities;if(!n||!n.enabled){return e}if(n.allowedTags){const s=this.options.jPath?r.toString():r;const i=Array.isArray(n.allowedTags)?n.allowedTags.includes(t):n.allowedTags(t,s);if(!i){return e}}if(n.tagFilter){const s=this.options.jPath?r.toString():r;if(!n.tagFilter(t,s)){return e}}for(const t of Object.keys(this.docTypeEntities)){const r=this.docTypeEntities[t];const s=e.match(r.regx);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}const t=e.length;e=e.replace(r.regx,r.val);if(n.maxExpandedLength){this.currentExpandedLength+=e.length-t;if(this.currentExpandedLength>n.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n.maxExpandedLength}`)}}}}for(const t of Object.keys(this.lastEntities)){const r=this.lastEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities){for(const t of Object.keys(this.htmlEntities)){const r=this.htmlEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val);return e}function saveTextToParentTag(e,t,r,n){if(e){if(n===undefined)n=t.child.length===0;e=this.parseTextData(e,t.tagname,r,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,n);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t){if(!e||e.length===0)return false;for(let r=0;r",r,`${t} is not closed`);let o=e.substring(r+2,i).trim();if(o===t){s--;if(s===0){return{tagContent:e.substring(n,r),i:i}}}r=i}else if(e[r+1]==="?"){const t=findClosingIndex(e,"?>",r+1,"StopNode is not closed.");r=t}else if(e.substr(r+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",r+3,"StopNode is not closed.");r=t}else if(e.substr(r+1,2)==="!["){const t=findClosingIndex(e,"]]>",r,"StopNode is not closed.")-2;r=t}else{const n=readTagExp(e,r,">");if(n){const e=n&&n.tagName;if(e===t&&n.tagExp[n.tagExp.length-1]!=="/"){s++}r=n.closeIndex}}}}}function parseValue(e,t,r){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,r)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,r){const n=Number.parseInt(e,t);if(n>=0&&n<=1114111){return String.fromCodePoint(n)}else{return r+e+";"}}function transformTagName(e,t,r,n){if(e){const n=e(t);if(r===t){r=n}t=n}t=sanitizeName(t,n);return{tagName:t,tagExp:r}}function sanitizeName(e,t){if(Fr.includes(e)){throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}else if(Lr.includes(e)){return t.onDangerousProperty(e)}return e}const $r=XmlNode.getMetaDataSymbol();function stripAttributePrefix(e,t){if(!e||typeof e!=="object")return{};if(!t)return e;const r={};for(const n in e){if(n.startsWith(t)){const s=n.substring(t.length);r[s]=e[n]}else{r[n]=e[n]}}return r}function prettify(e,t,r,n){return compress(e,t,r,n)}function compress(e,t,r,n){let s;const i={};for(let o=0;o0)i[t.textNodeName]=s}else if(s!==undefined)i[t.textNodeName]=s;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e${i}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const r=zr.validate(e);if(r!==true){throw r}const n=new XMLParser(getParserOptions(t));const s=n.parse(e);if(s["?xml"]){delete s["?xml"]}if(!t.includeRoot){for(const e of Object.keys(s)){const t=s[e];return typeof t==="object"?Object.assign({},t):t}}return s}const Zr=esm_createClientLogger("storage-blob");var en=n(4434);class BuffersStream extends fe.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,r){super(r);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let n=0;for(const e of this.buffers){n+=e.byteLength}if(n=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const n=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,n));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=n;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(i===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=i;r+=i}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var tn=n(4573);const rn=tn.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,r){this.capacity=e;this._size=0;const n=Math.ceil(e/rn);for(let t=0;t0){e[0]=e[0].slice(i)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new en.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,r,n,s,i){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=n;this.concurrency=s;this.encoding=i}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthr.getReadableStream()),r.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let nn;function cache_getCachedDefaultHttpClient(){if(!nn){nn=esm_defaultHttpClient_createDefaultHttpClient()}return nn}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const sn="1.0.0";const on={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const an={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const An=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const cn=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_common_escape(r);t.pathname=r;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=getValueInConnString(e,"AccountName");i=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){n=getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let n=getValueInConnString(e,"AccountName");if(!n){n=getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+padStart(t.toString(),r-e.length,"0");return base64encode(i)}async function utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,sanitizeURL(n))}else{t.set(r,n)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;ei}const o=s0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,an.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,an.CONTENT_ENCODING),this.getHeaderValueToSign(e,an.CONTENT_LENGTH),this.getHeaderValueToSign(e,an.CONTENT_MD5),this.getHeaderValueToSign(e,an.CONTENT_TYPE),this.getHeaderValueToSign(e,an.DATE),this.getHeaderValueToSign(e,an.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,an.IF_MATCH),this.getHeaderValueToSign(e,an.IF_NONE_MATCH),this.getHeaderValueToSign(e,an.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,an.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(an.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const n=getURLQueries(e.url);const s={};if(n){const e=[];for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const r=t.toLowerCase();s[r]=n[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const mn=esm_createClientLogger("storage-common");var pn;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(pn||(pn={}));function NewRetryPolicyFactory(e){return{create:(t,r)=>new StorageRetryPolicy(t,r,e)}}const gn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const hn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,r=gn){super(e,t);this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:gn.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):gn.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:gn.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:gn.maxRetryDelayInMs):gn.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:gn.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:gn.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const n=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){n.url=setURLHost(n.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){n.url=setURLParameter(n.url,on.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let i;try{mn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);i=await this._nextPolicy.sendRequest(n);if(!this.shouldRetry(s,r,i)){return i}t=t||!s&&i.status===404}catch(e){mn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,i,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,n){if(t>=this.retryOptions.maxTries){mn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(const e of s){if(n.name.toUpperCase().includes(e)||n.message.toUpperCase().includes(e)||n.code&&n.code.toString().toUpperCase()===e){mn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||n){const t=r?r.status:n?n.statusCode:0;if(!e&&t===404){mn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){mn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(r){if(r?.status>=400){const e=r.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(n?.code==="PARSE_ERROR"&&n?.message.startsWith(`Error "Error: Unclosed root tag`)){mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,r){let n=0;if(e){switch(this.retryOptions.retryPolicyType){case pn.EXPONENTIAL:n=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case pn.FIXED:n=this.retryOptions.retryDelayInMs;break}}else{n=Math.random()*1e3}mn.info(`RetryPolicy: Delay for ${n}ms`);return utils_common_delay(n,r,hn)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const fn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:fn,async sendRequest(e,t){if(kt){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,on.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(an.COOKIE);e.headers.delete(an.CONTENT_LENGTH);return t(e)}}}const yn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:yn,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const Cn="storageRetryPolicy";const En={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Bn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const In=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??En.retryPolicyType;const r=e.maxTries??En.maxTries;const n=e.retryDelayInMs??En.retryDelayInMs;const s=e.maxRetryDelayInMs??En.maxRetryDelayInMs;const i=e.secondaryHost??En.secondaryHost;const o=e.tryTimeoutInMs??En.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:s}){if(t>=r){mn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${r}, no further try.`);return false}if(s){for(const e of Bn){if(s.name.toUpperCase().includes(e)||s.message.toUpperCase().includes(e)||s.code&&s.code.toString().toUpperCase()===e){mn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(s?.code==="PARSE_ERROR"&&s?.message.startsWith(`Error "Error: Unclosed root tag`)){mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||s){const t=n?.status??s?.statusCode??0;if(!e&&t===404){mn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){mn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,r){let i=0;if(e){switch(t){case pn.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*n,s);break;case pn.FIXED:i=n;break}}else{i=Math.random()*1e3}mn.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:Cn,async sendRequest(e,t){if(o){e.url=setURLParameter(e.url,on.Parameters.TIMEOUT,String(Math.floor(o/1e3)))}const r=e.url;const n=i?setURLHost(e.url,i):undefined;let s=false;let a=1;let A=true;let c;let l;while(A){const i=s||!n||!["GET","HEAD","OPTIONS"].includes(e.method)||a%2===1;e.url=i?r:n;c=undefined;l=undefined;try{mn.info(`RetryPolicy: =====> Try=${a} ${i?"Primary":"Secondary"}`);c=await t(e);s=s||!i&&c.status===404}catch(e){if(esm_restError_isRestError(e)){mn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);l=e}else{mn.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}A=shouldRetry({isPrimaryRetry:i,attempt:a,response:c,error:l});if(A){await utils_common_delay(calculateDelay(i,a),e.abortSignal,In)}a++}if(c){return c}throw l??new Wt("RetryPolicy failed without known error.")}}}const Qn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(an.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(t.body))}const r=[t.method.toUpperCase(),getHeaderValueToSign(t,an.CONTENT_LANGUAGE),getHeaderValueToSign(t,an.CONTENT_ENCODING),getHeaderValueToSign(t,an.CONTENT_LENGTH),getHeaderValueToSign(t,an.CONTENT_MD5),getHeaderValueToSign(t,an.CONTENT_TYPE),getHeaderValueToSign(t,an.DATE),getHeaderValueToSign(t,an.IF_MODIFIED_SINCE),getHeaderValueToSign(t,an.IF_MATCH),getHeaderValueToSign(t,an.IF_NONE_MATCH),getHeaderValueToSign(t,an.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,an.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const n=(0,St.createHmac)("sha256",e.accountKey).update(r,"utf8").digest("base64");t.headers.set(an.AUTHORIZATION,`SharedKey ${e.accountName}:${n}`)}function getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}function getCanonicalizedHeadersString(e){let t=[];for(const[r,n]of e.headers){if(r.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)){t.push({name:r,value:n})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}function getCanonicalizedResourceString(t){const r=getURLPath(t.url)||"/";let n="";n+=`/${e.accountName}${r}`;const s=getURLQueries(t.url);const i={};if(s){const e=[];for(const t in s){if(Object.prototype.hasOwnProperty.call(s,t)){const r=t.toLowerCase();i[r]=s[t];e.push(r)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}return{name:Qn,async sendRequest(e,t){signRequest(e);return t(e)}}}const bn="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:bn,async sendRequest(e,t){try{const r=await t(e);return r}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.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.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const Sn="12.31.0";const Nn="2026-02-06";const wn=256*1024*1024;const Rn=4e3*1024*1024;const xn=5e4;const Dn=8*1024*1024;const kn=4*1024*1024;const vn=5;const Tn=100*1e3;const Pn="https://storage.azure.com/.default";const Mn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ln={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Fn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const Un="";const On="*";const Hn=1*1024*1024;const _n=256;const zn=4*Hn;const qn="\r\n";const Gn="HTTP/1.1";const Vn="AES256";const Yn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Jn=["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"];const Wn=["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"];const jn="BlobUsesCustomerSpecifiedEncryption";const $n="BlobDoesNotUseCustomerSpecifiedEncryption";const Kn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const r=new Pipeline([],t);r._credential=e;return r}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const r=e.factories.filter((e=>!t.some((t=>t(e)))));if(r.length){const e=r.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(r),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...r}=e.options;let n=e._coreHttpClient;if(!n){n=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=n}let s=e._corePipeline;if(!s){const t=`azsdk-js-azure-storage-blob/${Sn}`;const n=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;s=createClientPipeline({...r,loggingOptions:{additionalAllowedHeaderNames:Jn,additionalAllowedQueryParameters:Wn,logger:Zr.info},userAgentOptions:{userAgentPrefix:n},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});s.removePolicy({phase:"Retry"});s.removePolicy({name:Ut});s.addPolicy(storageCorrectContentLengthPolicy());s.addPolicy(storageRetryPolicy(r.retryOptions),{phase:"Retry"});s.addPolicy(storageRequestFailureDetailsParserPolicy());s.addPolicy(storageBrowserPolicy());const i=processDownlevelPipeline(e);if(i){s.addPolicy(i.wrappedPolicies,i.afterRetry?{afterPhase:"Retry"}:undefined)}const o=getCredentialFromPipeline(e);if(isTokenCredential(o)){s.addPolicy(bearerTokenAuthenticationPolicy({credential:o,scopes:r.audience??Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(o instanceof StorageSharedKeyCredential){s.addPolicy(storageSharedKeyCredentialPolicy({accountName:o.accountName,accountKey:o.accountKey}),{phase:"Sign"})}e._corePipeline=s}return{...r,allowInsecureConnection:true,httpClient:n,pipeline:s}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const r of e.factories){if(isTokenCredential(r.credential)){t=r.credential}else if(isStorageSharedKeyCredential(r)){return r}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const r={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const n={log(e,t){},shouldLog(e){return false}};const s=e.create(r,n);const i=s.constructor.name;return t.some((e=>i.startsWith(e)))}var Xn;(function(e){e["AES256"]="AES256"})(Xn||(Xn={}));var Zn;(function(e){e["Backup"]="backup"})(Zn||(Zn={}));var es;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(es||(es={}));var ts;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ts||(ts={}));const rs={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ns={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const as={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const As={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const cs={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const ls={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const us={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const ds={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ms={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ps={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const gs={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const hs={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const ys={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Cs={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Es={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const Bs={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Is={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Qs={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const bs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Ss={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ns={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ws={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const Rs={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const xs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const Ds={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ks={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const vs={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ts={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Ps={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const Ms={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Ls={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Fs={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Us={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Os={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Hs={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const _s={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const zs={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const qs={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const Gs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const Vs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ys={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ii={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Si={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ni={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const wi={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ri={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Di={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ki={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ti={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mi={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Fi={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ui={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _i={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const qi={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Vi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $i={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xi={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Zi={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const eo={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ro={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const no={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const so={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const oo={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ao={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Ao={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const uo={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const mo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const po={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ho={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const fo={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Co={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Eo={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Bo={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Io={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qo={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const So={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const No={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wo={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ro={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Do={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ko={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const To={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Po={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Mo={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qo={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Wo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Aa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const la={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const ua={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ha={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ca={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ea={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ba={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qa={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ba={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Sa={parameterPath:"blobServiceProperties",mapper:rs};const Na={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const wa={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Ra={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const xa={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Da={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const ka={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const va={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Ta={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Pa={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ma={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const La={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const Fa={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Ua={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Oa={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Ha={parameterPath:"keyInfo",mapper:hs};const _a={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const za={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const qa={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ga={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Va={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Ya={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Ja={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wa={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const ja={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const $a={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const Ka={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Xa={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Za={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const eA={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const tA={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const rA={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const nA={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sA={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const iA={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const oA={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const aA={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const AA={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const cA={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const lA={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const uA={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const dA={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mA={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const pA={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const gA={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const hA={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const fA={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const yA={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const CA={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const EA={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const BA={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const IA={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const QA={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const bA={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const SA={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const NA={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const wA={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const RA={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const xA={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const DA={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const kA={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const vA={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const TA={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const PA={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const MA={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const LA={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const FA={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const UA={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const OA={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const HA={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const _A={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const zA={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const qA={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const GA={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const VA={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const YA={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const JA={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const WA={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jA={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const $A={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const KA={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const XA={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ZA={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const ec={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tc={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const rc={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const nc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const sc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const ic={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const oc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const ac={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Ac={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const cc={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const lc={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const uc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const dc={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const mc={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const pc={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const gc={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const hc={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const fc={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yc={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Cc={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Ec={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bc={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Ic={parameterPath:["options","queryRequest"],mapper:Os};const Qc={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bc={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Sc={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Nc={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const wc={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Rc={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const xc={parameterPath:["options","tags"],mapper:Bs};const Dc={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const kc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const vc={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Tc={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Pc={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Mc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Lc={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Fc={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Uc={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oc={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Hc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const _c={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const zc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const qc={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Gc={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Vc={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Yc={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Jc={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Wc={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jc={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const $c={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Kc={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const Xc={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zc={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const el={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tl={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const rl={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const nl={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const sl={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const il={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ol={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const al={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Al={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const cl={parameterPath:"blocks",mapper:Ts};const ll={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ul={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},ml)}getProperties(e){return this.client.sendOperationRequest({options:e},pl)}getStatistics(e){return this.client.sendOperationRequest({options:e},gl)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},hl)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},fl)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},yl)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},Cl)}filterBlobs(e){return this.client.sendOperationRequest({options:e},El)}}const dl=createSerializer(s,true);const ml={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ys},default:{bodyMapper:ls,headersMapper:Js}},requestBody:Sa,queryParameters:[Ra,xa,Da],urlParameters:[wa],headerParameters:[ba,Na,ka,va],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const pl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rs,headersMapper:Ws},default:{bodyMapper:ls,headersMapper:js}},queryParameters:[Ra,xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const gl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:us,headersMapper:$s},default:{bodyMapper:ls,headersMapper:Ks}},queryParameters:[Ra,Da,Pa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const hl={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ms,headersMapper:Xs},default:{bodyMapper:ls,headersMapper:Zs}},queryParameters:[Da,Ma,La,Fa,Ua,Oa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const fl={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:ys,headersMapper:ei},default:{bodyMapper:ls,headersMapper:ti}},requestBody:Ha,queryParameters:[Ra,Da,_a],urlParameters:[wa],headerParameters:[ba,Na,ka,va],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const yl={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ri},default:{bodyMapper:ls,headersMapper:ni}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};const Cl={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:si},default:{bodyMapper:ls,headersMapper:ii}},requestBody:qa,queryParameters:[Da,Ga],urlParameters:[wa],headerParameters:[Na,ka,va,Va,Ya],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dl};const El={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:oi},default:{bodyMapper:ls,headersMapper:ai}},queryParameters:[Da,Fa,Ua,Ja,Wa],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:dl};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Il)}getProperties(e){return this.client.sendOperationRequest({options:e},Ql)}delete(e){return this.client.sendOperationRequest({options:e},bl)}setMetadata(e){return this.client.sendOperationRequest({options:e},Sl)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Nl)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},wl)}restore(e){return this.client.sendOperationRequest({options:e},Rl)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},xl)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},Dl)}filterBlobs(e){return this.client.sendOperationRequest({options:e},kl)}acquireLease(e){return this.client.sendOperationRequest({options:e},vl)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Tl)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Pl)}breakLease(e){return this.client.sendOperationRequest({options:e},Ml)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},Ll)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Fl)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ul)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ol)}}const Bl=createSerializer(s,true);const Il={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ai},default:{bodyMapper:ls,headersMapper:ci}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,Ka,Xa,Za],isXML:true,serializer:Bl};const Ql={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:li},default:{bodyMapper:ls,headersMapper:ui}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,eA],isXML:true,serializer:Bl};const bl={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:di},default:{bodyMapper:ls,headersMapper:mi}},queryParameters:[Da,ja],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA],isXML:true,serializer:Bl};const Sl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:pi},default:{bodyMapper:ls,headersMapper:gi}},queryParameters:[Da,ja,nA],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA],isXML:true,serializer:Bl};const Nl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:hi},default:{bodyMapper:ls,headersMapper:fi}},queryParameters:[Da,ja,sA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA],isXML:true,serializer:Bl};const wl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:yi},default:{bodyMapper:ls,headersMapper:Ci}},requestBody:iA,queryParameters:[Da,ja,sA],urlParameters:[wa],headerParameters:[ba,Na,ka,va,Ka,eA,tA,rA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bl};const Rl={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ei},default:{bodyMapper:ls,headersMapper:Bi}},queryParameters:[Da,ja,oA],urlParameters:[wa],headerParameters:[ka,va,Ta,aA,AA],isXML:true,serializer:Bl};const xl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ii},default:{bodyMapper:ls,headersMapper:Qi}},queryParameters:[Da,ja,cA],urlParameters:[wa],headerParameters:[ka,va,Ta,lA,uA],isXML:true,serializer:Bl};const Dl={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:bi},default:{bodyMapper:ls,headersMapper:Si}},requestBody:qa,queryParameters:[Da,Ga,ja],urlParameters:[wa],headerParameters:[Na,ka,va,Va,Ya],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bl};const kl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:Ni},default:{bodyMapper:ls,headersMapper:wi}},queryParameters:[Da,Fa,Ua,Ja,Wa,ja],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const vl={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ri},default:{bodyMapper:ls,headersMapper:xi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,mA,pA,gA],isXML:true,serializer:Bl};const Tl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Di},default:{bodyMapper:ls,headersMapper:ki}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,hA,fA],isXML:true,serializer:Bl};const Pl={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:vi},default:{bodyMapper:ls,headersMapper:Ti}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,yA],isXML:true,serializer:Bl};const Ml={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Pi},default:{bodyMapper:ls,headersMapper:Mi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,CA,EA],isXML:true,serializer:Bl};const Ll={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Li},default:{bodyMapper:ls,headersMapper:Fi}},queryParameters:[Da,ja,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,BA,IA],isXML:true,serializer:Bl};const Fl={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ss,headersMapper:Ui},default:{bodyMapper:ls,headersMapper:Oi}},queryParameters:[Da,Ma,La,Fa,Ua,ja,QA,bA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const Ul={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ds,headersMapper:Hi},default:{bodyMapper:ls,headersMapper:_i}},queryParameters:[Da,Ma,La,Fa,Ua,ja,QA,bA,SA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};const Ol={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:zi},default:{bodyMapper:ls,headersMapper:qi}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Bl};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},_l)}getProperties(e){return this.client.sendOperationRequest({options:e},zl)}delete(e){return this.client.sendOperationRequest({options:e},ql)}undelete(e){return this.client.sendOperationRequest({options:e},Gl)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Vl)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Yl)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Jl)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Wl)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},jl)}setMetadata(e){return this.client.sendOperationRequest({options:e},$l)}acquireLease(e){return this.client.sendOperationRequest({options:e},Kl)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Xl)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Zl)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},eu)}breakLease(e){return this.client.sendOperationRequest({options:e},tu)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ru)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},nu)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},su)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},iu)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ou)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},au)}query(e){return this.client.sendOperationRequest({options:e},Au)}getTags(e){return this.client.sendOperationRequest({options:e},cu)}setTags(e){return this.client.sendOperationRequest({options:e},lu)}}const Hl=createSerializer(s,true);const _l={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Gi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Gi},default:{bodyMapper:ls,headersMapper:Vi}},queryParameters:[Da,NA,wA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,xA,DA,kA,vA,TA,PA,MA,LA],isXML:true,serializer:Hl};const zl={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Yi},default:{bodyMapper:ls,headersMapper:Ji}},queryParameters:[Da,NA,wA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,kA,vA,TA,PA,MA,LA],isXML:true,serializer:Hl};const ql={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Wi},default:{bodyMapper:ls,headersMapper:ji}},queryParameters:[Da,NA,wA,UA],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,FA],isXML:true,serializer:Hl};const Gl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$i},default:{bodyMapper:ls,headersMapper:Ki}},queryParameters:[Da,oA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const Vl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xi},default:{bodyMapper:ls,headersMapper:Zi}},queryParameters:[Da,OA],urlParameters:[wa],headerParameters:[ka,va,Ta,HA,_A],isXML:true,serializer:Hl};const Yl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eo},default:{bodyMapper:ls,headersMapper:to}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,zA,qA,GA,VA,YA,JA],isXML:true,serializer:Hl};const Jl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ro},default:{bodyMapper:ls,headersMapper:no}},queryParameters:[Da,NA,wA,WA],urlParameters:[wa],headerParameters:[ka,va,Ta,rA,jA,$A],isXML:true,serializer:Hl};const Wl={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:so},default:{bodyMapper:ls,headersMapper:oo}},queryParameters:[Da,NA,wA,WA],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const jl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ao},default:{bodyMapper:ls,headersMapper:Ao}},queryParameters:[Da,NA,wA,KA],urlParameters:[wa],headerParameters:[ka,va,Ta,XA],isXML:true,serializer:Hl};const $l={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:co},default:{bodyMapper:ls,headersMapper:lo}},queryParameters:[Da,nA],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA],isXML:true,serializer:Hl};const Kl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:uo},default:{bodyMapper:ls,headersMapper:mo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,mA,pA,gA,PA,MA,LA],isXML:true,serializer:Hl};const Xl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:po},default:{bodyMapper:ls,headersMapper:go}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,hA,fA,PA,MA,LA],isXML:true,serializer:Hl};const Zl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ho},default:{bodyMapper:ls,headersMapper:fo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,yA,PA,MA,LA],isXML:true,serializer:Hl};const eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yo},default:{bodyMapper:ls,headersMapper:Co}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,fA,BA,IA,PA,MA,LA],isXML:true,serializer:Hl};const tu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Eo},default:{bodyMapper:ls,headersMapper:Bo}},queryParameters:[Da,dA],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,CA,EA,PA,MA,LA],isXML:true,serializer:Hl};const ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Io},default:{bodyMapper:ls,headersMapper:Qo}},queryParameters:[Da,ec],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA],isXML:true,serializer:Hl};const nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:bo},default:{bodyMapper:ls,headersMapper:So}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,PA,MA,LA,jA,$A,tc,rc,nc,sc,ic,oc,ac,Ac,cc,lc,uc],isXML:true,serializer:Hl};const su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:No},default:{bodyMapper:ls,headersMapper:wo}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,$a,eA,tA,rA,PA,MA,LA,jA,$A,ZA,tc,nc,sc,ic,oc,Ac,cc,uc,dc,mc,pc,gc,hc],isXML:true,serializer:Hl};const iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Ro},default:{bodyMapper:ls,headersMapper:xo}},queryParameters:[Da,fc,Cc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,yc],isXML:true,serializer:Hl};const ou={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Do},202:{headersMapper:Do},default:{bodyMapper:ls,headersMapper:ko}},queryParameters:[Da,NA,wA,Ec],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA,rc,Bc],isXML:true,serializer:Hl};const au={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:vo},default:{bodyMapper:ls,headersMapper:To}},queryParameters:[xa,Da,za],urlParameters:[wa],headerParameters:[ka,va,Ta],isXML:true,serializer:Hl};const Au={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Po},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Po},default:{bodyMapper:ls,headersMapper:Mo}},requestBody:Ic,queryParameters:[Da,NA,Qc],urlParameters:[wa],headerParameters:[ba,Na,ka,va,eA,tA,rA,kA,vA,TA,PA,MA,LA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hl};const cu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Bs,headersMapper:Lo},default:{bodyMapper:ls,headersMapper:Fo}},queryParameters:[Da,NA,wA,bc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA,Sc,Nc,wc,Rc],isXML:true,serializer:Hl};const lu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Uo},default:{bodyMapper:ls,headersMapper:Oo}},requestBody:xc,queryParameters:[Da,wA,bc],urlParameters:[wa],headerParameters:[ba,Na,ka,va,eA,LA,Sc,Nc,wc,Rc,Dc,kc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hl};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:r},du)}uploadPages(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},mu)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},pu)}uploadPagesFromURL(e,t,r,n,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:r,range:n,options:s},gu)}getPageRanges(e){return this.client.sendOperationRequest({options:e},hu)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},fu)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},yu)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},Cu)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Eu)}}const uu=createSerializer(s,true);const du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ho},default:{bodyMapper:ls,headersMapper:_o}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,vc,Tc,Pc],isXML:true,serializer:uu};const mu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zo},default:{bodyMapper:ls,headersMapper:qo}},requestBody:Lc,queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Va,eA,tA,rA,RA,kA,vA,TA,PA,MA,LA,ZA,Dc,kc,Mc,Fc,Oc,Hc,_c,zc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:uu};const pu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:ls,headersMapper:Vo}},queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,RA,kA,vA,TA,PA,MA,LA,ZA,Hc,_c,zc,qc],isXML:true,serializer:uu};const gu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Yo},default:{bodyMapper:ls,headersMapper:Jo}},queryParameters:[Da,Uc],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,nc,sc,ic,oc,mc,pc,hc,Oc,Hc,_c,zc,Gc,Vc,Yc,Jc],isXML:true,serializer:uu};const hu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:Wo},default:{bodyMapper:ls,headersMapper:jo}},queryParameters:[Da,Fa,Ua,NA,Wc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,PA,MA,LA],isXML:true,serializer:uu};const fu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:$o},default:{bodyMapper:ls,headersMapper:Ko}},queryParameters:[Da,Fa,Ua,NA,Wc,jc],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,RA,PA,MA,LA,$c],isXML:true,serializer:uu};const yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xo},default:{bodyMapper:ls,headersMapper:Zo}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,Tc],isXML:true,serializer:uu};const Cu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ea},default:{bodyMapper:ls,headersMapper:ta}},queryParameters:[xa,Da],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,LA,Pc,Kc],isXML:true,serializer:uu};const Eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ra},default:{bodyMapper:ls,headersMapper:na}},queryParameters:[Da,Xc],urlParameters:[wa],headerParameters:[ka,va,Ta,tA,rA,PA,MA,LA,Ac],isXML:true,serializer:uu};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Iu)}appendBlock(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},Qu)}appendBlockFromUrl(e,t,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:r},bu)}seal(e){return this.client.sendOperationRequest({options:e},Su)}}const Bu=createSerializer(s,true);const Iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sa},default:{bodyMapper:ls,headersMapper:ia}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,cc,uc,Zc],isXML:true,serializer:Bu};const Qu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oa},default:{bodyMapper:ls,headersMapper:aa}},requestBody:Lc,queryParameters:[Da,el],urlParameters:[wa],headerParameters:[ka,va,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,Dc,kc,Mc,Fc,tl,rl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Bu};const bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Aa},default:{bodyMapper:ls,headersMapper:ca}},queryParameters:[Da,el],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,tA,rA,kA,vA,TA,PA,MA,LA,ZA,nc,sc,ic,oc,mc,pc,hc,Dc,Gc,Yc,tl,rl,nl],isXML:true,serializer:Bu};const Su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:la},default:{bodyMapper:ls,headersMapper:ua}},queryParameters:[Da,sl],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,tA,rA,PA,MA,rl],isXML:true,serializer:Bu};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},wu)}putBlobFromUrl(e,t,r){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:r},Ru)}stageBlock(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:r,options:n},xu)}stageBlockFromURL(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:r,options:n},Du)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},ku)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},vu)}}const Nu=createSerializer(s,true);const wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:da},default:{bodyMapper:ls,headersMapper:ma}},requestBody:Lc,queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,Dc,kc,Mc,Fc,il],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Nu};const Ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pa},default:{bodyMapper:ls,headersMapper:ga}},queryParameters:[Da],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,ZA,tc,nc,sc,ic,oc,ac,Ac,cc,mc,pc,gc,hc,Dc,il,ol],isXML:true,serializer:Nu};const xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ha},default:{bodyMapper:ls,headersMapper:fa}},requestBody:Lc,queryParameters:[Da,al,Al],urlParameters:[wa],headerParameters:[ka,va,Va,eA,kA,vA,TA,ZA,Dc,kc,Mc,Fc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Nu};const Du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ya},default:{bodyMapper:ls,headersMapper:Ca}},queryParameters:[Da,al,Al],urlParameters:[wa],headerParameters:[ka,va,Ta,Va,eA,kA,vA,TA,ZA,nc,sc,ic,oc,mc,pc,hc,Gc,Yc,nl],isXML:true,serializer:Nu};const ku={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ea},default:{bodyMapper:ls,headersMapper:Ba}},requestBody:cl,queryParameters:[Da,ll],urlParameters:[wa],headerParameters:[ba,Na,ka,va,$a,eA,tA,rA,kA,vA,TA,PA,MA,LA,zA,qA,GA,VA,YA,JA,jA,$A,ZA,tc,cc,uc,Dc,kc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Nu};const vu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:Ia},default:{bodyMapper:ls,headersMapper:Qa}},queryParameters:[Da,NA,ll,ul],urlParameters:[wa],headerParameters:[ka,va,Ta,eA,LA],isXML:true,serializer:Nu};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const r={requestContentType:"application/json; charset=utf-8"};const n=`azsdk-js-azure-storage-blob/12.30.0`;const s=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;const i={...r,...t,userAgentOptions:{userAgentPrefix:s},endpoint:t.endpoint??t.baseUri??"{url}"};super(i);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const r={...t};if(r.path==="/{containerName}"||r.path==="/{containerName}/{blob}"){r.path=""}return super.sendOperationRequest(e,r)}}function utils_common_escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_utils_common_escape(r);t.pathname=r;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=Yn}let r=utils_common_getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=utils_common_getValueInConnString(e,"AccountName");i=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!r){n=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=utils_common_getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let n=utils_common_getValueInConnString(e,"AccountName");if(!n){n=utils_common_getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function utils_common_setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function utils_common_getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+utils_common_padStart(t.toString(),r-e.length,"0");return utils_common_base64encode(i)}async function utils_utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,utils_common_sanitizeURL(n))}else{t.set(r,n)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&Kn.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.blobTagSet.push({key:r,value:n})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const n=r.split("_");const s="or-";if(n[0].startsWith(s)){n[0]=n[0].substring(s.length)}const i={ruleId:n[1],replicationStatus:e[r]};const o=t.findIndex((e=>e.policyId===n[0]));if(o>-1){t[o].rules.push(i)}else{t.push({policyId:n[0],rules:[i]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let n=0;let s=0;while(n0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){return generateBlobSASQueryParametersInternal(e,t,r).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,r){const n=e.version?e.version:Nn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let i;if(s===undefined&&r!==undefined){i=new UserDelegationKeyCredential(r,t)}if(s===undefined&&i===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(n>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{if(n>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,i)}else{return generateBlobSASQueryParametersUDK20201206(e,i)}}}if(n>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(n>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,i)}else{return generateBlobSASQueryParametersUDK20181109(e,i)}}}if(n>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let n;if(e.permissions){if(e.blobName){n=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{n=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[n?n:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const i=t.computeHMACSHA256(s);return{sasQueryParameters:new SASQueryParameters(e.version,i,n,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:s}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:i}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:i}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:i}}function getCanonicalName(e,t,r){const n=[`/blob/${e}/${t}`];if(r){n.push(`/${r}`)}return n.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Nn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const r=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=r.container}else{this._isContainer=false;this._containerOrBlobOperation=r.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-acquireLease",t,(async r=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:r.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-changeLease",t,(async r=>{const n=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));this._leaseId=e;return n}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 Tu.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 Tu.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 Tu.withSpan("BlobLeaseClient-breakLease",t,(async r=>{const n={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(n))}))}}class RetriableReadableStream extends fe.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,r,n,s={}){super({highWaterMark:s.highWaterMark});this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+n-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return kt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,r,n,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,n,s)}}const Mu=16;const Lu=new Uint8Array([79,98,106,1]);const Fu="avro.codec";const Uu="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const n=await e.read(t,{abortSignal:r.abortSignal});if(n.length!==t){throw new Error("Hit stream end.")}return n}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let n=0;let s,i,o;do{s=await AvroParser.readByte(e,t);i=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return n}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const n=new TextDecoder;return n.decode(r)}static async readMapPair(e,t,r={}){const n=await AvroParser.readString(e,r);const s=await t(e,r);return{key:n,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const n=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of n){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const n=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);n.push(s)}}return n}}var Ou;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Ou||(Ou={}));var Hu;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(Hu||(Hu={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case Hu.NULL:case Hu.BOOLEAN:case Hu.INT:case Hu.LONG:case Hu.FLOAT:case Hu.DOUBLE:case Hu.BYTES:case Hu.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case Ou.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Ou.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Ou.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Ou.ARRAY:case Ou.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case Hu.NULL:return AvroParser.readNull();case Hu.BOOLEAN:return AvroParser.readBoolean(e,t);case Hu.INT:return AvroParser.readInt(e,t);case Hu.LONG:return AvroParser.readLong(e,t);case Hu.FLOAT:return AvroParser.readFloat(e,t);case Hu.DOUBLE:return AvroParser.readDouble(e,t);case Hu.BYTES:return AvroParser.readBytes(e,t);case Hu.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const n in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,n)){r[n]=await this._fields[n].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,Mu,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}const _u=e(import.meta.url)("buffer");const zu=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return _u.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw zu}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const r=this._readable.read(e);if(r){this._position+=r.length;return this.toUint8Array(r)}else{return new Promise(((r,n)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();n()};const abortHandler=()=>{cleanUp();n(zu)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends fe.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const n=t.description;if(typeof n!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:n})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return kt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var qu;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(qu||(qu={}));var Gu;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(Gu||(Gu={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=Vn}}var Vu;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(Vu||(Vu={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:r,_response:{...e._response,parsedBody:{pageRange:t,clearRange:r}}}}const Yu=esm_createClientLogger("core-lro");const Ju=2e3;const Wu=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:n}=e;return e=>{if(n(e)){r.setError(t,e);r.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let r=e;if(r.slice(-1)!=="."){r=r+"."}return r+" "+t}function simplifyError(e){let t=e.message;let r=e.code;let n=e;while(n.innererror){n=n.innererror;r=n.code;t=appendReadableErrorMessage(t,n.message)}return{code:r,message:t}}function processOperationStatus(e){const{state:t,stateProxy:r,status:n,isDone:s,processResult:i,getError:o,response:a,setErrorAsResult:A}=e;switch(n){case"succeeded":{r.setSucceeded(t);break}case"failed":{const e=o===null||o===void 0?void 0:o(a);let n="";if(e){const{code:t,message:r}=simplifyError(e);n=`. ${t}. ${r}`}const s=`The long-running operation has failed${n}`;r.setError(t,new Error(s));r.setFailed(t);Yu.warning(s);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(a,t))||s===undefined&&["succeeded","canceled"].concat(A?[]:["failed"]).includes(n)){r.setResult(t,buildResult({response:a,state:t,processResult:i}))}}function buildResult(e){const{processResult:t,response:r,state:n}=e;return t?t(r,n):r}async function operation_initOperation(e){const{init:t,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:i,setErrorAsResult:o}=e;const{operationLocation:a,resourceLocation:A,metadata:c,response:l}=await t();if(a)i===null||i===void 0?void 0:i(a,false);const u={metadata:c,operationLocation:a,resourceLocation:A};Yu.verbose(`LRO: Operation description:`,u);const d=r.initState(u);const m=s({response:l,state:d,operationLocation:a});processOperationStatus({state:d,status:m,stateProxy:r,response:l,setErrorAsResult:o,processResult:n});return d}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:n,operationLocation:s,getOperationStatus:i,getResourceLocation:o,isOperationError:a,options:A}=e;const c=await t(s,A).catch(setStateError({state:r,stateProxy:n,isOperationError:a}));const l=i(c,r);Yu.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${l}\n\tPolling status: ${Wu.includes(l)?"Stopped":"Running"}`);if(l==="succeeded"){const e=o(c,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:n,isOperationError:a})),status:l}}}return{response:c,status:l}}async function operation_pollOperation(e){const{poll:t,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:l,processResult:u,getError:d,updateState:m,setDelay:p,isDone:g,setErrorAsResult:h}=e;const{operationLocation:f}=r.config;if(f!==undefined){const{response:e,status:y}=await pollOperationHelper({poll:t,getOperationStatus:i,state:r,stateProxy:n,operationLocation:f,getResourceLocation:o,isOperationError:A,options:s});processOperationStatus({status:y,response:e,state:r,stateProxy:n,isDone:g,processResult:u,getError:d,setErrorAsResult:h});if(!Wu.includes(y)){const t=l===null||l===void 0?void 0:l(e);if(t)p(t);const n=a===null||a===void 0?void 0:a(e,r);if(n!==undefined){const e=f!==n;r.config.operationLocation=n;c===null||c===void 0?void 0:c(n,e)}else c===null||c===void 0?void 0:c(f,false)}m===null||m===void 0?void 0:m(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=e;switch(n){case"PUT":{return s}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:s}default:{return getDefault()}}function getDefault(){switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return s}case"location":default:{return r}}}}function operation_inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:n,resourceLocationConfig:s}=e;const i=getOperationLocationHeader(t);const o=getAzureAsyncOperationHeader(t);const a=getOperationLocationPollingUrl({operationLocation:i,azureAsyncOperation:o});const A=getLocationHeader(t);const c=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(a!==undefined){return{mode:"OperationLocation",operationLocation:a,resourceLocation:findResourceLocation({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}}else if(A!==undefined){return{mode:"ResourceLocation",operationLocation:A}}else if(c==="PUT"&&n){return{mode:"Body",operationLocation:n}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(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:{Yu.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:n,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const i=(r=n===null||n===void 0?void 0:n.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:i,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){Yu.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){Yu.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:n?({flatResponse:e},t)=>n(e,t):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:i})}function operation_getOperationLocation({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}function accessBodyProperty({flatResponse:e,rawResponse:t},r){var n,s;return(n=e===null||e===void 0?void 0:e[r])!==null&&n!==void 0?n:(s=t.body)===null||s===void 0?void 0:s[r]}function operation_getResourceLocation(e,t){const r=accessBodyProperty(e,"resourceLocation");if(r&&typeof r==="string"){t.config.resourceLocation=r}return t.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:n,processResult:s,updateState:i,setDelay:o,state:a,setErrorAsResult:A}=e;return operation_pollOperation({state:a,stateProxy:r,setDelay:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:i,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:n,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:A})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:i,getPollingInterval:o,getError:a,resolveOnUnsuccessful:A}=e;return async({init:e,poll:c},l)=>{const{processResult:u,updateState:d,withOperationLocation:m,intervalInMs:p=POLL_INTERVAL_IN_MS,restoreFrom:g}=l||{};const h=createStateProxy();const f=m?(()=>{let e=false;return(t,r)=>{if(r)m(t);else if(!e)m(t);e=true}})():undefined;const y=g?deserializeState(g):await initOperation({init:e,stateProxy:h,processResult:u,getOperationStatus:r,withOperationLocation:f,setErrorAsResult:!A});let C;const E=new AbortController;const B=new Map;const handleProgressEvents=async()=>B.forEach((e=>e(y)));const I="Operation was canceled";let Q=p;const b={getOperationState:()=>y,getResult:()=>y.result,isDone:()=>["succeeded","failed","canceled"].includes(y.status),isStopped:()=>C===undefined,stopPolling:()=>{E.abort()},toString:()=>JSON.stringify({state:y}),onProgress:e=>{const t=Symbol();B.set(t,e);return()=>B.delete(t)},pollUntilDone:e=>C!==null&&C!==void 0?C:C=(async()=>{const{abortSignal:t}=e||{};function abortListener(){E.abort()}const r=E.signal;if(t===null||t===void 0?void 0:t.aborted){E.abort()}else if(!r.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!b.isDone()){await b.poll({abortSignal:r});while(!b.isDone()){await delay(Q,{abortSignal:r});await b.poll({abortSignal:r})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(A){return b.getResult()}else{switch(y.status){case"succeeded":return b.getResult();case"canceled":throw new Error(I);case"failed":throw y.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{C=undefined})),async poll(e){if(A){if(b.isDone())return}else{switch(y.status){case"succeeded":return;case"canceled":throw new Error(I);case"failed":throw y.error}}await pollOperation({poll:c,state:y,stateProxy:h,getOperationLocation:t,isOperationError:s,withOperationLocation:f,getPollingInterval:o,getOperationStatus:n,getResourceLocation:i,processResult:u,getError:a,updateState:d,options:e,setDelay:e=>{Q=e},setErrorAsResult:!A});await handleProgressEvents();if(!A){switch(y.status){case"canceled":throw new Error(I);case"failed":throw y.error}}}};return b}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:i,updateState:o,withOperationLocation:a,resolveOnUnsuccessful:A=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:A})({init:async()=>{const t=await e.sendInitialRequest();const n=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:n,withOperationLocation:a,restoreFrom:i,updateState:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,n,s,i,o){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=n;this.processResult=s;this.updateState=i;this.isDone=o}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const n=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:n?(e,{rawResponse:t})=>n(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){Yu.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=Ju,resumeFrom:n,resolveOnUnsuccessful:s=false,isDone:i,lroResourceLocationConfig:o,processResult:a,updateState:A}=t||{};const c=n?operation_deserializeState(n):{};const l=new GenericPollOperation(c,e,!s,o,a,A,i);super(l);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};l.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:r,intervalInMs:n=15e3,onProgress:s,resumeFrom:i,startCopyFromURLOptions:o}=e;let a;if(i){a=JSON.parse(i).state}const A=makeBlobBeginCopyFromURLPollOperation({...a,blobClient:t,copySource:r,startCopyFromURLOptions:o});super(A);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=n}delay(){return delay_delay(this.intervalInMs)}}const ju=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const $u=async function update(e={}){const t=this.state;const{blobClient:r,copySource:n,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(n,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:n,copyProgress:s}=r;const i=t.copyProgress;if(s){t.copyProgress=s}if(n==="pending"&&s!==i&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(n==="success"){t.result=r;t.isCompleted=true}else if(n==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const Ku=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:ju,toString:Ku,update:$u}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Xu;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Xu||(Xu={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Xu.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new en.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Xu.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const A=setTimeout((()=>a(new Error(`The operation cannot be completed in timeout.`))),Tn);e.on("readable",(()=>{if(i>=o){clearTimeout(A);n();return}let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,s)}const c=i+a.length>o?o-i:a.length;t.fill(a.slice(0,c),r+i,r+i+c);i+=c}));e.on("end",(()=>{clearTimeout(A);if(i{clearTimeout(A);a(e)}))}))}async function streamToBuffer2(e,t,r){let n=0;const s=t.length;return new Promise(((i,o)=>{e.on("readable",(()=>{let i=e.read();if(!i){return}if(typeof i==="string"){i=Buffer.from(i,r)}if(n+i.length>s){o(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(i,n,n+i.length);n+=i.length}));e.on("end",(()=>{i(n)}));e.on("error",o)}))}async function streamToBuffer3(e,t){return new Promise(((r,n)=>{const s=[];e.on("data",(e=>{s.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{r(Buffer.concat(s))}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,n)=>{const s=Zu.createWriteStream(t);e.on("error",(e=>{n(e)}));s.on("error",(e=>{n(e)}));s.on("close",r);e.pipe(s)}))}const ed=j.promisify(Zu.stat);const td=Zu.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,r,n){n=n||{};let s;let i;if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Mn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Mn.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new Clients_BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-download",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onDownloadProgress:kt?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)};if(!kt){return i}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=vn}if(s.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!s.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(i,(async t=>{const n={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||s.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:r.conditions?.tagConditions},range:rangeToString({count:e+s.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download({abortSignal:r.abortSignal,...n})).readableStreamBody}),e,s.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}))}async exists(e={}){return Tu.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===jn||e.details.errorCode===$n)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-getProperties",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...r,_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return Tu.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return Tu.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return Tu.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-setHTTPHeaders",t,(async r=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async setTags(e,t={}){return Tu.withSpan("BlobClient-setTags",t,(async r=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return Tu.withSpan("BlobClient-getTags",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={...r,_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}};return n}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const n=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await n.poll();return n}async abortCopyFromURL(e,t={}){return Tu.withSpan("BlobClient-abortCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return Tu.withSpan("BlobClient-syncCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async setAccessTier(e,t={}){return Tu.withSpan("BlobClient-setAccessTier",t,(async r=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:r.tracingOptions}))))}async downloadToBuffer(e,t,r,n={}){let s;let i=0;let o=0;let a=n;if(e instanceof Buffer){s=e;i=t||0;o=typeof r==="number"?r:0}else{i=typeof e==="number"?e:0;o=typeof t==="number"?t:0;a=r||{}}let A=a.blockSize??0;if(A<0){throw new RangeError("blockSize option must be >= 0")}if(A===0){A=kn}if(i<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!a.conditions){a.conditions={}}return Tu.withSpan("BlobClient-downloadToBuffer",a,(async e=>{if(!o){const t=await this.getProperties({...a,tracingOptions:e.tracingOptions});o=t.contentLength-i;if(o<0){throw new RangeError(`offset ${i} shouldn't be larger than blob size ${t.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(s.length{let r=i+o;if(n+A{const i=await this.download(t,r,{...n,tracingOptions:s.tracingOptions});if(i.readableStreamBody){await readStreamToLocalFile(i.readableStreamBody,e)}i.blobDownloadStream=undefined;return i}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const r=new URL(this.url);if(r.host.split(".")[1]==="blob"){const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}else if(utils_common_isIpEndpointStyle(r)){const n=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=n[2];t=n[4]}else{const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return Tu.withSpan("BlobClient-startCopyFromURL",t,(async r=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:r.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Tu.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return Tu.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return Tu.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Tu.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:On};return Tu.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const r=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...r,_response:r._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return Tu.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-appendBlock",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async appendBlockFromURL(e,t,r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("AppendBlobClient-appendBlockFromURL",n,(async s=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:n.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:n.sourceContentMD5,sourceContentCrc64:n.sourceContentCrc64,leaseAccessConditions:n.conditions,appendPositionAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}}class Clients_BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new Clients_BlockBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!kt){throw new Error("This operation currently is only supported in Node.js.")}return Tu.withSpan("BlockBlobClient-query",t,(async r=>{const n=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:r.tracingOptions}));return new BlobQueryResponse(n,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-upload",r,(async n=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-syncUploadFromURL",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async stageBlock(e,t,r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-stageBlock",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,r,t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async stageBlockFromURL(e,t,r=0,n,s={}){ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-stageBlockFromURL",s,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!n?undefined:rangeToString({offset:r,count:n}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("BlockBlobClient-commitBlockList",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async getBlockList(e,t={}){return Tu.withSpan("BlockBlobClient-getBlockList",t,(async r=>{const n=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));if(!n.committedBlocks){n.committedBlocks=[]}if(!n.uncommittedBlocks){n.uncommittedBlocks=[]}return n}))}async uploadData(e,t={}){return Tu.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(kt){let r;if(e instanceof Buffer){r=e}else if(e instanceof ArrayBuffer){r=Buffer.from(e)}else{e=e;r=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.byteLength,t)}else{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}}))}async uploadBrowserData(e,t={}){return Tu.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}))}async uploadSeekableInternal(e,t,r={}){let n=r.blockSize??0;if(n<0||n>Rn){throw new RangeError(`blockSize option must be >= 0 and <= ${Rn}`)}const s=r.maxSingleShotSize??wn;if(s<0||s>wn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${wn}`)}if(n===0){if(t>Rn*xn){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>s){n=Math.ceil(t/xn);if(n{if(t<=s){return utils_common_assertResponse(await this.upload(e(0,t),t,i))}const o=Math.floor((t-1)/n)+1;if(o>xn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${xn}`)}const a=[];const A=esm_randomUUID();let c=0;const l=new Batch(r.concurrency);for(let s=0;s{const l=utils_common_generateBlockID(A,s);const u=n*s;const d=s===o-1?t:u+n;const m=d-u;a.push(l);await this.stageBlock(l,e(u,m),m,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions});c+=m;if(r.onProgress){r.onProgress({loadedBytes:c})}}))}await l.do();return this.commitBlockList(a,i)}))}async uploadFile(e,t={}){return Tu.withSpan("BlockBlobClient-uploadFile",t,(async r=>{const n=(await ed(e)).size;return this.uploadSeekableInternal(((t,r)=>()=>td(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),n,{...t,tracingOptions:r.tracingOptions})}))}async uploadStream(e,t=Dn,r=5,n={}){if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return Tu.withSpan("BlockBlobClient-uploadStream",n,(async s=>{let i=0;const o=esm_randomUUID();let a=0;const A=[];const c=new BufferScheduler(e,t,r,(async(e,t)=>{const r=utils_common_generateBlockID(o,i);A.push(r);i++;await this.stageBlock(r,e,t,{customerProvidedKey:n.customerProvidedKey,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions});a+=t;if(n.onProgress){n.onProgress({loadedBytes:a})}}),Math.ceil(r/4*3));await c.do();return utils_common_assertResponse(await this.commitBlockList(A,{...n,tracingOptions:s.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const A=utils_common_extractConnectionStringParts(e);if(A.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(A.accountName,A.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(A.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(A.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+A.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-create",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async createIfNotExists(e,t={}){return Tu.withSpan("PageBlobClient-createIfNotExists",t,(async r=>{try{const n={ifNoneMatch:On};const s=utils_common_assertResponse(await this.create(e,{...t,conditions:n,tracingOptions:r.tracingOptions}));return{succeeded:true,...s,_response:s._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-uploadPages",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(r,e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:n.conditions,transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async uploadPagesFromURL(e,t,r,n,s={}){s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Tu.withSpan("PageBlobClient-uploadPagesFromURL",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:n}),0,rangeToString({offset:r,count:n}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async clearPages(e=0,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-clearPages",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async getPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-getPageRanges",r,(async n=>{const s=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:n.tracingOptions}));return rangeResponseFromModel(s)}))}async listPageRangesSegment(e=0,t,r,n={}){return Tu.withSpan("PageBlobClient-getPageRangesSegment",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,r,n={}){let s;if(!!r||r===undefined){do{s=await this.listPageRangesSegment(e,t,r,n);r=s.continuationToken;yield await s}while(r)}}async*listPageRangeItems(e=0,t,r={}){let n;for await(const s of this.listPageRangeItemSegments(e,t,n,r)){yield*ExtractPageRangeInfoItems(s)}}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const n=this.listPageRangeItems(e,t,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listPageRangeItemSegments(e,t,n.continuationToken,{maxPageSize:n.maxPageSize,...r})}}async getPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};return Tu.withSpan("PageBlobClient-getPageRangesDiff",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesDiffSegment(e,t,r,n,s={}){return Tu.withSpan("PageBlobClient-getPageRangesDiffSegment",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:s?.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,r,n,s){let i;if(!!n||n===undefined){do{i=await this.listPageRangesDiffSegment(e,t,r,n,s);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeDiffItems(e,t,r,n){let s;for await(const i of this.listPageRangeDiffItemSegments(e,t,r,s,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,{...n});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n})}}async getPageRangesDiffForManagedDisks(e,t,r,n={}){n.conditions=n.conditions||{};return Tu.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevSnapshotUrl:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async resize(e,t={}){t.conditions=t.conditions||{};return Tu.withSpan("PageBlobClient-resize",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async updateSequenceNumber(e,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("PageBlobClient-updateSequenceNumber",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async startCopyIncremental(e,t={}){return Tu.withSpan("PageBlobClient-startCopyIncremental",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(zn);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const rd=": ";const nd=" ";const sd=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${qn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Ln.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const n=new Array(r);let s=0;let i=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===id.UNLOCKED){this.keys[e]=id.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=id.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===id.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let n;let s;if(typeof e==="string"&&(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){n=e;s=t}else if(e instanceof BlobClient){n=e.url;s=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}return Tu.withSpan("BatchDeleteRequest-addSubRequest",r,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:n,credential:s},(async()=>{await new BlobClient(n,this.batchRequest.createPipeline(s)).delete(e)}))}))}async setBlobAccessTier(e,t,r,n){let s;let i;let o;if(typeof e==="string"&&(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){s=e;i=t;o=r}else if(e instanceof BlobClient){s=e.url;i=e.credential;o=t;n=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return Tu.withSpan("BatchSetTierRequest-addSubRequest",n,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:s,credential:i},(async()=>{await new BlobClient(s,this.batchRequest.createPipeline(i)).setAccessTier(o,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${qn}${Fn.CONTENT_TYPE}: application/http${qn}${Fn.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const r=new Pipeline([]);r._credential=e;r._corePipeline=t;return r}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${Fn.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${Gn}${qn}`].join(qn);for(const[t,r]of e.headers){this.body+=`${t}: ${r}${qn}`}this.body+=qn}preAddSubRequest(e){if(this.operationCount>=_n){throw new RangeError(`Cannot exceed ${_n} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${qn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let r="";for(const[t]of e.headers){if(utils_common_iEqual(t,Fn.X_MS_VERSION)){r=t}}if(r!==""){e.headers.delete(r)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(!t){n=newPipeline(new AnonymousCredential,r)}else{n=newPipeline(t,r)}const s=new StorageContextClient(e,getCoreClientOptions(n));const i=utils_common_getURLPath(e);if(i&&i!=="/"){this.serviceOrContainerContext=s.container}else{this.serviceOrContainerContext=s.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const n=new BlobBatch;for(const s of e){if(typeof s==="string"){await n.deleteBlob(s,t,r)}else{await n.deleteBlob(s,t)}}return this.submitBatch(n)}async setBlobsAccessTier(e,t,r,n){const s=new BlobBatch;for(const i of e){if(typeof i==="string"){await s.setBlobAccessTier(i,t,r,n)}else{await s.setBlobAccessTier(i,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return Tu.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const r=e.getHttpRequestBody();const n=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(r),e.getMultiPartContentType(),r,{...t}));const s=new BatchResponseParser(n,e.getSubRequests());const i=await s.parseBatchResponse();const o={_response:n._response,contentType:n.contentType,errorCode:n.errorCode,requestId:n.requestId,clientRequestId:n.clientRequestId,version:n.version,subResponses:i.subResponses,subResponsesSucceededCount:i.subResponsesSucceededCount,subResponsesFailedCount:i.subResponsesFailedCount};return o}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,r){let n;let s;r=r||{};if(isPipelineLike(t)){s=e;n=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){s=e;n=newPipeline(t,r)}else if(!t&&typeof t!=="string"){s=e;n=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const i=t;const o=utils_common_extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);s=utils_common_appendToURLPath(o.url,encodeURIComponent(i));if(!r.proxyOptions){r.proxyOptions=proxyPolicy_getDefaultProxySettings(o.proxyUri)}n=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){s=utils_common_appendToURLPath(o.url,encodeURIComponent(i))+"?"+o.accountSas;n=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(s,n);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return Tu.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return Tu.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return Tu.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new Clients_BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return Tu.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return Tu.withSpan("ContainerClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return Tu.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const r=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={_response:r._response,blobPublicAccess:r.blobPublicAccess,date:r.date,etag:r.etag,errorCode:r.errorCode,lastModified:r.lastModified,requestId:r.requestId,clientRequestId:r.clientRequestId,signedIdentifiers:[],version:r.version};for(const e of r){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}n.signedIdentifiers.push({accessPolicy:t,id:e.id})}return n}))}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};return Tu.withSpan("ContainerClient-setAccessPolicy",r,(async n=>{const s=[];for(const e of t||[]){s.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:r.abortSignal,access:e,containerAcl:s,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,n={}){return Tu.withSpan("ContainerClient-uploadBlockBlob",n,(async n=>{const s=this.getBlockBlobClient(e);const i=await s.upload(t,r,n);return{blockBlobClient:s,response:i}}))}async deleteBlob(e,t={}){return Tu.withSpan("ContainerClient-deleteBlob",t,(async r=>{let n=this.getBlobClient(e);if(t.versionId){n=n.withVersion(t.versionId)}return n.delete(r)}))}async listBlobFlatSegment(e,t={}){return Tu.withSpan("ContainerClient-listBlobFlatSegment",t,(async r=>{const n=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:r.tracingOptions}));const s={...n,_response:{...n._response,parsedBody:ConvertInternalResponseOfListBlobFlat(n._response.parsedBody)},segment:{...n.segment,blobItems:n.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return s}))}async listBlobHierarchySegment(e,t,r={}){return Tu.withSpan("ContainerClient-listBlobHierarchySegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...r,tracingOptions:n.tracingOptions}));const i={...s,_response:{...s._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(s._response.parsedBody)},segment:{...s.segment,blobItems:s.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:s.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return i}))}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listBlobFlatSegment(e,t);e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async*listHierarchySegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.listBlobHierarchySegment(e,t,r);t=n.continuationToken;yield await n}while(t)}}async*listItemsByHierarchy(e,t={}){let r;for await(const n of this.listHierarchySegments(e,r,t)){const e=n.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const n={...t,...r.length>0?{include:r}:{}};const s=this.listItemsByHierarchy(e,n);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async findBlobsByTagsSegment(e,t,r={}){return Tu.withSpan("ContainerClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async getAccountInfo(e={}){return Tu.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const r=e.version?e.version:Nn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const n=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const i=AccountSASResourceTypes.parse(e.resourceTypes).toString();let o;if(r>="2020-12-06"){o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const a=t.computeHMACSHA256(o);return{sasQueryParameters:new SASQueryParameters(r,a,n.toString(),s,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:o}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const r=utils_common_extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(kt){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(r.proxyUri)}const n=newPipeline(e,t);return new BlobServiceClient(r.url,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(kt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){n=newPipeline(t,r)}else{n=newPipeline(new AnonymousCredential,r)}super(e,n);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return Tu.withSpan("BlobServiceClient-createContainer",t,(async t=>{const r=this.getContainerClient(e);const n=await r.create(t);return{containerClient:r,containerCreateResponse:n}}))}async deleteContainer(e,t={}){return Tu.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const r=this.getContainerClient(e);return r.delete(t)}))}async undeleteContainer(e,t,r={}){return Tu.withSpan("BlobServiceClient-undeleteContainer",r,(async n=>{const s=this.getContainerClient(r.destinationContainerName||e);const i=s["storageClientContext"].container;const o=utils_common_assertResponse(await i.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:n.tracingOptions}));return{containerClient:s,containerUndeleteResponse:o}}))}async getProperties(e={}){return Tu.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return Tu.withSpan("BlobServiceClient-setProperties",t,(async r=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:r.tracingOptions}))))}async getStatistics(e={}){return Tu.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Tu.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return Tu.withSpan("BlobServiceClient-listContainersSegment",t,(async r=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:r.tracingOptions}))))}async findBlobsByTagsSegment(e,t,r={}){return Tu.withSpan("BlobServiceClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listContainersSegment(e,t);r.containerItems=r.containerItems||[];e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async getUserDelegationKey(e,t,r={}){return Tu.withSpan("BlobServiceClient-getUserDelegationKey",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}));const i={signedObjectId:s.signedObjectId,signedTenantId:s.signedTenantId,signedStartsOn:new Date(s.signedStartsOn),signedExpiresOn:new Date(s.signedExpiresOn),signedService:s.signedService,signedVersion:s.signedVersion,value:s.value};const o={_response:s._response,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,date:s.date,errorCode:s.errorCode,...i};return o}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).toString();return utils_common_appendToURLQuery(this.url,s)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).stringToSign}}var od;(function(e){e["AES256"]="AES256"})(od||(od={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf 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(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries.\nMore 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`;super(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);i.pq(`Sent ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadCacheArchiveSDK(e,t,r){return ad(this,void 0,void 0,(function*(){var n;const s=new BlobClient(e);const o=s.getBlockBlobClient();const a=new UploadProgress((n=r===null||r===void 0?void 0:r.archiveSizeBytes)!==null&&n!==void 0?n:0);const A={blockSize:r===null||r===void 0?void 0:r.uploadChunkSize,concurrency:r===null||r===void 0?void 0:r.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer();i.Yz(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);const e=yield o.uploadFile(t,A);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){i.$e(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{a.stopDisplayTimer()}}))}var Ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function requestUtils_isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[V.Hv.BadGateway,V.Hv.ServiceUnavailable,V.Hv.GatewayTimeout];return t.includes(e)}function sleep(e){return Ad(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r){return Ad(this,arguments,void 0,(function*(e,t,r,n=P,s=M,o=undefined){let a="";let A=1;while(A<=n){let c=undefined;let l=undefined;let u=false;try{c=yield t()}catch(e){if(o){c=o(e)}u=true;a=e.message}if(c){l=r(c);if(!isServerErrorStatusCode(l)){return c}}if(l){u=isRetryableStatusCode(l);a=`Cache service responded with ${l}`}i.Yz(`${e} - Attempt ${A} of ${n} failed with error: ${a}`);if(!u){i.Yz(`${e} - Error is not retryable`);break}yield sleep(s);A++}throw Error(`${e} failed: ${a}`)}))}function requestUtils_retryTypedResponse(e,t){return Ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.statusCode),r,n,(e=>{if(e instanceof V.Kg){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function requestUtils_retryHttpClientResponse(e,t){return Ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.message.statusCode),r,n)}))}var cd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return cd(this,void 0,void 0,(function*(){const r=util.promisify(stream.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;core.debug(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);core.info(`Received ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadUtils_downloadCacheHttpClient(e,t){return cd(this,void 0,void 0,(function*(){const r=fs.createWriteStream(t);const n=new HttpClient("actions/cache");const s=yield retryHttpClientResponse("downloadCache",(()=>cd(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(SocketTimeout,(()=>{s.message.destroy();core.debug(`Aborting download, socket timed out after ${SocketTimeout} ms`)}));yield pipeResponseToStream(s,r);const i=s.message.headers["content-length"];if(i){const e=parseInt(i);const r=utils.getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{core.debug("Unable to validate download, no Content-Length header")}}))}function downloadUtils_downloadCacheHttpClientConcurrent(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=yield fs.promises.open(t,"w");const i=new HttpClient("actions/cache",undefined,{socketTimeout:r.timeoutInMs,keepAlive:true});try{const t=yield retryHttpClientResponse("downloadCacheMetadata",(()=>cd(this,void 0,void 0,(function*(){return yield i.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const a=parseInt(o);if(Number.isNaN(a)){throw new Error(`Could not interpret Content-Length: ${a}`)}const A=[];const c=4*1024*1024;for(let t=0;tcd(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(i,e,t,r)}))})}A.reverse();let l=0;let u=0;const d=new DownloadProgress(a);d.startDisplayTimer();const m=d.onProgress();const p=[];let g;const waitAndWrite=()=>cd(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(p));yield s.write(e.buffer,0,e.count,e.offset);l--;delete p[e.offset];u+=e.count;m({loadedBytes:u})}));while(g=A.pop()){p[g.offset]=g.promiseGetter();l++;if(l>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)){yield waitAndWrite()}}while(l>0){yield waitAndWrite()}}finally{i.dispose();yield s.close()}}))}function downloadSegmentRetry(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=5;let i=0;while(true){try{const s=3e4;const i=yield promiseWithTimeout(s,downloadSegment(e,t,r,n));if(typeof i==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return i}catch(e){if(i>=s){throw e}i++}}}))}function downloadSegment(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=yield retryHttpClientResponse("downloadCachePart",(()=>cd(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${r}-${r+n-1}`})}))));if(!s.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:r,count:n,buffer:yield s.readBodyBuffer()}}))}function downloadUtils_downloadCacheStorageSDK(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const i=yield s.getProperties();const o=(n=i.contentLength)!==null&&n!==void 0?n:-1;if(o<0){core.debug("Unable to determine content length, downloading file with http-client...");yield downloadUtils_downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,buffer.constants.MAX_LENGTH);const n=new DownloadProgress(o);const i=fs.openSync(t,"w");try{n.startDisplayTimer();const t=new AbortController;const a=t.signal;while(!n.isDone()){const A=n.segmentOffset+n.segmentSize;const c=Math.min(e,o-A);n.nextSegment(c);const l=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(A,c,{abortSignal:a,concurrency:r.downloadConcurrency,onProgress:n.onProgress()}));if(l==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(l)){fs.writeFileSync(i,l)}}}finally{n.stopDisplayTimer();fs.closeSync(i)}}}))}const promiseWithTimeout=(e,t)=>cd(void 0,void 0,void 0,(function*(){let r;const n=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,n]).then((e=>{clearTimeout(r);return e}))}));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;i.Yz(`Use Azure SDK: ${t.useAzureSdk}`);i.Yz(`Upload concurrency: ${t.uploadConcurrency}`);i.Yz(`Upload chunk size: ${t.uploadChunkSize}`);return t}function options_getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}core.debug(`Use Azure SDK: ${t.useAzureSdk}`);core.debug(`Download concurrency: ${t.downloadConcurrency}`);core.debug(`Request timeout (ms): ${t.timeoutInMs}`);core.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);core.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);core.debug(`Lookup only: ${t.lookupOnly}`);return t}function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const r=t==="GITHUB.COM";const n=t.endsWith(".GHE.COM");const s=t.endsWith(".LOCALHOST");return!r&&!n&&!s}function config_getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=config_getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var ld=n(8658);function user_agent_getUserAgentString(){return`@actions/cache-${ld.version}`}var ud=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;i.Yz(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new Y.tZ(e);return new V.Qq(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,r){return ud(this,void 0,void 0,(function*(){const n=createHttpClient();const s=utils.getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const o=yield retryTypedResponse("getCacheEntry",(()=>ud(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(i))}))));if(o.statusCode===204){if(core.isDebug()){yield printCachesListForDiagnostics(e[0],n,s)}return null}if(!isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode}`)}const a=o.result;const A=a===null||a===void 0?void 0:a.archiveLocation;if(!A){throw new Error("Cache not found.")}core.setSecret(A);core.debug(`Cache Result:`);core.debug(JSON.stringify(a));return a}))}function printCachesListForDiagnostics(e,t,r){return ud(this,void 0,void 0,(function*(){const n=`caches?key=${encodeURIComponent(e)}`;const s=yield retryTypedResponse("listCache",(()=>ud(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(n))}))));if(s.statusCode===200){const t=s.result;const n=t===null||t===void 0?void 0:t.totalCount;if(n&&n>0){core.debug(`No matching cache found for cache key '${e}', version '${r} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){core.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n=new URL(e);const s=getDownloadOptions(r);if(n.hostname.endsWith(".blob.core.windows.net")){if(s.useAzureSdk){yield downloadCacheStorageSDK(e,t,s)}else if(s.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,s)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield requestUtils_retryTypedResponse("reserveCache",(()=>ud(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),i)}))));return o}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,n,s){return ud(this,void 0,void 0,(function*(){i.Yz(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${getContentRange(n,s)}`);const o={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,s)};const a=yield requestUtils_retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${s})`,(()=>ud(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),o)}))));if(!requestUtils_isSuccessStatusCode(a.message.statusCode)){throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,n){return ud(this,void 0,void 0,(function*(){const s=getArchiveFileSizeInBytes(r);const o=getCacheApiUrl(`caches/${t.toString()}`);const a=A.openSync(r,"r");const c=getUploadOptions(n);const l=assertDefined("uploadConcurrency",c.uploadConcurrency);const u=assertDefined("uploadChunkSize",c.uploadChunkSize);const d=[...new Array(l).keys()];i.Yz("Awaiting all uploads");let m=0;try{yield Promise.all(d.map((()=>ud(this,void 0,void 0,(function*(){while(mA.createReadStream(r,{fd:a,start:n,end:i,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),n,i)}})))))}finally{A.closeSync(a)}return}))}function commitCache(e,t,r){return ud(this,void 0,void 0,(function*(){const n={size:r};return yield requestUtils_retryTypedResponse("commitCache",(()=>ud(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,r,n){return ud(this,void 0,void 0,(function*(){const s=getUploadOptions(n);if(s.useAzureSdk){if(!r){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(r,t,n)}else{const r=createHttpClient();i.Yz("Upload cache");yield uploadFile(r,e,t,n);i.Yz("Commiting cache");const s=getArchiveFileSizeInBytes(t);i.pq(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const o=yield commitCache(r,e,s);if(!requestUtils_isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`)}i.pq("Cache saved successfully")}}))}var dd=n(4420);var md=n(8886);class CacheScope$Type extends md.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){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.pospd}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,md.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,md.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posfd.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=yd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return r.then((e=>Cd.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=Ed.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return r.then((e=>Bd.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return r.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return r.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return r.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const r=t.searchParams.get("sig");if(r){(0,i.Pq)(r);(0,i.Pq)(encodeURIComponent(r))}}catch(t){(0,i.Yz)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.Yz)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Qd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,r,n){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const s=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(r){this.baseRetryIntervalMilliseconds=r}if(n){this.retryMultiplier=n}this.httpClient=new V.Qq(e,[new Y.tZ(s)])}request(e,t,r,n){return Qd(this,void 0,void 0,(function*(){const s=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.Yz)(`[Request] ${t} ${s}`);const o={"Content-Type":r};try{const{body:e}=yield this.retryableRequest((()=>Qd(this,void 0,void 0,(function*(){return this.httpClient.post(s,JSON.stringify(n),o)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Qd(this,void 0,void 0,(function*(){let t=0;let r="";let n="";while(t0){(0,i.$e)(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${r}`)}}catch(e){if(e instanceof SyntaxError){(0,i.Yz)(`Raw Body: ${n}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}s=true;r=e.message}if(!s){throw new Error(`Received non-retryable error: ${r}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${r}`)}const o=this.getExponentialRetryTimeMilliseconds(t);(0,i.pq)(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${r}. Retrying request in ${o} ms...`);yield this.sleep(o);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[V.Hv.BadGateway,V.Hv.GatewayTimeout,V.Hv.InternalServerError,V.Hv.ServiceUnavailable];return t.includes(e)}sleep(e){return Qd(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const r=t*this.retryMultiplier;return Math.trunc(Math.random()*(r-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var bd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const Sd=process.platform==="win32";function getTarPath(){return bd(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=U;if(e){return{path:e,type:T.GNU}}else if((0,A.existsSync)(t)){return{path:t,type:T.BSD}}break}case"darwin":{const e=yield x.K7("gtar",false);if(e){return{path:e,type:T.GNU}}else{return{path:yield x.K7("tar",true),type:T.BSD}}}default:break}return{path:yield x.K7("tar",true),type:T.GNU}}))}function getTarArgs(e,t,r){return bd(this,arguments,void 0,(function*(e,t,r,n=""){const s=[`"${e.path}"`];const i=getCacheFileName(t);const a="cache.tar";const A=getWorkingDirectory();const c=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(r){case"create":s.push("--posix","-cf",c?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--exclude",c?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",A.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--files-from",H);break;case"extract":s.push("-xf",c?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",A.replace(new RegExp(`\\${o.sep}`,"g"),"/"));break;case"list":s.push("-tf",c?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P");break}if(e.type===T.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t){return bd(this,arguments,void 0,(function*(e,t,r=""){let n;const s=yield getTarPath();const i=yield getTarArgs(s,e,t,r);const o=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const a=s.type===T.BSD&&e!==v.Gzip&&Sd;if(a&&t!=="create"){n=[[...o].join(" "),[...i].join(" ")]}else{n=[[...i].join(" "),[...o].join(" ")]}if(a){return n}return[n.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return bd(this,void 0,void 0,(function*(){const n=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(t){case v.Zstd:return n?["zstd -d --long=30 --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",Sd?'"zstd -d --long=30"':"unzstd --long=30"];case v.ZstdWithoutLong:return n?["zstd -d --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",Sd?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return bd(this,void 0,void 0,(function*(){const r=getCacheFileName(t);const n=e.type===T.BSD&&t!==v.Gzip&&Sd;switch(t){case v.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",Sd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case v.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",Sd?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return bd(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,a.m)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function tar_listTar(e,t){return bd(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}function tar_extractTar(e,t){return bd(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield io.mkdirP(r);const n=yield getCommands(t,"extract",e);yield execCommands(n)}))}function createTar(e,t,r){return bd(this,void 0,void 0,(function*(){(0,A.writeFileSync)(o.join(e,H),t.join("\n"));const n=yield getCommands(r,"create");yield execCommands(n,e)}))}var Nd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){const i=getCacheServiceVersion();core.debug(`Cache service version: ${i}`);checkPaths(e);switch(i){case"v2":return yield restoreCacheV2(e,t,r,n,s);case"v1":default:return yield restoreCacheV1(e,t,r,n,s)}}))}function restoreCacheV1(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){r=r||[];const i=[t,...r];core.debug("Resolved Keys:");core.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const o=yield utils.getCompressionMethod();let a="";try{const t=yield cacheHttpClient.getCacheEntry(i,e,{compressionMethod:o,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(n===null||n===void 0?void 0:n.lookupOnly){core.info("Lookup only - skipping download");return t.cacheKey}a=path.join(yield utils.createTempDirectory(),utils.getCacheFileName(o));core.debug(`Archive Path: ${a}`);yield cacheHttpClient.downloadCache(t.archiveLocation,a,n);if(core.isDebug()){yield listTar(a,o)}const r=utils.getArchiveFileSizeInBytes(a);core.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield extractTar(a,o);core.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to restore: ${e.message}`)}else{core.warning(`Failed to restore: ${e.message}`)}}}finally{try{yield utils.unlinkFile(a)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,r,n){return Nd(this,arguments,void 0,(function*(e,t,r,n,s=false){n=Object.assign(Object.assign({},n),{useAzureSdk:true});r=r||[];const i=[t,...r];core.debug("Resolved Keys:");core.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}let o="";try{const a=cacheTwirpClient.internalCacheTwirpClient();const A=yield utils.getCompressionMethod();const c={key:t,restoreKeys:r,version:utils.getCacheVersion(e,A,s)};const l=yield a.GetCacheEntryDownloadURL(c);if(!l.ok){core.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return undefined}const u=c.key!==l.matchedKey;if(u){core.info(`Cache hit for restore-key: ${l.matchedKey}`)}else{core.info(`Cache hit for: ${l.matchedKey}`)}if(n===null||n===void 0?void 0:n.lookupOnly){core.info("Lookup only - skipping download");return l.matchedKey}o=path.join(yield utils.createTempDirectory(),utils.getCacheFileName(A));core.debug(`Archive path: ${o}`);core.debug(`Starting download of archive to: ${o}`);yield cacheHttpClient.downloadCache(l.signedDownloadUrl,o,n);const d=utils.getArchiveFileSizeInBytes(o);core.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`);if(core.isDebug()){yield listTar(o,A)}yield extractTar(o,A);core.info("Cache restored successfully");return l.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to restore: ${e.message}`)}else{core.warning(`Failed to restore: ${e.message}`)}}}finally{try{if(o){yield utils.unlinkFile(o)}}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){const s=config_getCacheServiceVersion();i.Yz(`Cache service version: ${s}`);checkPaths(e);checkKey(t);switch(s){case"v2":return yield saveCacheV2(e,t,r,n);case"v1":default:return yield saveCacheV1(e,t,r,n)}}))}function saveCacheV1(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){var s,a,A,c,l;const u=yield getCompressionMethod();let d=-1;const m=yield resolvePaths(e);i.Yz("Cache Paths:");i.Yz(`${JSON.stringify(m)}`);if(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.`)}const p=yield createTempDirectory();const g=o.join(p,getCacheFileName(u));i.Yz(`Archive Path: ${g}`);try{yield createTar(p,m,u);if(i._o()){yield tar_listTar(g,u)}const o=10*1024*1024*1024;const h=getArchiveFileSizeInBytes(g);i.Yz(`File Size: ${h}`);if(h>o&&!isGhes()){throw new Error(`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the 10GB limit, not saving cache.`)}i.Yz("Reserving Cache");const f=yield reserveCache(t,e,{compressionMethod:u,enableCrossOsArchive:n,cacheSize:h});if((s=f===null||f===void 0?void 0:f.result)===null||s===void 0?void 0:s.cacheId){d=(a=f===null||f===void 0?void 0:f.result)===null||a===void 0?void 0:a.cacheId}else if((f===null||f===void 0?void 0:f.statusCode)===400){throw new Error((c=(A=f===null||f===void 0?void 0:f.error)===null||A===void 0?void 0:A.message)!==null&&c!==void 0?c:`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(l=f===null||f===void 0?void 0:f.error)===null||l===void 0?void 0:l.message}`)}i.Yz(`Saving Cache (ID: ${d})`);yield saveCache(d,g,"",r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){i.pq(`Failed to save: ${t.message}`)}else{if(t instanceof V.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to save: ${t.message}`)}else{i.$e(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(g)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return d}))}function saveCacheV2(e,t,r){return Nd(this,arguments,void 0,(function*(e,t,r,n=false){r=Object.assign(Object.assign({},r),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const s=yield getCompressionMethod();const a=internalCacheTwirpClient();let A=-1;const c=yield resolvePaths(e);i.Yz("Cache Paths:");i.Yz(`${JSON.stringify(c)}`);if(c.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.`)}const l=yield createTempDirectory();const u=o.join(l,getCacheFileName(s));i.Yz(`Archive Path: ${u}`);try{yield createTar(l,c,s);if(i._o()){yield tar_listTar(u,s)}const o=getArchiveFileSizeInBytes(u);i.Yz(`File Size: ${o}`);r.archiveSizeBytes=o;i.Yz("Reserving Cache");const d=getCacheVersion(e,s,n);const m={key:t,version:d};let p;try{const e=yield a.CreateCacheEntry(m);if(!e.ok){if(e.message){i.$e(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}p=e.signedUploadUrl}catch(e){i.Yz(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}i.Yz(`Attempting to upload cache located at: ${u}`);yield saveCache(A,u,p,r);const g={key:t,version:d,sizeBytes:`${o}`};const h=yield a.FinalizeCacheEntryUpload(g);i.Yz(`FinalizeCacheEntryUploadResponse: ${h.ok}`);if(!h.ok){if(h.message){throw new FinalizeCacheError(h.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}A=parseInt(h.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){i.pq(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){i.$e(t.message)}else{if(t instanceof V.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to save: ${t.message}`)}else{i.$e(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(u)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return A}))}},3838:(e,t,r)=>{r.d(t,{Yz:()=>core_debug,z3:()=>error,Gu:()=>getState,pq:()=>info,_o:()=>isDebug,Pq:()=>core_setSecret,$e:()=>warning});var n=r(857);function utils_toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var i=r(6982);var o=r(9896);function file_command_issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!fs.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}fs.appendFileSync(r,`${toCommandValue(t)}${os.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(e,t){const r=`ghadelimiter_${crypto.randomUUID()}`;const n=toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${os.EOL}${n}${os.EOL}${r}`}var a=r(6928);var A=r(4942);var c=r(2145);var l=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return l(this,void 0,void 0,(function*(){var t;const r=oidc_utils_OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return l(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}debug(`ID token url is ${t}`);const r=yield oidc_utils_OidcClient.getCall(t);setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var u=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{access:d,appendFile:m,writeFile:p}=o.promises;const g="GITHUB_STEP_SUMMARY";const h="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return u(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[g];if(!e){throw new Error(`Unable to find environment variable for $${g}. Check if your runtime environment supports job summaries.`)}try{yield d(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return u(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?p:m;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return u(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(i,r,o)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const i=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const f=new Summary;const y=null&&f;const C=null&&f;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var E=r(7187);var B=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const getWindowsInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>B(void 0,void 0,void 0,(function*(){var e,t,r,n;const{stdout:s}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=s.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(r=s.match(/ProductName:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,r]=e.trim().split("\n");return{name:t,version:r}}));const I=n.platform();const Q=n.arch();const b=I==="win32";const S=I==="darwin";const N=I==="linux";function getDetails(){return B(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield b?getWindowsInfo():S?getMacOsInfo():getLinuxInfo()),{platform:I,arch:Q,isWindows:b,isMacOS:S,isLinux:N})}))}var w=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var R;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(R||(R={}));function exportVariable(e,t){const r=toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return issueFileCommand("ENV",prepareKeyValueMessage(e,t))}issueCommand("set-env",{name:e},r)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(os.EOL);issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=R.Failure;error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+n.EOL)}function startGroup(e){issue("group",e)}function endGroup(){issue("endgroup")}function group(e,t){return w(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return issueFileCommand("STATE",prepareKeyValueMessage(e,t))}issueCommand("save-state",{name:e},toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return w(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}},7187:(t,r,n)=>{n.d(r,{m:()=>exec});var s=n(3193);var i=n(857);var o=n(4434);const a=e(import.meta.url)("child_process");var A=n(6928);var c=n(8701);var l=n(90);const u=e(import.meta.url)("timers");var d=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const m=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=t?"":"[command]";if(m){if(this._isCmdFile()){s+=r;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let n=t+e.toString();let s=n.indexOf(i.EOL);while(s>-1){const e=n.substring(0,s);r(e);n=n.substring(s+i.EOL.length);s=n.indexOf(i.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let s=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(s&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return d(this,void 0,void 0,(function*(){if(!l.Qh(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=A.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.K7(this.toolPath,true);return new Promise(((e,t)=>d(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield l.t2(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=a.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let A="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}A=this._processLineBuffer(e,A,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(A.length>0){this.emit("stdline",A)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let r=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let i=0;i0){t.push(s);s=""}continue}append(o)}if(s.length>0){t.push(s.trim())}return t}class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,u.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var p=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function exec(e,t,r){return p(this,void 0,void 0,(function*(){const n=argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];t=n.slice(1).concat(t||[]);const i=new ToolRunner(s,t,r);return i.exec()}))}function getExecOutput(e,t,r){return p(this,void 0,void 0,(function*(){var n,s;let i="";let o="";const a=new StringDecoder("utf8");const A=new StringDecoder("utf8");const c=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const l=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=A.write(e);if(l){l(e)}};const stdOutListener=e=>{i+=a.write(e);if(c){c(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));i+=a.end();o+=A.end();return{exitCode:d,stdout:i,stderr:o}}))}},2145:(e,t,r)=>{r.d(t,{tZ:()=>BearerCredentialHandler});var n=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},4942:(e,t,r)=>{r.d(t,{Qq:()=>HttpClient,Kg:()=>HttpClientError,Hv:()=>l});var n=r(8611);var s=r.t(n,2);var i=r(5692);var o=r.t(i,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var a=r(770);var A=r(6752);var c=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l||(l={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u||(u={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(d={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const m=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const h=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return c(this,void 0,void 0,(function*(){return new Promise((e=>c(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return c(this,void 0,void 0,(function*(){return new Promise((e=>c(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return c(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return c(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return c(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return c(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return c(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return c(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e){return c(this,arguments,void 0,(function*(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t){return c(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return c(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let i=this._prepareRequest(e,s,n);const o=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let a=0;let A;do{A=yield this.requestRaw(i,r);if(A&&A.message&&A.message.statusCode===l.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(A)){e=t;break}}if(e){return e.handleAuthentication(this,i,r)}else{return A}}let t=this._maxRedirects;while(A.message.statusCode&&m.includes(A.message.statusCode)&&this._allowRedirects&&t>0){const o=A.message.headers["location"];if(!o){break}const a=new URL(o);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield A.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,a,n);A=yield this.requestRaw(i,r);t--}if(!A.message.statusCode||!p.includes(A.message.statusCode)){return A}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;s.on("socket",(e=>{i=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i=n.parsedUrl.protocol==="https:";n.httpModule=i?o:s;const a=i?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){n=typeof e==="number"?e.toString():e}}const s=e[t];if(s!==undefined){return typeof s==="number"?s.toString():s}if(n!==undefined){return n}return r}_getExistingOrDefaultContentTypeHeader(e,t){let r;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[u.ContentType];if(e){if(typeof e==="number"){r=String(e)}else if(Array.isArray(e)){r=e.join(", ")}else{r=e}}}const n=e[u.ContentType];if(n!==undefined){if(typeof n==="number"){return String(n)}else if(Array.isArray(n)){return n.join(", ")}else{return n}}if(r!==undefined){return r}return t}_getAgent(e){let t;const r=getProxyUrl(e);const s=r&&r.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const o=e.protocol==="https:";let A=100;if(this.requestOptions){A=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:A,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s=r.protocol==="https:";if(o){n=s?a.httpsOverHttps:a.httpsOverHttp}else{n=s?a.httpOverHttps:a.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:A};t=o?new i.Agent(e):new n.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new A.kT(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const r=process.env["ACTIONS_ORCHESTRATION_ID"];if(r){const e=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return c(this,void 0,void 0,(function*(){e=Math.min(h,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return c(this,void 0,void 0,(function*(){return new Promise(((r,n)=>c(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const i={statusCode:s,result:null,headers:{}};if(s===l.NotFound){r(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,dateTimeDeserializer)}else{o=JSON.parse(a)}i.result=o}i.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=i.result;n(t)}else{r(i)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},90:(e,t,r)=>{r.d(t,{Ck:()=>c,H8:()=>y,Qh:()=>isRooted,t2:()=>exists,vr:()=>tryGetExecutablePath});var n=r(9896);var s=r(6928);var i=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{chmod:o,copyFile:a,lstat:A,mkdir:c,open:l,readdir:u,rename:d,rm:m,rmdir:p,stat:g,symlink:h,unlink:f}=n.promises;const y=process.platform==="win32";function readlink(e){return i(this,void 0,void 0,(function*(){const t=yield fs.promises.readlink(e);if(y&&!t.endsWith("\\")){return`${t}\\`}return t}))}const C=268435456;const E=n.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield g(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return i(this,arguments,void 0,(function*(e,t=false){const r=t?yield g(e):yield A(e);return r.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(y){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return i(this,void 0,void 0,(function*(){let r=undefined;try{r=yield g(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){const r=s.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const i of t){e=n+i;r=undefined;try{r=yield g(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){try{const t=s.dirname(e);const r=s.basename(e).toUpperCase();for(const n of yield u(t)){if(r===n.toUpperCase()){e=s.join(t,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(y){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}},8701:(e,t,r)=>{r.d(t,{K7:()=>which,U$:()=>mkdirP});var n=r(2613);var s=r(6928);var i=r(90);var o=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function cp(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){const{force:n,recursive:s,copySourceDirectory:i}=readCopyOptions(r);const o=(yield ioUtil.exists(t))?yield ioUtil.stat(t):null;if(o&&o.isFile()&&!n){return}const a=o&&o.isDirectory()&&i?path.join(t,path.basename(e)):t;if(!(yield ioUtil.exists(e))){throw new Error(`no such file or directory: ${e}`)}const A=yield ioUtil.stat(e);if(A.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(path.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}function mv(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){if(yield ioUtil.exists(t)){let n=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));n=yield ioUtil.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return o(this,void 0,void 0,(function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return o(this,void 0,void 0,(function*(){(0,n.ok)(e,"a path argument must be provided");yield i.Ck(e,{recursive:true})}))}function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(i.H8){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(i.H8&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(s.delimiter)){if(e){t.push(e)}}}if(i.Qh(e)){const r=yield i.vr(e,t);if(r){return[r]}return[]}if(e.includes(s.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield i.vr(s.join(o,e),t);if(r){n.push(r)}}return n}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield ioUtil.readdir(e);for(const i of s){const s=`${e}/${i}`;const o=`${t}/${i}`;const a=yield ioUtil.lstat(s);if(a.isDirectory()){yield cpDirRecursive(s,o,r,n)}else{yield copyFile(s,o,n)}}yield ioUtil.chmod(t,(yield ioUtil.stat(e)).mode)}))}function copyFile(e,t,r){return o(this,void 0,void 0,(function*(){if((yield ioUtil.lstat(e)).isSymbolicLink()){try{yield ioUtil.lstat(t);yield ioUtil.unlink(t)}catch(e){if(e.code==="EPERM"){yield ioUtil.chmod(t,"0666");yield ioUtil.unlink(t)}}const r=yield ioUtil.readlink(e);yield ioUtil.symlink(r,t,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(t))||r){yield ioUtil.copyFile(e,t)}}))}},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.1","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.4"},"devDependencies":{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1","typescript":"^5.9.3"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete r[e]}return s.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var s=[];s.d=0;n.then((e=>{i[t]=e;resolveQueue(s)}),(e=>{i[r]=e;resolveQueue(s)}));var i={};i[e]=e=>e(s);return i}}var o={};o[e]=e=>{};o[t]=n;return o}));__nccwpck_require__.a=(n,s,i)=>{var o;i&&((o=[]).d=-1);var a=new Set;var A=n.exports;var c;var l;var u;var d=new Promise(((e,t)=>{u=t;l=e}));d[t]=A;d[e]=e=>(o&&e(o),a.forEach(e),d["catch"]((e=>{})));n.exports=d;s((n=>{c=wrapDeps(n);var s;var getResult=()=>c.map((e=>{if(e[r])throw e[r];return e[t]}));var i=new Promise((t=>{s=()=>t(getResult);s.r=0;var fnQueue=e=>e!==o&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));c.map((t=>t[e](fnQueue)))}));return s.r?i:getResult()}),(e=>(e?u(d[r]=e):l(A),resolveQueue(o))));o&&o.d<0&&(o.d=0)}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(5901);n=await n; \ No newline at end of file diff --git a/dist/setup/index.mjs b/dist/setup/index.mjs index 8c72dec0..764765c9 100644 --- a/dist/setup/index.mjs +++ b/dist/setup/index.mjs @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={7889:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},1409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},6826:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},4420:(e,t,r)=>{var n;n={value:true};var s=r(6892);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return s.ServiceType}});var i=r(2496);n={enumerable:true,get:function(){return i.readMethodOptions}};n={enumerable:true,get:function(){return i.readMethodOption}};n={enumerable:true,get:function(){return i.readServiceOption}};var o=r(8636);n={enumerable:true,get:function(){return o.RpcError}};var a=r(8576);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var c=r(2726);n={enumerable:true,get:function(){return c.RpcOutputStreamController}};var l=r(9122);n={enumerable:true,get:function(){return l.TestTransport}};var A=r(1409);n={enumerable:true,get:function(){return A.Deferred}};n={enumerable:true,get:function(){return A.DeferredState}};var u=r(6826);n={enumerable:true,get:function(){return u.DuplexStreamingCall}};var d=r(7889);n={enumerable:true,get:function(){return d.ClientStreamingCall}};var p=r(6173);n={enumerable:true,get:function(){return p.ServerStreamingCall}};var m=r(9288);n={enumerable:true,get:function(){return m.UnaryCall}};var h=r(2849);n={enumerable:true,get:function(){return h.stackIntercept}};n={enumerable:true,get:function(){return h.stackDuplexStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackClientStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackServerStreamingInterceptors}};n={enumerable:true,get:function(){return h.stackUnaryInterceptors}};var g=r(3352);n={enumerable:true,get:function(){return g.ServerCallContextController}}},2496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const n=r(8886);function normalizeMethodInfo(e,t){var r,s,i;let o=e;o.service=t;o.localName=(r=o.localName)!==null&&r!==void 0?r:n.lowerCamelCase(o.name);o.serverStreaming=!!o.serverStreaming;o.clientStreaming=!!o.clientStreaming;o.options=(s=o.options)!==null&&s!==void 0?s:{};o.idempotency=(i=o.idempotency)!==null&&i!==void 0?i:undefined;return o}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,r,n){var s;const i=(s=e.methods.find(((e,r)=>e.localName===t||r===t)))===null||s===void 0?void 0:s.options;return i&&i[r]?n.fromJson(i[r]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,r,n){var s;const i=(s=e.methods.find(((e,r)=>e.localName===t||r===t)))===null||s===void 0?void 0:s.options;if(!i){return undefined}const o=i[r];if(o===undefined){return o}return n?n.fromJson(o):o}t.readMethodOption=readMethodOption;function readServiceOption(e,t,r){const n=e.options;if(!n){return undefined}const s=n[t];if(s===undefined){return s}return r?r.fromJson(s):s}t.readServiceOption=readServiceOption},8636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",r){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=r!==null&&r!==void 0?r:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[r,n]of t){e.push(` ${r}: ${n}`)}}return e.join("\n")}}t.RpcError=RpcError},2849:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const n=r(8886);function stackIntercept(e,t,r,s,i){var o,a,c,l;if(e=="unary"){let tail=(e,r,n)=>t.unary(e,r,n);for(const e of((o=s.interceptors)!==null&&o!==void 0?o:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(r,n,s)=>e.interceptUnary(t,r,n,s)}return tail(r,i,s)}if(e=="serverStreaming"){let tail=(e,r,n)=>t.serverStreaming(e,r,n);for(const e of((a=s.interceptors)!==null&&a!==void 0?a:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(r,n,s)=>e.interceptServerStreaming(t,r,n,s)}return tail(r,i,s)}if(e=="clientStreaming"){let tail=(e,r)=>t.clientStreaming(e,r);for(const e of((c=s.interceptors)!==null&&c!==void 0?c:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(r,n)=>e.interceptClientStreaming(t,r,n)}return tail(r,s)}if(e=="duplex"){let tail=(e,r)=>t.duplex(e,r);for(const e of((l=s.interceptors)!==null&&l!==void 0?l:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(r,n)=>e.interceptDuplex(t,r,n)}return tail(r,s)}n.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,r,n){return stackIntercept("unary",e,t,n,r)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,r,n){return stackIntercept("serverStreaming",e,t,n,r)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,r){return stackIntercept("clientStreaming",e,t,r)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,r){return stackIntercept("duplex",e,t,r)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},8576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const n=r(8886);function mergeRpcOptions(e,t){if(!t)return e;let r={};copy(e,r);copy(t,r);for(let s of Object.keys(t)){let i=t[s];switch(s){case"jsonOptions":r.jsonOptions=n.mergeJsonOptions(e.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=n.mergeBinaryOptions(e.binaryOptions,r.binaryOptions);break;case"meta":r.meta={};copy(e.meta,r.meta);copy(t.meta,r.meta);break;case"interceptors":r.interceptors=e.interceptors?e.interceptors.concat(i):i.concat();break}}return r}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let r=t;for(let[t,n]of Object.entries(e)){if(n instanceof Date)r[t]=new Date(n.getTime());else if(Array.isArray(n))r[t]=n.concat();else r[t]=n}}},2726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const n=r(1409);const s=r(8886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;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,t){t.push(e);return()=>{let r=t.indexOf(e);if(r>=0)t.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,r){s.assert((e?1:0)+(t?1:0)+(r?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(r)this.notifyComplete()}notifyMessage(e){s.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){s.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){s.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;s.assert(e,"bad state");s.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new n.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const r=t.p;s.assert(r.state==n.DeferredState.PENDING,"iterator contract broken");"value"in e?r.resolve(e):r.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},3352:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,r,n,s={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=r;this.trailers={};this._sendRH=n;this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let r=t.indexOf(e);if(r>=0)t.splice(r,1)}}}t.ServerCallContextController=ServerCallContextController},6173:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.request=r;this.headers=n;this.responses=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:r}}))}}t.ServerStreamingCall=ServerStreamingCall},6892:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const n=r(2496);class ServiceType{constructor(e,t,r){this.typeName=e;this.methods=t.map((e=>n.normalizeMethodInfo(e,this)));this.options=r!==null&&r!==void 0?r:{}}}t.ServiceType=ServiceType},9122:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const s=r(8636);const i=r(8886);const o=r(2726);const a=r(8576);const c=r(9288);const l=r(6173);const A=r(7889);const u=r(6826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof s.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){i.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}i.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,r){return n(this,void 0,void 0,(function*(){const n=[];if(this.data.response===undefined){n.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){i.assert(e.O.is(t));n.push(t)}}else if(!(this.data.response instanceof s.RpcError)){i.assert(e.O.is(this.data.response));n.push(this.data.response)}try{yield delay(this.responseDelay,r)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof s.RpcError){t.notifyError(this.data.response);return}for(let e of n){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,r)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof s.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof s.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof s.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,r){var n;const s=(n=r.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,r.abort)),o=i.catch((e=>{})).then(delay(this.responseDelay,r.abort)).then((t=>this.promiseSingleResponse(e))),a=o.catch((e=>{})).then(delay(this.afterResponseDelay,r.abort)).then((e=>this.promiseStatus())),l=o.catch((e=>{})).then(delay(this.afterResponseDelay,r.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(a,l);this.lastInput={single:t};return new c.UnaryCall(e,s,t,i,o,a,l)}serverStreaming(e,t,r){var n;const s=(n=r.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,r.abort)),a=new o.RpcOutputStreamController,c=i.then(delay(this.responseDelay,r.abort)).catch((()=>{})).then((()=>this.streamResponses(e,a,r.abort))).then(delay(this.afterResponseDelay,r.abort)),A=c.then((()=>this.promiseStatus())),u=c.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(A,u);this.lastInput={single:t};return new l.ServerStreamingCall(e,s,t,i,a,A,u)}clientStreaming(e,t){var r;const n=(r=t.meta)!==null&&r!==void 0?r:{},s=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),i=s.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),o=i.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),a=i.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(o,a);this.lastInput=new TestInputStream(this.data,t.abort);return new A.ClientStreamingCall(e,n,this.lastInput,s,i,o,a)}duplex(e,t){var r;const n=(r=t.meta)!==null&&r!==void 0?r:{},s=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),i=new o.RpcOutputStreamController,a=s.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,i,t.abort))).then(delay(this.afterResponseDelay,t.abort)),c=a.then((()=>this.promiseStatus())),l=a.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(c,l);this.lastInput=new TestInputStream(this.data,t.abort);return new u.DuplexStreamingCall(e,n,this.lastInput,s,i,c,l)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return r=>new Promise(((n,i)=>{if(t===null||t===void 0?void 0:t.aborted){i(new s.RpcError("user cancel","CANCELLED"))}else{const o=setTimeout((()=>n(r)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(o);i(new s.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof s.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof s.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},9288:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.request=r;this.headers=n;this.response=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,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:t,status:r,trailers:n}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const r=34028234663852886e22,n=-34028234663852886e22,s=4294967295,i=2147483647,o=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>i||es||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>r||e{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let n=[];for(let e=0;e>4;a=o;i=2;break;case 2:r[s++]=(a&15)<<4|(o&60)>>2;a=o;i=3;break;case 3:r[s++]=(a&3)<<6|o;i=0;break}}if(i==1)throw Error(`invalid base64 string.`);return r.subarray(0,s)}t.base64decode=base64decode;function base64encode(e){let t="",n=0,s,i=0;for(let o=0;o>2];i=(s&3)<<4;n=1;break;case 1:t+=r[i|s>>4];i=(s&15)<<2;n=2;break;case 2:t+=r[i|s>>6];t+=r[s&63];n=0;break}}if(n){t+=r[i];t+="=";if(n==1)t+="="}return t}t.base64encode=base64encode},4816:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var r;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,r,n,s,i)=>{let o=is(r)?r[e.symbol]:r[e.symbol]=[];o.push({no:n,wireType:s,data:i})};e.onWrite=(t,r,n)=>{for(let{no:t,wireType:s,data:i}of e.list(r))n.tag(t,s).raw(i)};e.list=(t,r)=>{if(is(t)){let n=t[e.symbol];return r?n.filter((e=>e.no==r)):n}return[]};e.last=(t,r)=>e.list(t,r).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(r=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var n;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(n=t.WireType||(t.WireType={}))},2889:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const n=r(4816);const s=r(1753);const i=r(3223);const o={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=i.varint64read;this.uint32=i.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,r=e&7;if(t<=0||r<0||r>5)throw new Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case n.WireType.Varint:while(this.buf[this.pos++]&128){}break;case n.WireType.Bit64:this.pos+=4;case n.WireType.Bit32:this.pos+=4;break;case n.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case n.WireType.StartGroup:let r;while((r=this.tag()[1])!==n.WireType.EndGroup){this.skip(r)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new s.PbLong(...this.varint64())}uint64(){return new s.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let r=-(e&1);e=(e>>>1|(t&1)<<31)^r;t=t>>>1^r;return new s.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new s.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new s.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},3957:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const n=r(1753);const s=r(3223);const i=r(8602);const o={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){i.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){i.assertInt32(e);s.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){i.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){i.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){i.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){i.assertInt32(e);e=(e<<1^e>>31)>>>0;s.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let r=new DataView(t.buffer);let s=n.PbLong.from(e);r.setInt32(0,s.lo,true);r.setInt32(4,s.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let r=new DataView(t.buffer);let s=n.PbULong.from(e);r.setInt32(0,s.lo,true);r.setInt32(4,s.hi,true);return this.raw(t)}int64(e){let t=n.PbLong.from(e);s.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=n.PbLong.from(e),r=t.hi>>31,i=t.lo<<1^r,o=(t.hi<<1|t.lo>>>31)^r;s.varint64write(i,o,this.buf);return this}uint64(e){let t=n.PbULong.from(e);s.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let r=parseInt(t);if(!Number.isNaN(r)){let t=e[r];if(t===undefined)return false;if(e[t]!==r)return false}else{let r=e[t];if(r===undefined)return false;if(typeof r!=="number")return false;if(e[r]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[r,n]of Object.entries(e))if(typeof n=="number")t.push({name:r,number:n});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,r)=>r.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},3223:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let r=0;r<28;r+=7){let n=this.buf[this.pos++];e|=(n&127)<>4;if((r&128)==0){this.assertBounds();return[e,t]}for(let r=3;r<=31;r+=7){let n=this.buf[this.pos++];t|=(n&127)<>>n;const i=!(s>>>7==0&&t==0);const o=(i?s|128:s)&255;r.push(o);if(!i){return}}const n=e>>>28&15|(t&7)<<4;const s=!(t>>3==0);r.push((s?n|128:n)&255);if(!s){return}for(let e=3;e<31;e=e+7){const n=t>>>e;const s=!(n>>>7==0);const i=(s?n|128:n)&255;r.push(i);if(!s){return}}r.push(t>>>31&1)}t.varint64write=varint64write;const r=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const n=1e6;let s=0;let i=0;function add1e6digit(t,o){const a=Number(e.slice(t,o));i*=n;s=s*n+a;if(s>=r){i=i+(s/r|0);s=s%r}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,s,i]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(r*t+(e>>>0))}let n=e&16777215;let s=(e>>>24|t<<8)>>>0&16777215;let i=t>>16&65535;let o=n+s*6777216+i*6710656;let a=s+i*8147497;let c=i*2;let l=1e7;if(o>=l){a+=Math.floor(o/l);o%=l}if(a>=l){c+=Math.floor(a/l);a%=l}function decimalFrom1e7(e,t){let r=e?String(e):"";if(t){return"0000000".slice(r.length)+r}return r}return decimalFrom1e7(c,0)+decimalFrom1e7(a,c)+decimalFrom1e7(o,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let r=0;r<9;r++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});var n=r(9999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return n.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return n.isJsonObject}});var s=r(6335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return s.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return s.base64encode}});var i=r(8950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return i.utf8read}});var o=r(4816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return o.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return o.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return o.UnknownFieldHandler}});var a=r(2889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return a.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return a.binaryReadOptions}});var c=r(3957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return c.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return c.binaryWriteOptions}});var l=r(1753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return l.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return l.PbULong}});var A=r(9367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return A.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return A.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return A.mergeJsonOptions}});var u=r(3785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return u.MESSAGE_TYPE}});var d=r(5106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return d.MessageType}});var p=r(7910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return p.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return p.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return p.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return p.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return p.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return p.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return p.readMessageOption}});var m=r(5167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return m.ReflectionTypeCheck}});var h=r(5726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return h.reflectionCreate}});var g=r(9526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return g.reflectionScalarDefault}});var f=r(8044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return f.reflectionMergePartial}});var y=r(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return y.reflectionEquals}});var C=r(9611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return C.ReflectionBinaryReader}});var E=r(6907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return E.ReflectionBinaryWriter}});var B=r(6790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return B.ReflectionJsonReader}});var I=r(1094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return I.ReflectionJsonWriter}});var Q=r(9946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return Q.containsMessageType}});var b=r(8063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return b.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return b.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return b.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return b.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return b.getSelectedOneofValue}});var S=r(257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return S.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return S.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return S.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return S.isEnumObject}});var w=r(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return w.lowerCamelCase}});var N=r(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return N.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return N.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return N.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return N.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return N.assertFloat32}})},9367:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const r={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},n={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},r),e):r}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var r,n;let s=Object.assign(Object.assign({},e),t);s.typeRegistry=[...(r=e===null||e===void 0?void 0:e.typeRegistry)!==null&&r!==void 0?r:[],...(n=t===null||t===void 0?void 0:t.typeRegistry)!==null&&n!==void 0?n:[]];return s}t.mergeJsonOptions=mergeJsonOptions},9999:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const r=[];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},5106:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const n=r(3785);const s=r(7910);const i=r(5167);const o=r(6790);const a=r(1094);const c=r(9611);const l=r(6907);const A=r(5726);const u=r(8044);const d=r(9999);const p=r(9367);const m=r(4827);const h=r(3957);const g=r(2889);const f=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const y=f[n.MESSAGE_TYPE]={};class MessageType{constructor(e,t,r){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(s.normalizeFieldInfo);this.options=r!==null&&r!==void 0?r:{};y.value=this;this.messagePrototype=Object.create(null,f);this.refTypeCheck=new i.ReflectionTypeCheck(this);this.refJsonReader=new o.ReflectionJsonReader(this);this.refJsonWriter=new a.ReflectionJsonWriter(this);this.refBinReader=new c.ReflectionBinaryReader(this);this.refBinWriter=new l.ReflectionBinaryWriter(this)}create(e){let t=A.reflectionCreate(this);if(e!==undefined){u.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();u.reflectionMergePartial(this,t,e);return t}equals(e,t){return m.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){u.reflectionMergePartial(this,e,t)}fromBinary(e,t){let r=g.binaryReadOptions(t);return this.internalBinaryRead(r.readerFactory(e),e.byteLength,r)}fromJson(e,t){return this.internalJsonRead(e,p.jsonReadOptions(t))}fromJsonString(e,t){let r=JSON.parse(e);return this.fromJson(r,t)}toJson(e,t){return this.internalJsonWrite(e,p.jsonWriteOptions(t))}toJsonString(e,t){var r;let n=this.toJson(e,t);return JSON.stringify(n,null,(r=t===null||t===void 0?void 0:t.prettySpaces)!==null&&r!==void 0?r:0)}toBinary(e,t){let r=h.binaryWriteOptions(t);return this.internalBinaryWrite(e,r.writerFactory(),r).finish()}internalJsonRead(e,t,r){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let n=r!==null&&r!==void 0?r:this.create();this.refJsonReader.read(e,n,t);return n}throw new Error(`Unable to parse message ${this.typeName} from JSON ${d.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,r){this.refBinWriter.write(e,t,r);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create();this.refBinReader.read(e,s,r,t);return s}}t.MessageType=MessageType},8063:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,r){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(r!==undefined){e[t]=r}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,r){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(r!==undefined&&t!==undefined){e[t]=r}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},1753:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const n=r(3223);let s;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";s=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const i=/^-?[0-9]+$/;const o=4294967296;const a=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(s)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=s.C(e);case"number":if(e===0)return this.ZERO;e=s.C(e);case"bigint":if(!e)return this.ZERO;if(es.UMAX)throw new Error("ulong too large");s.V.setBigUint64(0,e,true);return new PbULong(s.V.getInt32(0,true),s.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!i.test(e))throw new Error("string is no integer");let[t,r,s]=n.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(r,s);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/o)}throw new Error("unknown value "+typeof e)}toString(){return s?this.toBigInt().toString():n.int64toString(this.lo,this.hi)}toBigInt(){assertBi(s);s.V.setInt32(0,this.lo,true);s.V.setInt32(4,this.hi,true);return s.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(s)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=s.C(e);case"number":if(e===0)return this.ZERO;e=s.C(e);case"bigint":if(!e)return this.ZERO;if(es.MAX)throw new Error("signed long too large");s.V.setBigInt64(0,e,true);return new PbLong(s.V.getInt32(0,true),s.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!i.test(e))throw new Error("string is no integer");let[t,r,s]=n.int64fromString(e);if(t){if(s>a||s==a&&r!=0)throw new Error("signed long too small")}else if(s>=a)throw new Error("signed long too large");let c=new PbLong(r,s);return t?c.negate():c;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/o):new PbLong(-e,-e/o).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&a)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(s)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+n.int64toString(e.lo,e.hi)}return n.int64toString(this.lo,this.hi)}toBigInt(){assertBi(s);s.V.setInt32(0,this.lo,true);s.V.setInt32(4,this.hi,true);return s.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},8950:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,r=[],n=[],s=0,i;let o=e.length;while(t191&&i<224)n[s++]=(i&31)<<6|e[t++]&63;else if(i>239&&i<365){i=((i&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;n[s++]=55296+(i>>10);n[s++]=56320+(i&1023)}else n[s++]=(i&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(s>8191){r.push(fromCharCodes(n));s=0}}if(r.length){if(s)r.push(fromCharCodes(n.slice(0,s)));return r.join("")}return fromCharCodes(n.slice(0,s))}t.utf8read=utf8read},9611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const n=r(4816);const s=r(7910);const i=r(3402);const o=r(9526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,r,i){this.prepare();const o=i===undefined?e.len:e.pos+i;while(e.pos{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const n=r(4816);const s=r(7910);const i=r(8602);const o=r(1753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,r){this.prepare();for(const n of this.fields){let o,a,c=n.repeat,l=n.localName;if(n.oneof){const t=e[n.oneof];if(t.oneofKind!==l)continue;o=t[l];a=true}else{o=e[l];a=false}switch(n.kind){case"scalar":case"enum":let e=n.kind=="enum"?s.ScalarType.INT32:n.T;if(c){i.assert(Array.isArray(o));if(c==s.RepeatType.PACKED)this.packed(t,e,n.no,o);else for(const r of o)this.scalar(t,e,n.no,r,true)}else if(o===undefined)i.assert(n.opt);else this.scalar(t,e,n.no,o,a||n.opt);break;case"message":if(c){i.assert(Array.isArray(o));for(const e of o)this.message(t,r,n.T(),n.no,e)}else{this.message(t,r,n.T(),n.no,o)}break;case"map":i.assert(typeof o=="object"&&o!==null);for(const[e,s]of Object.entries(o))this.mapEntry(t,r,n,e,s);break}}let o=r.writeUnknownFields;if(o!==false)(o===true?n.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,t)}mapEntry(e,t,r,o,a){e.tag(r.no,n.WireType.LengthDelimited);e.fork();let c=o;switch(r.K){case s.ScalarType.INT32:case s.ScalarType.FIXED32:case s.ScalarType.UINT32:case s.ScalarType.SFIXED32:case s.ScalarType.SINT32:c=Number.parseInt(o);break;case s.ScalarType.BOOL:i.assert(o=="true"||o=="false");c=o=="true";break}this.scalar(e,r.K,1,c,true);switch(r.V.kind){case"scalar":this.scalar(e,r.V.T,2,a,true);break;case"enum":this.scalar(e,s.ScalarType.INT32,2,a,true);break;case"message":this.message(e,t,r.V.T(),2,a);break}e.join()}message(e,t,r,s,i){if(i===undefined)return;r.internalBinaryWrite(i,e.tag(s,n.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,r,n,s){let[i,o,a]=this.scalarInfo(t,n);if(!a||s){e.tag(r,i);e[o](n)}}packed(e,t,r,o){if(!o.length)return;i.assert(t!==s.ScalarType.BYTES&&t!==s.ScalarType.STRING);e.tag(r,n.WireType.LengthDelimited);e.fork();let[,a]=this.scalarInfo(t);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const n=r(3785);function containsMessageType(e){return e[n.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},5726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const n=r(9526);const s=r(3785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},s.MESSAGE_TYPE,{value:e});for(let r of e.fields){let e=r.localName;if(r.opt)continue;if(r.oneof)t[r.oneof]={oneofKind:undefined};else if(r.repeat)t[e]=[];else switch(r.kind){case"scalar":t[e]=n.reflectionScalarDefault(r.T,r.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const n=r(7910);function reflectionEquals(e,t,r){if(t===r)return true;if(!t||!r)return false;for(let i of e.fields){let e=i.localName;let o=i.oneof?t[i.oneof][e]:t[e];let a=i.oneof?r[i.oneof][e]:r[e];switch(i.kind){case"enum":case"scalar":let e=i.kind=="enum"?n.ScalarType.INT32:i.T;if(!(i.repeat?repeatedPrimitiveEq(e,o,a):primitiveEq(e,o,a)))return false;break;case"map":if(!(i.V.kind=="message"?repeatedMsgEq(i.V.T(),s(o),s(a)):repeatedPrimitiveEq(i.V.kind=="enum"?n.ScalarType.INT32:i.V.T,s(o),s(a))))return false;break;case"message":let t=i.T();if(!(i.repeat?repeatedMsgEq(t,o,a):t.equals(o,a)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const s=Object.values;function primitiveEq(e,t,r){if(t===r)return true;if(e!==n.ScalarType.BYTES)return false;let s=t;let i=r;if(s.length!==i.length)return false;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const n=r(4073);var s;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(s=t.ScalarType||(t.ScalarType={}));var i;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(i=t.LongType||(t.LongType={}));var o;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(o=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,r,s,i;e.localName=(t=e.localName)!==null&&t!==void 0?t:n.lowerCamelCase(e.name);e.jsonName=(r=e.jsonName)!==null&&r!==void 0?r:n.lowerCamelCase(e.name);e.repeat=(s=e.repeat)!==null&&s!==void 0?s:o.NO;e.opt=(i=e.opt)!==null&&i!==void 0?i:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,r,n){var s;const i=(s=e.fields.find(((e,r)=>e.localName==t||r==t)))===null||s===void 0?void 0:s.options;return i&&i[r]?n.fromJson(i[r]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,r,n){var s;const i=(s=e.fields.find(((e,r)=>e.localName==t||r==t)))===null||s===void 0?void 0:s.options;if(!i){return undefined}const o=i[r];if(o===undefined){return o}return n?n.fromJson(o):o}t.readFieldOption=readFieldOption;function readMessageOption(e,t,r){const n=e.options;const s=n[t];if(s===undefined){return s}return r?r.fromJson(s):s}t.readMessageOption=readMessageOption},6790:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const n=r(9999);const s=r(6335);const i=r(7910);const o=r(1753);const a=r(8602);const c=r(3402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,r){if(!e){let e=n.typeofJsonValue(r);if(e=="number"||e=="boolean")e=r.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,r){this.prepare();const s=[];for(const[o,a]of Object.entries(e)){const e=this.fMap[o];if(!e){if(!r.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}const c=e.localName;let l;if(e.oneof){if(a===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(s.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(e.oneof);l=t[e.oneof]={oneofKind:c}}else{l=t}if(e.kind=="map"){if(a===null){continue}this.assert(n.isJsonObject(a),e.name,a);const t=l[c];for(const[n,s]of Object.entries(a)){this.assert(s!==null,e.name+" map value",null);let o;switch(e.V.kind){case"message":o=e.V.T().internalJsonRead(s,r);break;case"enum":o=this.enum(e.V.T(),s,e.name,r.ignoreUnknownFields);if(o===false)continue;break;case"scalar":o=this.scalar(s,e.V.T,e.V.L,e.name);break}this.assert(o!==undefined,e.name+" map value",s);let a=n;if(e.K==i.ScalarType.BOOL)a=a=="true"?true:a=="false"?false:a;a=this.scalar(a,e.K,i.LongType.STRING,e.name).toString();t[a]=o}}else if(e.repeat){if(a===null)continue;this.assert(Array.isArray(a),e.name,a);const t=l[c];for(const n of a){this.assert(n!==null,e.name,null);let s;switch(e.kind){case"message":s=e.T().internalJsonRead(n,r);break;case"enum":s=this.enum(e.T(),n,e.name,r.ignoreUnknownFields);if(s===false)continue;break;case"scalar":s=this.scalar(n,e.T,e.L,e.name);break}this.assert(s!==undefined,e.name,a);t.push(s)}}else{switch(e.kind){case"message":if(a===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}l[c]=e.T().internalJsonRead(a,r,l[c]);break;case"enum":if(a===null)continue;let t=this.enum(e.T(),a,e.name,r.ignoreUnknownFields);if(t===false)continue;l[c]=t;break;case"scalar":if(a===null)continue;l[c]=this.scalar(a,e.T,e.L,e.name);break}}}}enum(e,t,r,n){if(e[0]=="google.protobuf.NullValue")a.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${r}, enum can only be integral number, got ${t}.`);return t;case"string":let s=t;if(e[2]&&t.substring(0,e[2].length)===e[2])s=t.substring(e[2].length);let i=e[1][s];if(typeof i==="undefined"&&n){return false}a.assert(typeof i=="number",`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} has no value for "${t}".`);return i}a.assert(false,`Unable to parse field ${this.info.typeName}#${r}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,r,n){let l;try{switch(t){case i.ScalarType.DOUBLE:case i.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){l="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){l="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let n=Number(e);if(Number.isNaN(n)){l="not a number";break}if(!Number.isFinite(n)){l="too large or small";break}if(t==i.ScalarType.FLOAT)a.assertFloat32(n);return n;case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:case i.ScalarType.UINT32:if(e===null)return 0;let A;if(typeof e=="number")A=e;else if(e==="")l="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)l="extra whitespace";else A=Number(e)}if(A===undefined)break;if(t==i.ScalarType.UINT32)a.assertUInt32(A);else a.assertInt32(A);return A;case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:if(e===null)return c.reflectionLongConvert(o.PbLong.ZERO,r);if(typeof e!="number"&&typeof e!="string")break;return c.reflectionLongConvert(o.PbLong.from(e),r);case i.ScalarType.FIXED64:case i.ScalarType.UINT64:if(e===null)return c.reflectionLongConvert(o.PbULong.ZERO,r);if(typeof e!="number"&&typeof e!="string")break;return c.reflectionLongConvert(o.PbULong.from(e),r);case i.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case i.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){l="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case i.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return s.base64decode(e)}}catch(e){l=e.message}this.assert(false,n+(l?" - "+l:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},1094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const n=r(6335);const s=r(1753);const i=r(7910);const o=r(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const r={},n=e;for(const e of this.fields){if(!e.oneof){let s=this.field(e,n[e.localName],t);if(s!==undefined)r[t.useProtoFieldName?e.name:e.jsonName]=s;continue}const s=n[e.oneof];if(s.oneofKind!==e.localName)continue;const i=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let a=this.field(e,s[e.localName],i);o.assert(a!==undefined);r[t.useProtoFieldName?e.name:e.jsonName]=a}return r}field(e,t,r){let n=undefined;if(e.kind=="map"){o.assert(typeof t=="object"&&t!==null);const s={};switch(e.V.kind){case"scalar":for(const[r,n]of Object.entries(t)){const t=this.scalar(e.V.T,n,e.name,false,true);o.assert(t!==undefined);s[r.toString()]=t}break;case"message":const n=e.V.T();for(const[i,a]of Object.entries(t)){const t=this.message(n,a,e.name,r);o.assert(t!==undefined);s[i.toString()]=t}break;case"enum":const i=e.V.T();for(const[n,a]of Object.entries(t)){o.assert(a===undefined||typeof a=="number");const t=this.enum(i,a,e.name,false,true,r.enumAsInteger);o.assert(t!==undefined);s[n.toString()]=t}break}if(r.emitDefaultValues||Object.keys(s).length>0)n=s}else if(e.repeat){o.assert(Array.isArray(t));const s=[];switch(e.kind){case"scalar":for(let r=0;r0||r.emitDefaultValues)n=s}else{switch(e.kind){case"scalar":n=this.scalar(e.T,t,e.name,e.opt,r.emitDefaultValues);break;case"enum":n=this.enum(e.T(),t,e.name,e.opt,r.emitDefaultValues,r.enumAsInteger);break;case"message":n=this.message(e.T(),t,e.name,r);break}}return n}enum(e,t,r,n,s,i){if(e[0]=="google.protobuf.NullValue")return!s&&!n?undefined:null;if(t===undefined){o.assert(n);return undefined}if(t===0&&!s&&!n)return undefined;o.assert(typeof t=="number");o.assert(Number.isInteger(t));if(i||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,r,n){if(t===undefined)return n.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,n)}scalar(e,t,r,a,c){if(t===undefined){o.assert(a);return undefined}const l=c||a;switch(e){case i.ScalarType.INT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:if(t===0)return l?0:undefined;o.assertInt32(t);return t;case i.ScalarType.FIXED32:case i.ScalarType.UINT32:if(t===0)return l?0:undefined;o.assertUInt32(t);return t;case i.ScalarType.FLOAT:o.assertFloat32(t);case i.ScalarType.DOUBLE:if(t===0)return l?0:undefined;o.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case i.ScalarType.STRING:if(t==="")return l?"":undefined;o.assert(typeof t=="string");return t;case i.ScalarType.BOOL:if(t===false)return l?false:undefined;o.assert(typeof t=="boolean");return t;case i.ScalarType.UINT64:case i.ScalarType.FIXED64:o.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=s.PbULong.from(t);if(e.isZero()&&!l)return undefined;return e.toString();case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:o.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let r=s.PbLong.from(t);if(r.isZero()&&!l)return undefined;return r.toString();case i.ScalarType.BYTES:o.assert(t instanceof Uint8Array);if(!t.byteLength)return l?"":undefined;return n.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},3402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const n=r(7910);function reflectionLongConvert(e,t){switch(t){case n.LongType.BIGINT:return e.toBigInt();case n.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8044:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,r){let n,s=r,i;for(let r of e.fields){let e=r.localName;if(r.oneof){const o=s[r.oneof];if((o===null||o===void 0?void 0:o.oneofKind)==undefined){continue}n=o[e];i=t[r.oneof];i.oneofKind=o.oneofKind;if(n==undefined){delete i[e];continue}}else{n=s[e];i=t;if(n==undefined){continue}}if(r.repeat)i[e].length=n.length;switch(r.kind){case"scalar":case"enum":if(r.repeat)for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const n=r(7910);const s=r(3402);const i=r(1753);function reflectionScalarDefault(e,t=n.LongType.STRING){switch(e){case n.ScalarType.BOOL:return false;case n.ScalarType.UINT64:case n.ScalarType.FIXED64:return s.reflectionLongConvert(i.PbULong.ZERO,t);case n.ScalarType.INT64:case n.ScalarType.SFIXED64:case n.ScalarType.SINT64:return s.reflectionLongConvert(i.PbLong.ZERO,t);case n.ScalarType.DOUBLE:case n.ScalarType.FLOAT:return 0;case n.ScalarType.BYTES:return new Uint8Array(0);case n.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const n=r(7910);const s=r(8063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],r=[];for(let n of this.fields){if(n.oneof){if(!r.includes(n.oneof)){r.push(n.oneof);e.push(n.oneof);t.push(n.oneof)}}else{t.push(n.localName);switch(n.kind){case"scalar":case"enum":if(!n.opt||n.repeat)e.push(n.localName);break;case"message":if(n.repeat)e.push(n.localName);break;case"map":e.push(n.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(r)}}is(e,t,r=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let n=Object.keys(e),i=this.data;if(n.length!n.includes(e))))return false;if(!r){if(n.some((e=>!i.known.includes(e))))return false}if(t<1){return true}for(const n of i.oneofs){const i=e[n];if(!s.isOneofGroup(i))return false;if(i.oneofKind===undefined)continue;const o=this.fields.find((e=>e.localName===i.oneofKind));if(!o)return false;if(!this.field(i[i.oneofKind],o,r,t))return false}for(const n of this.fields){if(n.oneof!==undefined)continue;if(!this.field(e[n.localName],n,r,t))return false}return true}field(e,t,r,s){let i=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(i)return this.scalars(e,t.T,s,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(i)return this.scalars(e,n.ScalarType.INT32,s);return this.scalar(e,n.ScalarType.INT32);case"message":if(e===undefined)return true;if(i)return this.messages(e,t.T(),r,s);return this.message(e,t.T(),r,s);case"map":if(typeof e!="object"||e===null)return false;if(s<2)return true;if(!this.mapKeys(e,t.K,s))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,s,t.V.L);case"enum":return this.scalars(Object.values(e),n.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),t.V.T(),r,s)}break}return true}message(e,t,r,n){if(r){return t.isAssignable(e,n)}return t.is(e,n)}messages(e,t,r,n){if(!Array.isArray(e))return false;if(n<2)return true;if(r){for(let r=0;rparseInt(e))),t,r);case n.ScalarType.BOOL:return this.scalars(s.slice(0,r).map((e=>e=="true"?true:e=="false"?false:e)),t,r);default:return this.scalars(s,t,r,n.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},5807:(e,t,r)=>{var n;n={value:true};t.z=void 0;var s=r(5086);Object.defineProperty(t,"z",{enumerable:true,get:function(){return s.SVNClient}})},5086:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(r=0)),r)try{if(n=1,s&&(i=a[0]&2?s["return"]:a[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,a[1])).done)return i;if(s=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;s=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]0)r.push("--search-and");r.push(n.search[o])}}}return[2,this.cmd("log",this.joinUsernameAndPassword(r))]}else{return[2,this.cmd("log",this.joinUsernameAndPassword(e))]}return[2]}))}))};SVNClient.prototype.revert=function(){var e=[];for(var t=0;t{n.once("response",e).once("error",t).end()}));n.then=s.then.bind(s);return n}t.req=req},8894:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var o=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const a=i(r(9278));const c=i(r(8611));const l=r(5692);o(r(5183),t);const A=Symbol("AgentBaseInternalState");class Agent extends c.Agent{constructor(e){super(e);this[A]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new a.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const r=this.sockets[e];const n=r.indexOf(t);if(n!==-1){r.splice(n,1);this.totalSocketCount--;if(r.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return l.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,r){const n={...t,secureEndpoint:this.isSecureEndpoint(t)};const s=this.getName(n);const i=this.incrementSockets(s);Promise.resolve().then((()=>this.connect(e,n))).then((o=>{this.decrementSockets(s,i);if(o instanceof c.Agent){try{return o.addRequest(e,n)}catch(e){return r(e)}}this[A].currentSocket=o;super.createSocket(e,t,r)}),(e=>{this.decrementSockets(s,i);r(e)}))}createConnection(){const e=this[A].currentSocket;this[A].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[A].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[A]){this[A].defaultPort=e}}get protocol(){return this[A].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[A]){this[A].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,s,i,o,a;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var A=c;if(c>=0&&l>0){if(e===t){return[c,l]}n=[];i=r.length;while(A>=0&&!a){if(A==c){n.push(A);c=r.indexOf(e,A+1)}else if(n.length==1){a=[n.pop(),l]}else{s=n.pop();if(s=0?c:l}if(n.length){a=[i,o]}}return a}},4691:(e,t,r)=>{var n=r(7087);var s=r(9380);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+i+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=s("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var l=o||c;var A=i.body.indexOf(",")>=0;if(!l&&!A){if(i.post.match(/,(?!,).*\}/)){e=i.pre+"{"+i.body+a+i.post;return expand(e)}return[e]}var u;if(l){u=i.body.split(/\.\./)}else{u=parseCommaParts(i.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var d=i.post.length?expand(i.post,false):[""];return d.map((function(e){return i.pre+u[0]+e}))}}}var p=i.pre;var d=i.post.length?expand(i.post,false):[""];var m;if(l){var h=numeric(u[0]);var g=numeric(u[1]);var f=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var C=lte;var E=g0){var S=new Array(b+1).join("0");if(I<0)Q="-"+S+Q.slice(1);else Q=S+Q}}}m.push(Q)}}else{m=n(u,(function(e){return expand(e,false)}))}for(var w=0;w{e.exports=function(e,r){var n=[];for(var s=0;s{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(897)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let n=0;let s=-1;let i=0;while(r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(6110)}else{e.exports=r(5108)}},5108:(e,t,r)=>{const n=r(2018);const s=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n0){p("Patching connection write() output buffer with updated header");r=e.outputData[0].data;n=r.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+r.substring(n);p("Output buffer: %o",e.outputData[0].data)}let s;if(this.proxy.protocol==="https:"){p("Creating `tls.Socket`: %o",this.connectOpts);s=c.connect(this.connectOpts)}else{p("Creating `net.Socket`: %o",this.connectOpts);s=a.connect(this.connectOpts)}await(0,A.once)(s,"connect");return s}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},3669:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const a=i(r(9278));const c=i(r(4756));const l=o(r(2613));const A=o(r(2830));const u=r(8894);const d=r(7016);const p=r(7943);const m=(0,A.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!a.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends u.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new d.URL(e):e;this.proxyHeaders=t?.headers??{};m("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const r=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:r,port:n}}async connect(e,t){const{proxy:r}=this;if(!t.host){throw new TypeError('No "host" provided')}let n;if(r.protocol==="https:"){m("Creating `tls.Socket`: %o",this.connectOpts);n=c.connect(setServernameFromNonIpHost(this.connectOpts))}else{m("Creating `net.Socket`: %o",this.connectOpts);n=a.connect(this.connectOpts)}const s=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const i=a.isIPv6(t.host)?`[${t.host}]`:t.host;let o=`CONNECT ${i}:${t.port} HTTP/1.1\r\n`;if(r.username||r.password){const e=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}s.Host=`${i}:${t.port}`;if(!s["Proxy-Connection"]){s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(s)){o+=`${e}: ${s[e]}\r\n`}const A=(0,p.parseProxyResponse)(n);n.write(`${o}\r\n`);const{connect:u,buffered:d}=await A;e.emit("proxyConnect",u);this.emit("proxyConnect",u,e);if(u.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){m("Upgrading socket connection to TLS");return c.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:n})}return n}n.destroy();const h=new a.Socket({writable:false});h.readable=true;e.once("socket",(e=>{m("Replaying proxy buffer for failed request");(0,l.default)(e.listenerCount("data")>0);e.push(d);e.push(null)}));return h}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},7943:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const s=n(r(2830));const i=(0,s.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,r)=>{let n=0;const s=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();i("onend");r(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();i("onerror %o",e);r(e)}function ondata(o){s.push(o);n+=o.length;const a=Buffer.concat(s,n);const c=a.indexOf("\r\n\r\n");if(c===-1){i("have not received end of HTTP headers yet...");read();return}const l=a.slice(0,c).toString("ascii").split("\r\n");const A=l.shift();if(!A){e.destroy();return r(new Error("No header received from proxy CONNECT response"))}const u=A.split(" ");const d=+u[1];const p=u.slice(2).join(" ");const m={};for(const t of l){if(!t)continue;const n=t.indexOf(":");if(n===-1){e.destroy();return r(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const s=t.slice(0,n).toLowerCase();const i=t.slice(n+1).trimStart();const o=m[s];if(typeof o==="string"){m[s]=[o,i]}else if(Array.isArray(o)){o.push(i)}else{m[s]=i}}i("got proxy server response: %o %o",A,m);cleanup();t({connect:{statusCode:d,statusText:p,headers:m},buffered:a})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},3772:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var i=r(4691);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var A="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,s){return t(r,n,ext(e,s))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,s){return t.match(r,n,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.maxGlobstarRecursion=t.maxGlobstarRecursion!==undefined?t.maxGlobstarRecursion:200;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var s=0,i=e.length;sp){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var n="";var i=!!r.nocase;var l=false;var A=[];var d=[];var p;var h=false;var g=-1;var f=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var C=this;function clearStateChar(){if(p){switch(p){case"*":n+=c;i=true;break;case"?":n+=a;i=true;break;default:n+="\\"+p;break}C.debug("clearStateChar %j %j",p,n);p=false}}for(var E=0,B=e.length,I;E-1;x--){var v=d[x];var D=n.slice(0,v.reStart);var k=n.slice(v.reStart,v.reEnd-8);var T=n.slice(v.reEnd-8,v.reEnd);var P=n.slice(v.reEnd);T+=P;var M=D.split("(").length-1;var L=P;for(E=0;E=0;o--){i=e[o];if(i)break}for(o=0;o=0;o--){if(t[o]===s){c=o;break}}var l=t.slice(i,a);var A=r?t.slice(a+1):t.slice(a+1,c);var u=r?[]:t.slice(c+1);if(l.length){var d=e.slice(n,n+l.length);if(!this._matchOne(d,l,r,0,0)){return false}n+=l.length}var p=0;if(u.length){if(u.length+n>e.length)return false;var m=e.length-u.length;if(this._matchOne(e,u,r,m,0)){p=u.length}else{if(e[e.length-1]!==""||n+u.length===e.length){return false}m--;if(!this._matchOne(e,u,r,m,0)){return false}p=u.length+1}}if(!A.length){var h=!!p;for(o=n;o{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=s){return Math.round(e/s)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=s){return plural(e,i,s,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},9379:(e,t,r)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new l(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new A(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new A(this.value,t).test(e.semver)}t=s(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const s=r(356);const{safeRe:i,t:o}=r(5471);const a=r(8646);const c=r(1159);const l=r(7163);const A=r(6782)},6782:(e,t,r)=>{const n=/\s+/g;class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&h)|(this.options.loose&&g);const r=t+":"+e;const n=i.get(r);if(n){return n}const s=this.options.loose;const o=s?A[u.HYPHENRANGELOOSE]:A[u.HYPHENRANGE];e=e.replace(o,hyphenReplace(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(A[u.COMPARATORTRIM],d);c("comparator trim",e);e=e.replace(A[u.TILDETRIM],p);c("tilde trim",e);e=e.replace(A[u.CARETTRIM],m);c("caret trim",e);let l=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(s){l=l.filter((e=>{c("loose invalid filter",e,this.options);return!!e.match(A[u.COMPARATORLOOSE])}))}c("range list",l);const f=new Map;const y=l.map((e=>new a(e,this.options)));for(const e of y){if(isNullSet(e)){return[e]}f.set(e.value,e)}if(f.size>1&&f.has("")){f.delete("")}const C=[...f.values()];i.set(r,C);return C}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const parseComparator=(e,t)=>{e=e.replace(A[u.BUILD],"");c("comp",e,t);e=replaceCarets(e,t);c("caret",e);e=replaceTildes(e,t);c("tildes",e);e=replaceXRanges(e,t);c("xrange",e);e=replaceStars(e,t);c("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?A[u.TILDELOOSE]:A[u.TILDE];return e.replace(r,((t,r,n,s,i)=>{c("tilde",e,t,r,n,s,i);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){c("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}c("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{c("caret",e,t);const r=t.loose?A[u.CARETLOOSE]:A[u.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{c("caret",e,t,r,s,i,o);let a;if(isX(r)){a=""}else if(isX(s)){a=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{a=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){c("replaceCaret pr",o);if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{c("no pr");if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}c("caret return",a);return a}))};const replaceXRanges=(e,t)=>{c("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?A[u.XRANGELOOSE]:A[u.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{c("xRange",e,r,n,s,i,o,a);const l=isX(s);const A=l||isX(i);const u=A||isX(o);const d=u;if(n==="="&&d){n=""}a=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&d){if(A){i=0}o=0;if(n===">"){n=">=";if(A){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(A){s=+s+1}else{i=+i+1}}if(n==="<"){a="-0"}r=`${n+s}.${i}.${o}${a}`}else if(A){r=`>=${s}.0.0${a} <${+s+1}.0.0-0`}else if(u){r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`}c("xRange return",r);return r}))};const replaceStars=(e,t)=>{c("replaceStars",e,t);return e.trim().replace(A[u.STAR],"")};const replaceGTE0=(e,t)=>{c("replaceGTE0",e,t);return e.trim().replace(A[t.includePrerelease?u.GTE0PRE:u.GTE0],"")};const hyphenReplace=e=>(t,r,n,s,i,o,a,c,l,A,u,d)=>{if(isX(n)){r=""}else if(isX(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(l)){c=""}else if(isX(A)){c=`<${+l+1}.0.0-0`}else if(isX(u)){c=`<${l}.${+A+1}.0-0`}else if(d){c=`<=${l}.${A}.${u}-${d}`}else if(e){c=`<${l}.${A}.${+u+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},7163:(e,t,r)=>{const n=r(1159);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(5101);const{safeRe:o,t:a}=r(5471);const c=r(356);const{compareIdentifiers:l}=r(3348);class SemVer{constructor(e,t){t=c(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const r=this.prerelease[t];const s=e.prerelease[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return l(r,s)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const s=e.build[t];n("build compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return l(r,s)}}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&r===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,r);this.inc("pre",t,r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,r)}this.inc("pre",t,r);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let n=this.prerelease.length;while(--n>=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(l(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,r)=>{const n=r(6353);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},8646:(e,t,r)=>{const n=r(5082);const s=r(4974);const i=r(6599);const o=r(1236);const a=r(3872);const c=r(6717);const cmp=(e,t,r,l)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return s(e,r,l);case">":return i(e,r,l);case">=":return o(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,r)=>{const n=r(7163);const s=r(6353);const{safeRe:i,t:o}=r(5471);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE])}else{const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;while((s=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}n.lastIndex=s.index+s[1].length+s[2].length}n.lastIndex=-1}if(r===null){return null}const a=r[2];const c=r[3]||"0";const l=r[4]||"0";const A=t.includePrerelease&&r[5]?`-${r[5]}`:"";const u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${l}${A}${u}`,t)};e.exports=coerce},7648:(e,t,r)=>{const n=r(7163);const compareBuild=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=compareBuild},6874:(e,t,r)=>{const n=r(8469);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},8469:(e,t,r)=>{const n=r(7163);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},711:(e,t,r)=>{const n=r(6353);const diff=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const i=r.compare(s);if(i===0){return null}const o=i>0;const a=o?r:s;const c=o?s:r;const l=!!a.prerelease.length;const A=!!c.prerelease.length;if(A&&!l){if(!c.patch&&!c.minor){return"major"}if(c.compareMain(a)===0){if(c.minor&&!c.patch){return"minor"}return"patch"}}const u=l?"pre":"";if(r.major!==s.major){return u+"major"}if(r.minor!==s.minor){return u+"minor"}if(r.patch!==s.patch){return u+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,r)=>{const n=r(8469);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},6599:(e,t,r)=>{const n=r(8469);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},1236:(e,t,r)=>{const n=r(8469);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},2338:(e,t,r)=>{const n=r(7163);const inc=(e,t,r,s,i)=>{if(typeof r==="string"){i=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}};e.exports=inc},3872:(e,t,r)=>{const n=r(8469);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},6717:(e,t,r)=>{const n=r(8469);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},8511:(e,t,r)=>{const n=r(7163);const major=(e,t)=>new n(e,t).major;e.exports=major},2603:(e,t,r)=>{const n=r(7163);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},4974:(e,t,r)=>{const n=r(8469);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},6353:(e,t,r)=>{const n=r(7163);const parse=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},8756:(e,t,r)=>{const n=r(7163);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},5714:(e,t,r)=>{const n=r(6353);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},2173:(e,t,r)=>{const n=r(8469);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},7192:(e,t,r)=>{const n=r(7648);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},8011:(e,t,r)=>{const n=r(6782);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,r)=>{const n=r(7648);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},6114:(e,t,r)=>{const n=r(6353);const s=r(5101);const i=r(7163);const truncate=(e,t,r)=>{if(!s.RELEASE_TYPES.includes(t)){return null}const n=cloneInputVersion(e,r);return n&&doTruncation(n,t)};const cloneInputVersion=(e,t)=>{const r=e instanceof i?e.version:e;return n(r,t)};const doTruncation=(e,t)=>{if(isPrerelease(t)){return e.version}e.prerelease=[];switch(t){case"major":e.minor=0;e.patch=0;break;case"minor":e.patch=0;break}return e.format()};const isPrerelease=e=>e.startsWith("pre");e.exports=truncate},8780:(e,t,r)=>{const n=r(6353);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},2088:(e,t,r)=>{const n=r(5471);const s=r(5101);const i=r(7163);const o=r(3348);const a=r(6353);const c=r(8780);const l=r(1799);const A=r(2338);const u=r(711);const d=r(8511);const p=r(2603);const m=r(8756);const h=r(5714);const g=r(8469);const f=r(2173);const y=r(6874);const C=r(7648);const E=r(9872);const B=r(7192);const I=r(6599);const Q=r(3872);const b=r(5082);const S=r(4974);const w=r(1236);const N=r(6717);const R=r(8646);const x=r(5385);const v=r(6114);const D=r(9379);const k=r(6782);const T=r(8011);const P=r(4750);const M=r(5574);const L=r(8595);const F=r(1866);const U=r(4737);const O=r(280);const H=r(2276);const _=r(5213);const z=r(3465);const q=r(2028);const V=r(1489);e.exports={parse:a,valid:c,clean:l,inc:A,diff:u,major:d,minor:p,patch:m,prerelease:h,compare:g,rcompare:f,compareLoose:y,compareBuild:C,sort:E,rsort:B,gt:I,lt:Q,eq:b,neq:S,gte:w,lte:N,cmp:R,coerce:x,truncate:v,Comparator:D,Range:k,satisfies:T,toComparators:P,maxSatisfying:M,minSatisfying:L,minVersion:F,validRange:U,outside:O,gtr:H,ltr:_,intersects:z,simplifyRange:q,subset:V,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const i=r-6;const o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{if(typeof e==="number"&&typeof r==="number"){return e===r?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(5101);const o=r(1159);t=e.exports={};const a=t.re=[];const c=t.safeRe=[];const l=t.src=[];const A=t.safeSrc=[];const u=t.t={};let d=0;const p="[a-zA-Z0-9-]";const m=[["\\s",1],["\\d",i],[p,s]];const makeSafeRegex=e=>{for(const[t,r]of m){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const n=makeSafeRegex(t);const s=d++;o(e,s,t);u[e]=s;l[s]=t;A[s]=n;a[s]=new RegExp(t,r?"g":undefined);c[s]=new RegExp(n,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`);createToken("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.`+`(${l[u.NUMERICIDENTIFIER]})\\.`+`(${l[u.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${p}+`);createToken("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`);createToken("FULL",`^${l[u.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`);createToken("LOOSE",`^${l[u.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})`+`(?:\\.(${l[u.XRANGEIDENTIFIER]})`+`(?:\\.(${l[u.XRANGEIDENTIFIER]})`+`(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);createToken("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",l[u.COERCE],true);createToken("COERCERTLFULL",l[u.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${l[u.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${l[u.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,r)=>{const n=r(280);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},3465:(e,t,r)=>{const n=r(6782);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=intersects},5213:(e,t,r)=>{const n=r(280);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},5574:(e,t,r)=>{const n=r(7163);const s=r(6782);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=maxSatisfying},8595:(e,t,r)=>{const n=r(7163);const s=r(6782);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=minSatisfying},1866:(e,t,r)=>{const n=r(7163);const s=r(6782);const i=r(6599);const minVersion=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},280:(e,t,r)=>{const n=r(7163);const s=r(9379);const{ANY:i}=s;const o=r(6782);const a=r(8011);const c=r(6599);const l=r(3872);const A=r(6717);const u=r(1236);const outside=(e,t,r,d)=>{e=new n(e,d);t=new o(t,d);let p,m,h,g,f;switch(r){case">":p=c;m=A;h=l;g=">";f=">=";break;case"<":p=l;m=u;h=c;g="<";f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d)){return false}for(let r=0;r{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(p(e.semver,o.semver,d)){o=e}else if(h(e.semver,a.semver,d)){a=e}}));if(o.operator===g||o.operator===f){return false}if((!a.operator||a.operator===g)&&m(e,a.semver)){return false}else if(a.operator===f&&h(e,a.semver)){return false}}return true};e.exports=outside},2028:(e,t,r)=>{const n=r(8011);const s=r(8469);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const c=e.sort(((e,t)=>s(e,t,r)));for(const e of c){const s=n(e,t,r);if(s){a=e;if(!o){o=e}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const l=[];for(const[e,t]of i){if(e===t){l.push(e)}else if(!t&&e===c[0]){l.push("*")}else if(!t){l.push(`>=${e}`)}else if(e===c[0]){l.push(`<=${t}`)}else{l.push(`${e} - ${t}`)}}const A=l.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return A.length{const n=r(6782);const s=r(9379);const{ANY:i}=s;const o=r(8011);const a=r(8469);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const c=[new s(">=0.0.0-0")];const l=[new s(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=c}else{e=l}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=l}}const n=new Set;let s,A;for(const t of e){if(t.operator===">"||t.operator===">="){s=higherGT(s,t,r)}else if(t.operator==="<"||t.operator==="<="){A=lowerLT(A,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let u;if(s&&A){u=a(s.semver,A.semver,r);if(u>0){return null}else if(u===0&&(s.operator!==">="||A.operator!=="<=")){return null}}for(const e of n){if(s&&!o(e,String(s),r)){return null}if(A&&!o(e,String(A),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let d,p;let m,h;let g=A&&!r.includePrerelease&&A.semver.prerelease.length?A.semver:false;let f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(g&&g.prerelease.length===1&&A.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){h=h||e.operator===">"||e.operator===">=";m=m||e.operator==="<"||e.operator==="<=";if(s){if(f){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch){f=false}}if(e.operator===">"||e.operator===">="){d=higherGT(s,e,r);if(d===e&&d!==s){return false}}else if(s.operator===">="&&!o(s.semver,String(e),r)){return false}}if(A){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){p=lowerLT(A,e,r);if(p===e&&p!==A){return false}}else if(A.operator==="<="&&!o(A.semver,String(e),r)){return false}}if(!e.operator&&(A||s)&&u!==0){return false}}if(s&&m&&!A&&u!==0){return false}if(A&&h&&!s&&u!==0){return false}if(f||g){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,r)=>{const n=r(6782);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,r)=>{const n=r(6782);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,r)=>{const n=r(857);const s=r(2018);const i=r(3813);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},770:(e,t,r)=>{e.exports=r(218)},218:(e,t,r)=>{var n;var s=r(9278);var i=r(4756);var o=r(8611);var a=r(5692);var c=r(4434);var l=r(2613);var A=r(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var i=toOptions(r,n,s);for(var o=0,a=t.requests.length;o=this.maxSockets){s.requests.push(i);return}s.createSocket(i,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,i)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}u("making CONNECT request");var i=r.request(s);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,o,a){i.removeAllListeners();o.removeAllListeners();if(s.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",s.statusCode);o.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){u("got illegal response body from proxy");o.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}u("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){i.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var n;const s=r(3701);const i=r(883);const o=r(628);const a=r(837);const c=r(7405);const l=r(6672);const A=r(3137);const u=r(50);const d=r(8707);const p=r(3440);const{InvalidArgumentError:m}=d;const h=r(6615);const g=r(9136);const f=r(7365);const y=r(7501);const C=r(4004);const E=r(2429);const B=r(7816);const{getGlobalDispatcher:I,setGlobalDispatcher:Q}=r(2581);const b=r(8155);const S=r(8754);const w=r(5092);Object.assign(i.prototype,h);n=i;n=s;n=o;n=a;n=c;e.exports.kT=l;n=A;n=u;n=B;n=b;n=S;n=w;n={redirect:r(1514),retry:r(2026),dump:r(8060),dns:r(379)};n=g;n=d;n={parseHeaders:p.parseHeaders,headerNameToString:p.headerNameToString};function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new m("invalid url")}if(r!=null&&typeof r!=="object"){throw new m("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new m("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(p.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=p.parseURL(t)}const{agent:s,dispatcher:i=I()}=r;if(s){throw new m("unsupported opts.agent. Did you mean opts.client?")}return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}n=Q;n=I;const N=r(4398).fetch;n=async function fetch(e,t=undefined){try{return await N(e,t)}catch(e){if(e&&typeof e==="object"){Error.captureStackTrace(e)}throw e}};r(660).Headers;r(9051).Response;r(9967).Request;r(5910).FormData;n=globalThis.File??r(4573).File;r(8355).FileReader;const{setGlobalOrigin:R,getGlobalOrigin:x}=r(1059);n=R;n=x;const{CacheStorage:v}=r(3245);const{kConstruct:D}=r(109);n=new v(D);const{deleteCookie:k,getCookies:T,getSetCookies:P,setCookie:M}=r(9061);n=k;n=T;n=P;n=M;const{parseMIMEType:L,serializeAMimeType:F}=r(1900);n=L;n=F;const{CloseEvent:U,ErrorEvent:O,MessageEvent:H}=r(5188);r(3726).WebSocket;n=U;n=O;n=H;n=makeDispatcher(h.request);n=makeDispatcher(h.stream);n=makeDispatcher(h.pipeline);n=makeDispatcher(h.connect);n=makeDispatcher(h.upgrade);n=f;n=C;n=y;n=E;const{EventSource:_}=r(1238);n=_},158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(8707);const i=Symbol("kListener");const o=Symbol("kSignal");function abort(e){if(e.abort){e.abort(e[o]?.reason)}else{e.reason=e[o]?.reason??new s}removeSignal(e)}function addSignal(e,t){e.reason=null;e[o]=null;e[i]=null;if(!t){return}if(t.aborted){abort(e);return}e[o]=t;e[i]=()=>{abort(e)};n(e[o],e[i])}function removeSignal(e){if(!e[o]){return}if("removeEventListener"in e[o]){e[o].removeEventListener("abort",e[i])}else{e[o].removeListener("abort",e[i])}e[o]=null;e[i]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(e,t,r)=>{const n=r(4589);const{AsyncResource:s}=r(6698);const{InvalidArgumentError:i,SocketError:o}=r(8707);const a=r(3440);const{addSignal:c,removeSignal:l}=r(158);class ConnectHandler extends s{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:r,opaque:n,responseHeaders:s}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=s||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(){throw new o("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:i}=this;l(this);this.callback=null;let o=t;if(o!=null){o=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:o,socket:r,opaque:s,context:i})}onError(e){const{callback:t,opaque:r}=this;l(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},6862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:i}=r(7075);const{InvalidArgumentError:o,InvalidReturnValueError:a,RequestAbortedError:c}=r(8707);const l=r(3440);const{AsyncResource:A}=r(6698);const{addSignal:u,removeSignal:d}=r(158);const p=r(4589);const m=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[m]=null}_read(){const{[m]:e}=this;if(e){this[m]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[m]=e}_read(){this[m]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid handler")}const{signal:r,method:n,opaque:i,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new o("invalid method")}if(a&&typeof a!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=i||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",l.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e?.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[m]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:i,abort:o}=this;if(!e&&!i._readableState.endEmitted){e=new c}if(o&&e){o()}l.destroy(r,e);l.destroy(n,e);l.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;u(this,r)}onConnect(e,t){const{ret:r,res:n}=this;if(this.reason){e(this.reason);return}p(!n,"pipeline cannot be retried");p(!r.destroyed);this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:i}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?l.parseRawHeaders(t):l.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let o;try{this.handler=null;const r=this.responseHeaders==="raw"?l.parseRawHeaders(t):l.parseHeaders(t);o=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:i})}catch(e){this.res.on("error",l.nop);throw e}if(!o||typeof o.on!=="function"){throw new a("expected Readable")}o.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;l.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){l.destroy(e,new c)}}));this.body=o}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;l.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new i).destroy(e)}}e.exports=pipeline},4043:(e,t,r)=>{const n=r(4589);const{Readable:s}=r(9927);const{InvalidArgumentError:i,RequestAbortedError:o}=r(8707);const a=r(3440);const{getResolveErrorBodyCallback:c}=r(7655);const{AsyncResource:l}=r(6698);class RequestHandler extends l{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}const{signal:r,method:n,opaque:s,body:c,onInfo:l,responseHeaders:A,throwOnError:u,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new i("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new i("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(l&&typeof l!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(a.isStream(c)){a.destroy(c.on("error",a.nop),e)}throw e}this.method=n;this.responseHeaders=A||null;this.opaque=s||null;this.callback=t;this.res=null;this.abort=null;this.body=c;this.trailers={};this.context=null;this.onInfo=l||null;this.throwOnError=u;this.highWaterMark=d;this.signal=r;this.reason=null;this.removeAbortListener=null;if(a.isStream(c)){c.on("error",(e=>{this.onError(e)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new o}else{this.removeAbortListener=a.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new o;if(this.res){a.destroy(this.res.on("error",a.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(e,t,r,n){const{callback:i,opaque:o,abort:l,context:A,responseHeaders:u,highWaterMark:d}=this;const p=u==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const m=u==="raw"?a.parseHeaders(t):p;const h=m["content-type"];const g=m["content-length"];const f=new s({resume:r,abort:l,contentType:h,contentLength:this.method!=="HEAD"&&g?Number(g):null,highWaterMark:d});if(this.removeAbortListener){f.on("close",this.removeAbortListener)}this.callback=null;this.res=f;if(i!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(c,null,{callback:i,body:f,contentType:h,statusCode:e,statusMessage:n,headers:p})}else{this.runInAsyncScope(i,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:o,body:f,context:A})}}}onData(e){return this.res.push(e)}onComplete(e){a.parseHeaders(e,this.trailers);this.res.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{a.destroy(t,e)}))}if(n){this.body=null;a.destroy(n,e)}if(this.removeAbortListener){t?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const n=r(4589);const{finished:s,PassThrough:i}=r(7075);const{InvalidArgumentError:o,InvalidReturnValueError:a}=r(8707);const c=r(3440);const{getResolveErrorBodyCallback:l}=r(7655);const{AsyncResource:A}=r(6698);const{addSignal:u,removeSignal:d}=r(158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:l,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(l&&typeof l!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=l||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback);this.abort=e;this.context=t}onHeaders(e,t,r,n){const{factory:o,opaque:A,context:u,callback:d,responseHeaders:p}=this;const m=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:m})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):m;const s=r["content-type"];h=new i;this.callback=null;this.runInAsyncScope(l,null,{callback:d,body:h,contentType:s,statusCode:e,statusMessage:n,headers:m})}else{if(o===null){return}h=this.runInAsyncScope(o,null,{statusCode:e,headers:m,opaque:A,context:u});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new a("expected Writable")}s(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:i}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){i()}}))}h.on("drain",r);this.res=h;const g=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState?.needDrain;return g!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e?.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},1882:(e,t,r)=>{const{InvalidArgumentError:n,SocketError:s}=r(8707);const{AsyncResource:i}=r(6698);const o=r(3440);const{addSignal:a,removeSignal:c}=r(158);const l=r(4589);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:i}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=i||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;a(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}l(this.callback);this.abort=e;this.context=null}onHeaders(){throw new s("bad upgrade",null)}onUpgrade(e,t,r){l(e===101);const{callback:n,opaque:s,context:i}=this;c(this);this.callback=null;const a=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:a,socket:r,opaque:s,context:i})}onError(e){const{callback:t,opaque:r}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e?.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},6615:(e,t,r)=>{e.exports.request=r(4043);e.exports.stream=r(3560);e.exports.pipeline=r(6862);e.exports.upgrade=r(1882);e.exports.connect=r(2279)},9927:(e,t,r)=>{const n=r(4589);const{Readable:s}=r(7075);const{RequestAbortedError:i,NotSupportedError:o,InvalidArgumentError:a,AbortError:c}=r(8707);const l=r(3440);const{ReadableStreamFrom:A}=r(3440);const u=Symbol("kConsume");const d=Symbol("kReading");const p=Symbol("kBody");const m=Symbol("kAbort");const h=Symbol("kContentType");const g=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",contentLength:n,highWaterMark:s=64*1024}){super({autoDestroy:true,read:e,highWaterMark:s});this._readableState.dataEmitted=false;this[m]=t;this[u]=null;this[p]=null;this[h]=r;this[g]=n;this[d]=false}destroy(e){if(!e&&!this._readableState.endEmitted){e=new i}if(e){this[m]()}return super.destroy(e)}_destroy(e,t){if(!this[d]){setImmediate((()=>{t(e)}))}else{t(e)}}on(e,...t){if(e==="data"||e==="readable"){this[d]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[d]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[u]&&e!==null){consumePush(this[u],e);return this[d]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new o}get bodyUsed(){return l.isDisturbed(this)}get body(){if(!this[p]){this[p]=A(this);if(this[u]){this[p].getReader();n(this[p].locked)}}return this[p]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024;const r=e?.signal;if(r!=null&&(typeof r!=="object"||!("aborted"in r))){throw new a("signal must be an AbortSignal")}r?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((e,n)=>{if(this[g]>t){this.destroy(new c)}const onAbort=()=>{this.destroy(r.reason??new c)};r?.addEventListener("abort",onAbort);this.on("close",(function(){r?.removeEventListener("abort",onAbort);if(r?.aborted){n(r.reason??new c)}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}}function isLocked(e){return e[p]&&e[p].locked===true||e[u]}function isUnusable(e){return l.isDisturbed(e)||isLocked(e)}async function consume(e,t){n(!e[u]);return new Promise(((r,n)=>{if(isUnusable(e)){const t=e._readableState;if(t.destroyed&&t.closeEmitted===false){e.on("error",(e=>{n(e)})).on("close",(()=>{n(new TypeError("unusable"))}))}else{n(t.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{e[u]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[u],e)})).on("close",(function(){if(this[u].body!==null){consumeFinish(this[u],new i)}}));consumeStart(e[u])}))}}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;if(t.bufferIndex){const r=t.bufferIndex;const n=t.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}function chunksConcat(e,t){if(e.length===0||t===0){return new Uint8Array(0)}if(e.length===1){return new Uint8Array(e[0])}const r=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer);let n=0;for(let t=0;t{const n=r(4589);const{ResponseStatusCodeError:s}=r(8707);const{chunksDecode:i}=r(9927);const o=128*1024;async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:a,statusMessage:c,headers:l}){n(t);let A=[];let u=0;try{for await(const e of t){A.push(e);u+=e.length;if(u>o){A=[];u=0;break}}}catch{A=[];u=0}const d=`Response status code ${a}${c?`: ${c}`:""}`;if(a===204||!r||!u){queueMicrotask((()=>e(new s(d,a,l))));return}const p=Error.stackTraceLimit;Error.stackTraceLimit=0;let m;try{if(isContentTypeApplicationJson(r)){m=JSON.parse(i(A,u))}else if(isContentTypeText(r)){m=i(A,u)}}catch{}finally{Error.stackTraceLimit=p}queueMicrotask((()=>e(new s(d,a,l,m))))}const isContentTypeApplicationJson=e=>e.length>15&&e[11]==="/"&&e[0]==="a"&&e[1]==="p"&&e[2]==="p"&&e[3]==="l"&&e[4]==="i"&&e[5]==="c"&&e[6]==="a"&&e[7]==="t"&&e[8]==="i"&&e[9]==="o"&&e[10]==="n"&&e[12]==="j"&&e[13]==="s"&&e[14]==="o"&&e[15]==="n";const isContentTypeText=e=>e.length>4&&e[4]==="/"&&e[0]==="t"&&e[1]==="e"&&e[2]==="x"&&e[3]==="t";e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(e,t,r)=>{const n=r(7030);const s=r(4589);const i=r(3440);const{InvalidArgumentError:o,ConnectTimeoutError:a}=r(8707);const c=r(6603);function noop(){}let l;let A;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){A=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:c,session:d,...p}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new o("maxCachedSessions must be a positive integer or zero")}const m={path:a,...p};const h=new A(t==null?100:t);c=c==null?1e4:c;e=e!=null?e:false;return function connect({hostname:t,host:o,protocol:a,port:A,servername:p,localAddress:g,httpSocket:f},y){let C;if(a==="https:"){if(!l){l=r(1692)}p=p||m.servername||i.getServerName(o)||null;const n=p||t;s(n);const a=d||h.get(n)||null;A=A||443;C=l.connect({highWaterMark:16384,...m,servername:p,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:f,port:A,host:t});C.on("session",(function(e){h.set(n,e)}))}else{s(!f,"httpSocket can only be sent on TLS update");A=A||80;C=n.connect({highWaterMark:64*1024,...m,localAddress:g,port:A,host:t})}if(m.keepAlive==null||m.keepAlive){const e=m.keepAliveInitialDelay===undefined?6e4:m.keepAliveInitialDelay;C.setKeepAlive(true,e)}const E=u(new WeakRef(C),{timeout:c,hostname:t,port:A});C.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){queueMicrotask(E);if(y){const e=y;y=null;e(null,this)}})).on("error",(function(e){queueMicrotask(E);if(y){const t=y;y=null;t(e)}}));return C}}const u=process.platform==="win32"?(e,t)=>{if(!t.timeout){return noop}let r=null;let n=null;const s=c.setFastTimeout((()=>{r=setImmediate((()=>{n=setImmediate((()=>onConnectTimeout(e.deref(),t)))}))}),t.timeout);return()=>{c.clearFastTimeout(s);clearImmediate(r);clearImmediate(n)}}:(e,t)=>{if(!t.timeout){return noop}let r=null;const n=c.setFastTimeout((()=>{r=setImmediate((()=>{onConnectTimeout(e.deref(),t)}))}),t.timeout);return()=>{c.clearFastTimeout(n);clearImmediate(r)}};function onConnectTimeout(e,t){if(e==null){return}let r="Connect Timeout Error";if(Array.isArray(e.autoSelectFamilyAttemptedAddresses)){r+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{r+=` (attempted address: ${t.hostname}:${t.port},`}r+=` timeout: ${t.timeout}ms)`;i.destroy(e,new a(r))}e.exports=buildConnector},735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{const n=r(3053);const s=r(7975);const i=s.debuglog("undici");const o=s.debuglog("fetch");const a=s.debuglog("websocket");let c=false;const l={beforeConnect:n.channel("undici:client:beforeConnect"),connected:n.channel("undici:client:connected"),connectError:n.channel("undici:client:connectError"),sendHeaders:n.channel("undici:client:sendHeaders"),create:n.channel("undici:request:create"),bodySent:n.channel("undici:request:bodySent"),headers:n.channel("undici:request:headers"),trailers:n.channel("undici:request:trailers"),error:n.channel("undici:request:error"),open:n.channel("undici:websocket:open"),close:n.channel("undici:websocket:close"),socketError:n.channel("undici:websocket:socket_error"),ping:n.channel("undici:websocket:ping"),pong:n.channel("undici:websocket:pong")};if(i.enabled||o.enabled){const e=o.enabled?o:i;n.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connecting to %s using %s%s",`${i}${s?`:${s}`:""}`,n,r)}));n.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connected to %s using %s%s",`${i}${s?`:${s}`:""}`,n,r)}));n.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i},error:o}=t;e("connection to %s using %s%s errored - %s",`${i}${s?`:${s}`:""}`,n,r,o.message)}));n.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("sending request to %s %s/%s",r,s,n)}));n.channel("undici:request:headers").subscribe((t=>{const{request:{method:r,path:n,origin:s},response:{statusCode:i}}=t;e("received response to %s %s/%s - HTTP %d",r,s,n,i)}));n.channel("undici:request:trailers").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("trailers received from %s %s/%s",r,s,n)}));n.channel("undici:request:error").subscribe((t=>{const{request:{method:r,path:n,origin:s},error:i}=t;e("request to %s %s/%s errored - %s",r,s,n,i.message)}));c=true}if(a.enabled){if(!c){const e=i.enabled?i:a;n.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connecting to %s%s using %s%s",i,s?`:${s}`:"",n,r)}));n.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i}}=t;e("connected to %s%s using %s%s",i,s?`:${s}`:"",n,r)}));n.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:r,protocol:n,port:s,host:i},error:o}=t;e("connection to %s%s using %s%s errored - %s",i,s?`:${s}`:"",n,r,o.message)}));n.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:r,path:n,origin:s}}=t;e("sending request to %s %s/%s",r,s,n)}))}n.channel("undici:websocket:open").subscribe((e=>{const{address:{address:t,port:r}}=e;a("connection opened %s%s",t,r?`:${r}`:"")}));n.channel("undici:websocket:close").subscribe((e=>{const{websocket:t,code:r,reason:n}=e;a("closed connection to %s - %s %s",t.url,r,n)}));n.channel("undici:websocket:socket_error").subscribe((e=>{a("connection errored - %s",e.message)}));n.channel("undici:websocket:ping").subscribe((e=>{a("ping received")}));n.channel("undici:websocket:pong").subscribe((e=>{a("pong received")}))}e.exports={channels:l}},8707:e=>{const t=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[t]===true}[t]=true}const r=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{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[r]===true}[r]=true}const n=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{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[n]===true}[n]=true}const s=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{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[s]===true}[s]=true}const i=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{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[i]===true}[i]=true}const o=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}static[Symbol.hasInstance](e){return e&&e[o]===true}[o]=true}const a=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[a]===true}[a]=true}const c=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[c]===true}[c]=true}const l=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[l]===true}[l]=true}const A=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[A]===true}[A]=true}const u=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[u]===true}[u]=true}const d=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[d]===true}[d]=true}const p=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[p]===true}[p]=true}const m=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[m]===true}[m]=true}const h=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[h]===true}[h]=true}const g=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(e,t){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}static[Symbol.hasInstance](e){return e&&e[g]===true}[g]=true}const f=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[f]===true}[f]=true}const y=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[y]===true}[y]=true}const C=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(e,t,r){super(e);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}static[Symbol.hasInstance](e){return e&&e[C]===true}[C]=true}const E=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[E]===true}[E]=true}const B=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}static[Symbol.hasInstance](e){return e&&e[B]===true}[B]=true}const I=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=t;this.data=n;this.headers=r}static[Symbol.hasInstance](e){return e&&e[I]===true}[I]=true}const Q=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(e,t,r){super(t,{cause:e,...r??{}});this.name="SecureProxyConnectionError";this.message=t||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}static[Symbol.hasInstance](e){return e&&e[Q]===true}[Q]=true}const b=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(e){super(e);this.name="MessageSizeExceededError";this.message=e||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[b]===true}get[b](){return true}}e.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(8707);const i=r(4589);const{isValidHTTPToken:o,isValidHeaderValue:a,isStream:c,destroy:l,isBuffer:A,isFormDataLike:u,isIterable:d,isBlobLike:p,buildURL:m,validateHandler:h,getServerName:g,normalizedMethodRecords:f}=r(3440);const{channels:y}=r(2414);const{headerNameLowerCasedRecord:C}=r(735);const E=/[^\u0021-\u00ff]/;const B=Symbol("handler");class Request{constructor(e,{path:t,method:r,body:s,headers:i,query:C,idempotent:I,blocking:Q,upgrade:b,headersTimeout:S,bodyTimeout:w,reset:N,throwOnError:R,expectContinue:x,servername:v},D){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(E.test(t)){throw new n("invalid request path")}if(typeof r!=="string"){throw new n("method must be a string")}else if(f[r]===undefined&&!o(r)){throw new n("invalid request method")}if(b&&typeof b!=="string"){throw new n("upgrade must be a string")}if(b&&!a(b)){throw new n("invalid upgrade header")}if(S!=null&&(!Number.isFinite(S)||S<0)){throw new n("invalid headersTimeout")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new n("invalid bodyTimeout")}if(N!=null&&typeof N!=="boolean"){throw new n("invalid reset")}if(x!=null&&typeof x!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=S;this.bodyTimeout=w;this.throwOnError=R===true;this.method=r;this.abort=null;if(s==null){this.body=null}else if(c(s)){this.body=s;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){l(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(A(s)){this.body=s.byteLength?s:null}else if(ArrayBuffer.isView(s)){this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null}else if(s instanceof ArrayBuffer){this.body=s.byteLength?Buffer.from(s):null}else if(typeof s==="string"){this.body=s.length?Buffer.from(s):null}else if(u(s)||d(s)||p(s)){this.body=s}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=b||null;this.path=C?m(t,C):t;this.origin=e;this.idempotent=I==null?r==="HEAD"||r==="GET":I;this.blocking=Q==null?false:Q;this.reset=N==null?null:N;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=x!=null?x:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.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")}},7752:(e,t,r)=>{const{wellknownHeaderNames:n,headerNameLowerCasedRecord:s}=r(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,t,r){if(r===undefined||r>=e.length){throw new TypeError("Unreachable")}const n=this.code=e.charCodeAt(r);if(n>127){throw new TypeError("key must be ascii string")}if(e.length!==++r){this.middle=new TstNode(e,t,r)}else{this.value=t}}add(e,t){const r=e.length;if(r===0){throw new TypeError("Unreachable")}let n=0;let s=this;while(true){const i=e.charCodeAt(n);if(i>127){throw new TypeError("key must be ascii string")}if(s.code===i){if(r===++n){s.value=t;break}else if(s.middle!==null){s=s.middle}else{s.middle=new TstNode(e,t,n);break}}else if(s.code=65){s|=32}while(n!==null){if(s===n.code){if(t===++r){return n}n=n.middle;break}n=n.code{const n=r(4589);const{kDestroyed:s,kBodyUsed:i,kListeners:o,kBody:a}=r(6443);const{IncomingMessage:c}=r(7067);const l=r(7075);const A=r(7030);const{Blob:u}=r(4573);const d=r(7975);const{stringify:p}=r(1792);const{EventEmitter:m}=r(8474);const{InvalidArgumentError:h}=r(8707);const{headerNameLowerCasedRecord:g}=r(735);const{tree:f}=r(7752);const[y,C]=process.versions.node.split(".").map((e=>Number(e)));class BodyAsyncIterable{constructor(e){this[a]=e;this[i]=false}async*[Symbol.asyncIterator](){n(!this[i],"disturbed");this[i]=true;yield*this[a]}}function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){n(false)}))}if(typeof e.readableDidRead!=="boolean"){e[i]=false;m.prototype.on.call(e,"data",(function(){this[i]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new BodyAsyncIterable(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new BodyAsyncIterable(e)}else{return e}}function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){if(e===null){return false}else if(e instanceof u){return true}else if(typeof e!=="object"){return false}else{const t=e[Symbol.toStringTag];return(t==="Blob"||t==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=p(t);if(r){e+="?"+r}return e}function isValidPort(e){const t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new h("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new h("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new h("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new h("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new h("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new h("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r[r.length-1]==="/"){r=r.slice(0,r.length-1)}if(n&&n[0]!=="/"){n=`/${n}`}return new URL(`${r}${n}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new h("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n(typeof e==="string");const t=getHostname(e);if(A.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return e&&!!(e.destroyed||e[s]||l.isDestroyed?.(e))}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===c){e.socket=null}e.destroy(t)}else if(t){queueMicrotask((()=>{e.emit("error",t)}))}if(e.destroyed!==true){e[s]=true}}const E=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(E);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return typeof e==="string"?g[e]??e.toLowerCase():f.lookup(e)??e.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(e){return f.lookup(e)??e.toString("latin1").toLowerCase()}function parseHeaders(e,t){if(t===undefined)t={};for(let r=0;re.toString("utf8"))):s.toString("utf8")}}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=e.length;const r=new Array(t);let n=false;let s=-1;let i;let o;let a=0;for(let t=0;t{e.close();e.byobRequest?.respond(0)}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);if(t.byteLength){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const B=typeof String.prototype.toWellFormed==="function";const I=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return B?`${e}`.toWellFormed():d.toUSVString(e)}function isUSVString(e){return I?`${e}`.isWellFormed():toUSVString(e)===`${e}`}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t{const{InvalidArgumentError:n}=r(8707);const{kClients:s,kRunning:i,kClose:o,kDestroy:a,kDispatch:c,kInterceptors:l}=r(6443);const A=r(1841);const u=r(628);const d=r(3701);const p=r(3440);const m=r(5092);const h=Symbol("onConnect");const g=Symbol("onDisconnect");const f=Symbol("onConnectionError");const y=Symbol("maxRedirections");const C=Symbol("onDrain");const E=Symbol("factory");const B=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...i}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[l]=i.interceptors?.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[m({maxRedirections:t})];this[B]={...p.deepClone(i),connect:r};this[B].interceptors=i.interceptors?{...i.interceptors}:undefined;this[y]=t;this[E]=e;this[s]=new Map;this[C]=(e,t)=>{this.emit("drain",e,[this,...t])};this[h]=(e,t)=>{this.emit("connect",e,[this,...t])};this[g]=(e,t,r)=>{this.emit("disconnect",e,[this,...t],r)};this[f]=(e,t,r)=>{this.emit("connectionError",e,[this,...t],r)}}get[i](){let e=0;for(const t of this[s].values()){e+=t[i]}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}let i=this[s].get(r);if(!i){i=this[E](e.origin,this[B]).on("drain",this[C]).on("connect",this[h]).on("disconnect",this[g]).on("connectionError",this[f]);this[s].set(r,i)}return i.dispatch(e,t)}async[o](){const e=[];for(const t of this[s].values()){e.push(t.close())}this[s].clear();await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){t.push(r.destroy(e))}this[s].clear();await Promise.all(t)}}e.exports=Agent},837:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(8707);const{PoolBase:i,kClients:o,kNeedDrain:a,kAddClient:c,kRemoveClient:l,kGetDispatcher:A}=r(2128);const u=r(628);const{kUrl:d,kInterceptors:p}=r(6443);const{parseOrigin:m}=r(3440);const h=Symbol("factory");const g=Symbol("options");const f=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const C=Symbol("kIndex");const E=Symbol("kWeight");const B=Symbol("kMaxWeightPerServer");const I=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(e===0)return t;while(t!==0){const r=t;t=e%t;e=r}return e}function defaultFactory(e,t){return new u(e,t)}class BalancedPool extends i{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[g]=r;this[C]=-1;this[y]=0;this[B]=this[g].maxWeightPerServer||100;this[I]=this[g].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors?.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=m(e).origin;if(this[o].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[g]));this[c](r);r.on("connect",(()=>{r[E]=Math.min(this[B],r[E]+this[I])}));r.on("connectionError",(()=>{r[E]=Math.max(1,r[E]-this[I]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[E]=Math.max(1,r[E]-this[I]);this._updateBalancedPoolStats()}}));for(const e of this[o]){e[E]=this[B]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[l](r)}return this}get upstreams(){return this[o].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[o].length===0){throw new n}const e=this[o].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[o].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[o].findIndex((e=>!e[a]));while(r++this[o][s][E]&&!e[a]){s=this[C]}if(this[C]===0){this[y]=this[y]-this[f];if(this[y]<=0){this[y]=this[B]}}if(e[E]>=this[y]&&!e[a]){return e}}this[y]=this[o][s][E];this[C]=s;return this[o][s]}}e.exports=BalancedPool},637:(e,t,r)=>{const n=r(4589);const s=r(3440);const{channels:i}=r(2414);const o=r(6603);const{RequestContentLengthMismatchError:a,ResponseContentLengthMismatchError:c,RequestAbortedError:l,HeadersTimeoutError:A,HeadersOverflowError:u,SocketError:d,InformationalError:p,BodyTimeoutError:m,HTTPParserError:h,ResponseExceededMaxSizeError:g}=r(8707);const{kUrl:f,kReset:y,kClient:C,kParser:E,kBlocking:B,kRunning:I,kPending:Q,kSize:b,kWriting:S,kQueue:w,kNoRef:N,kKeepAliveDefaultTimeout:R,kHostHeader:x,kPendingIdx:v,kRunningIdx:D,kError:k,kPipelining:T,kSocket:P,kKeepAliveTimeoutValue:M,kMaxHeadersSize:L,kKeepAliveMaxTimeout:F,kKeepAliveTimeoutThreshold:U,kHeadersTimeout:O,kBodyTimeout:H,kStrictContentLength:_,kMaxRequests:z,kCounter:q,kMaxResponseSize:V,kOnError:G,kResume:Y,kHTTPContext:J}=r(6443);const W=r(2824);const $=Buffer.alloc(0);const j=Buffer[Symbol.species];const K=s.addListener;const X=s.removeAllListeners;let Z;async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(3870):undefined;let t;try{t=await WebAssembly.compile(r(3434))}catch(n){t=await WebAssembly.compile(e||r(3870))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onStatus(new j(ne.buffer,s,r))||0},wasm_on_message_begin:e=>{n(re.ptr===e);return re.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onHeaderField(new j(ne.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onHeaderValue(new j(ne.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n(re.ptr===e);return re.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n(re.ptr===e);const s=t-ie+ne.byteOffset;return re.onBody(new j(ne.buffer,s,r))||0},wasm_on_message_complete:e=>{n(re.ptr===e);return re.onMessageComplete()||0}}})}let ee=null;let te=lazyllhttp();te.catch();let re=null;let ne=null;let se=0;let ie=null;const oe=0;const ae=1;const ce=2|ae;const le=4|ae;const Ae=8|oe;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[L])&&e[L]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(W.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[L];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[V]}setTimeout(e,t){if(e!==this.timeoutValue||t&ae^this.timeoutType&ae){if(this.timeout){o.clearTimeout(this.timeout);this.timeout=null}if(e){if(t&ae){this.timeout=o.setFastTimeout(onParserTimeout,e,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,e,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=t}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(re==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===le);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||$);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(re==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>se){if(ie){r.free(ie)}se=Math.ceil(e.length/4096)*4096;ie=r.malloc(se)}new Uint8Array(r.memory.buffer,ie,se).set(e);try{let n;try{ne=e;re=this;n=r.llhttp_execute(this.ptr,ie,e.length)}catch(e){throw e}finally{re=null;ne=null}const s=r.llhttp_get_error_pos(this.ptr)-ie;if(n===W.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===W.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==W.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let i="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);i="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new h(i,W.ERROR[n],e.slice(s))}}catch(e){s.destroy(t,e)}}destroy(){n(this.ptr!=null);n(re==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&o.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[w][t[D]];if(!r){return-1}r.onResponseStarted()}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10){const t=s.bufferToLowerCasedHeaderName(r);if(t==="keep-alive"){this.keepAlive+=e.toString()}else if(t==="connection"){this.connection+=e.toString()}}else if(r.length===14&&s.bufferToLowerCasedHeaderName(r)==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){s.destroy(this.socket,new u)}}onUpgrade(e){const{upgrade:t,client:r,socket:i,headers:o,statusCode:a}=this;n(t);n(r[P]===i);n(!i.destroyed);n(!this.paused);n((o.length&1)===0);const c=r[w][r[D]];n(c);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;i.unshift(e);i[E].destroy();i[E]=null;i[C]=null;i[k]=null;X(i);r[P]=null;r[J]=null;r[w][r[D]++]=null;r.emit("disconnect",r[f],[r],new p("upgrade"));try{c.onUpgrade(a,o,i)}catch(e){s.destroy(i,e)}r[Y]()}onHeadersComplete(e,t,r){const{client:i,socket:o,headers:a,statusText:c}=this;if(o.destroyed){return-1}const l=i[w][i[D]];if(!l){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){s.destroy(o,new d("bad response",s.getSocketInfo(o)));return-1}if(t&&!l.upgrade){s.destroy(o,new d("bad upgrade",s.getSocketInfo(o)));return-1}n(this.timeoutType===ce);this.statusCode=e;this.shouldKeepAlive=r||l.method==="HEAD"&&!o[y]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=l.bodyTimeout!=null?l.bodyTimeout:i[H];this.setTimeout(e,le)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(l.method==="CONNECT"){n(i[I]===1);this.upgrade=true;return 2}if(t){n(i[I]===1);this.upgrade=true;return 2}n((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&i[T]){const e=this.keepAlive?s.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-i[U],i[F]);if(t<=0){o[y]=true}else{i[M]=t}}else{i[M]=i[R]}}else{o[y]=true}const A=l.onHeaders(e,a,this.resume,c)===false;if(l.aborted){return-1}if(l.method==="HEAD"){return 1}if(e<200){return 1}if(o[B]){o[B]=false;i[Y]()}return A?W.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:i,maxResponseSize:o}=this;if(r.destroyed){return-1}const a=t[w][t[D]];n(a);n(this.timeoutType===le);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(i>=200);if(o>-1&&this.bytesRead+e.length>o){s.destroy(r,new g);return-1}this.bytesRead+=e.length;if(a.onData(e)===false){return W.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:i,headers:o,contentLength:a,bytesRead:l,shouldKeepAlive:A}=this;if(t.destroyed&&(!r||A)){return-1}if(i){return}n(r>=100);n((this.headers.length&1)===0);const u=e[w][e[D]];n(u);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(r<200){return}if(u.method!=="HEAD"&&a&&l!==parseInt(a,10)){s.destroy(t,new c);return-1}u.onComplete(o);e[w][e[D]++]=null;if(t[S]){n(e[I]===0);s.destroy(t,new p("reset"));return W.ERROR.PAUSED}else if(!A){s.destroy(t,new p("reset"));return W.ERROR.PAUSED}else if(t[y]&&e[I]===0){s.destroy(t,new p("reset"));return W.ERROR.PAUSED}else if(e[T]==null||e[T]===1){setImmediate((()=>e[Y]()))}else{e[Y]()}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:i,paused:o}=e.deref();if(r===ce){if(!t[S]||t.writableNeedDrain||i[I]>1){n(!o,"cannot be paused while waiting for headers");s.destroy(t,new A)}}else if(r===le){if(!o){s.destroy(t,new m)}}else if(r===Ae){n(i[I]===0&&i[M]);s.destroy(t,new p("socket idle timeout"))}}async function connectH1(e,t){e[P]=t;if(!ee){ee=await te;te=null}t[N]=false;t[S]=false;t[y]=false;t[B]=false;t[E]=new Parser(e,t,ee);K(t,"error",(function(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const t=this[E];if(e.code==="ECONNRESET"&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[k]=e;this[C][G](e)}));K(t,"readable",(function(){const e=this[E];if(e){e.readMore()}}));K(t,"end",(function(){const e=this[E];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}s.destroy(this,new d("other side closed",s.getSocketInfo(this)))}));K(t,"close",(function(){const e=this[C];const t=this[E];if(t){if(!this[k]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[E].destroy();this[E]=null}const r=this[k]||new d("closed",s.getSocketInfo(this));e[P]=null;e[J]=null;if(e.destroyed){n(e[Q]===0);const t=e[w].splice(e[D]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[w][e[D]];e[w][e[D]++]=null;s.errorRequest(e,t,r)}e[v]=e[D];n(e[I]===0);e.emit("disconnect",e[f],[e],r);e[Y]()}));let r=false;t.on("close",(()=>{r=true}));return{version:"h1",defaultPipelining:1,write(...t){return writeH1(e,...t)},resume(){resumeH1(e)},destroy(e,n){if(r){queueMicrotask(n)}else{t.destroy(e).on("close",n)}},get destroyed(){return t.destroyed},busy(r){if(t[S]||t[y]||t[B]){return true}if(r){if(e[I]>0&&!r.idempotent){return true}if(e[I]>0&&(r.upgrade||r.method==="CONNECT")){return true}if(e[I]>0&&s.bodyLength(r.body)!==0&&(s.isStream(r.body)||s.isAsyncIterable(r.body)||s.isFormDataLike(r.body))){return true}}return false}}}function resumeH1(e){const t=e[P];if(t&&!t.destroyed){if(e[b]===0){if(!t[N]&&t.unref){t.unref();t[N]=true}}else if(t[N]&&t.ref){t.ref();t[N]=false}if(e[b]===0){if(t[E].timeoutType!==Ae){t[E].setTimeout(e[M],Ae)}}else if(e[I]>0&&t[E].statusCode<200){if(t[E].timeoutType!==ce){const r=e[w][e[D]];const n=r.headersTimeout!=null?r.headersTimeout:e[O];t[E].setTimeout(n,ce)}}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH1(e,t){const{method:o,path:c,host:A,upgrade:u,blocking:d,reset:m}=t;let{body:h,headers:g,contentLength:f}=t;const C=o==="PUT"||o==="POST"||o==="PATCH"||o==="QUERY"||o==="PROPFIND"||o==="PROPPATCH";if(s.isFormDataLike(h)){if(!Z){Z=r(4492).extractBody}const[e,n]=Z(h);if(t.contentType==null){g.push("content-type",n)}h=e.stream;f=e.length}else if(s.isBlobLike(h)&&t.contentType==null&&h.type){g.push("content-type",h.type)}if(h&&typeof h.read==="function"){h.read(0)}const E=s.bodyLength(h);f=E??f;if(f===null){f=t.contentLength}if(f===0&&!C){f=null}if(shouldSendContentLength(o)&&f>0&&t.contentLength!==null&&t.contentLength!==f){if(e[_]){s.errorRequest(e,t,new a);return false}process.emitWarning(new a)}const I=e[P];const abort=r=>{if(t.aborted||t.completed){return}s.errorRequest(e,t,r||new l);s.destroy(h);s.destroy(I,new p("aborted"))};try{t.onConnect(abort)}catch(r){s.errorRequest(e,t,r)}if(t.aborted){return false}if(o==="HEAD"){I[y]=true}if(u||o==="CONNECT"){I[y]=true}if(m!=null){I[y]=m}if(e[z]&&I[q]++>=e[z]){I[y]=true}if(d){I[B]=true}let Q=`${o} ${c} HTTP/1.1\r\n`;if(typeof A==="string"){Q+=`host: ${A}\r\n`}else{Q+=e[x]}if(u){Q+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(e[T]&&!I[y]){Q+="connection: keep-alive\r\n"}else{Q+="connection: close\r\n"}if(Array.isArray(g)){for(let e=0;e{t.removeListener("error",onFinished)}));if(!u){const e=new l;queueMicrotask((()=>onFinished(e)))}};const onFinished=function(e){if(u){return}u=true;n(o.destroyed||o[S]&&r[I]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){s.destroy(t,e)}else{s.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished);if(t.errorEmitted??t.errored){setImmediate((()=>onFinished(t.errored)))}else if(t.endEmitted??t.readableEnded){setImmediate((()=>onFinished(null)))}if(t.closeEmitted??t.closed){setImmediate(onClose)}}function writeBuffer(e,t,r,i,o,a,c,l){try{if(!t){if(a===0){o.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{n(a===null,"no body must not have content length");o.write(`${c}\r\n`,"latin1")}}else if(s.isBuffer(t)){n(a===t.byteLength,"buffer body must have content length");o.cork();o.write(`${c}content-length: ${a}\r\n\r\n`,"latin1");o.write(t);o.uncork();i.onBodySent(t);if(!l&&i.reset!==false){o[y]=true}}i.onRequestSent();r[Y]()}catch(t){e(t)}}async function writeBlob(e,t,r,s,i,o,c,l){n(o===t.size,"blob body must have content length");try{if(o!=null&&o!==t.size){throw new a}const e=Buffer.from(await t.arrayBuffer());i.cork();i.write(`${c}content-length: ${o}\r\n\r\n`,"latin1");i.write(e);i.uncork();s.onBodySent(e);s.onRequestSent();if(!l&&s.reset!==false){i[y]=true}r[Y]()}catch(t){e(t)}}async function writeIterable(e,t,r,s,i,o,a,c){n(o!==0||r[I]===0,"iterator body cannot be pipelined");let l=null;function onDrain(){if(l){const e=l;l=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(l===null);if(i[k]){t(i[k])}else{l=e}}));i.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({abort:e,socket:i,request:s,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(i[k]){throw i[k]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{i.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:e,socket:t,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=t;this.request=r;this.contentLength=n;this.client=s;this.bytesWritten=0;this.expectsPayload=i;this.header=o;this.abort=e;t[S]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:i,expectsPayload:o,header:c}=this;if(t[k]){throw t[k]}if(t.destroyed){return false}const l=Buffer.byteLength(e);if(!l){return true}if(n!==null&&i+l>n){if(s[_]){throw new a}process.emitWarning(new a)}t.cork();if(i===0){if(!o&&r.reset!==false){t[y]=true}if(n===null){t.write(`${c}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${c}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${l.toString(16)}\r\n`,"latin1")}this.bytesWritten+=l;const A=t.write(e);t.uncork();r.onBodySent(e);if(!A){if(t[E].timeout&&t[E].timeoutType===ce){if(t[E].timeout.refresh){t[E].timeout.refresh()}}}return A}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:i,request:o}=this;o.onRequestSent();e[S]=false;if(e[k]){throw e[k]}if(e.destroyed){return}if(n===0){if(s){e.write(`${i}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${i}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[_]){throw new a}else{process.emitWarning(new a)}}if(e[E].timeout&&e[E].timeoutType===ce){if(e[E].timeout.refresh){e[E].timeout.refresh()}}r[Y]()}destroy(e){const{socket:t,client:r,abort:s}=this;t[S]=false;if(e){n(r[I]<=1,"pipeline should only contain this request");s(e)}}}e.exports=connectH1},8788:(e,t,r)=>{const n=r(4589);const{pipeline:s}=r(7075);const i=r(3440);const{RequestContentLengthMismatchError:o,RequestAbortedError:a,SocketError:c,InformationalError:l}=r(8707);const{kUrl:A,kReset:u,kClient:d,kRunning:p,kPending:m,kQueue:h,kPendingIdx:g,kRunningIdx:f,kError:y,kSocket:C,kStrictContentLength:E,kOnError:B,kMaxConcurrentStreams:I,kHTTP2Session:Q,kResume:b,kSize:S,kHTTPContext:w}=r(6443);const N=Symbol("open streams");let R;let x=false;let v;try{v=r(2467)}catch{v={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:D,HTTP2_HEADER_METHOD:k,HTTP2_HEADER_PATH:T,HTTP2_HEADER_SCHEME:P,HTTP2_HEADER_CONTENT_LENGTH:M,HTTP2_HEADER_EXPECT:L,HTTP2_HEADER_STATUS:F}}=v;function parseH2Headers(e){const t=[];for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.push(Buffer.from(r),Buffer.from(e))}}else{t.push(Buffer.from(r),Buffer.from(n))}}return t}async function connectH2(e,t){e[C]=t;if(!x){x=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const r=v.connect(e[A],{createConnection:()=>t,peerMaxConcurrentStreams:e[I]});r[N]=0;r[d]=e;r[C]=t;i.addListener(r,"error",onHttp2SessionError);i.addListener(r,"frameError",onHttp2FrameError);i.addListener(r,"end",onHttp2SessionEnd);i.addListener(r,"goaway",onHTTP2GoAway);i.addListener(r,"close",(function(){const{[d]:e}=this;const{[C]:t}=e;const r=this[C][y]||this[y]||new c("closed",i.getSocketInfo(t));e[Q]=null;if(e.destroyed){n(e[m]===0);const t=e[h].splice(e[f]);for(let n=0;n{s=true}));return{version:"h2",defaultPipelining:Infinity,write(...t){return writeH2(e,...t)},resume(){resumeH2(e)},destroy(e,r){if(s){queueMicrotask(r)}else{t.destroy(e).on("close",r)}},get destroyed(){return t.destroyed},busy(){return false}}}function resumeH2(e){const t=e[C];if(t?.destroyed===false){if(e[S]===0&&e[I]===0){t.unref();e[Q].unref()}else{t.ref();e[Q].ref()}}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[C][y]=e;this[d][B](e)}function onHttp2FrameError(e,t,r){if(r===0){const r=new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[C][y]=r;this[d][B](r)}}function onHttp2SessionEnd(){const e=new c("other side closed",i.getSocketInfo(this[C]));this.destroy(e);i.destroy(this[C],e)}function onHTTP2GoAway(e){const t=this[y]||new c(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this));const r=this[d];r[C]=null;r[w]=null;if(this[Q]!=null){this[Q].destroy(t);this[Q]=null}i.destroy(this[C],t);if(r[f]{if(t.aborted||t.completed){return}r=r||new a;i.errorRequest(e,t,r);if(w!=null){i.destroy(w,r)}i.destroy(I,r);e[h][e[f]++]=null;e[b]()};try{t.onConnect(abort)}catch(r){i.errorRequest(e,t,r)}if(t.aborted){return false}if(c==="CONNECT"){s.ref();w=s.request(S,{endStream:false,signal:y});if(w.id&&!w.pending){t.onUpgrade(null,null,w);++s[N];e[h][e[f]++]=null}else{w.once("ready",(()=>{t.onUpgrade(null,null,w);++s[N];e[h][e[f]++]=null}))}w.once("close",(()=>{s[N]-=1;if(s[N]===0)s.unref()}));return true}S[T]=u;S[P]="https";const U=c==="PUT"||c==="POST"||c==="PATCH";if(I&&typeof I.read==="function"){I.read(0)}let O=i.bodyLength(I);if(i.isFormDataLike(I)){R??=r(4492).extractBody;const[e,t]=R(I);S["content-type"]=t;I=e.stream;O=e.length}if(O==null){O=t.contentLength}if(O===0||!U){O=null}if(shouldSendContentLength(c)&&O>0&&t.contentLength!=null&&t.contentLength!==O){if(e[E]){i.errorRequest(e,t,new o);return false}process.emitWarning(new o)}if(O!=null){n(I,"no body must not have content length");S[M]=`${O}`}s.ref();const H=c==="GET"||c==="HEAD"||I===null;if(m){S[L]="100-continue";w=s.request(S,{endStream:H,signal:y});w.once("continue",writeBodyH2)}else{w=s.request(S,{endStream:H,signal:y});writeBodyH2()}++s[N];w.once("response",(r=>{const{[F]:n,...s}=r;t.onResponseStarted();if(t.aborted){const r=new a;i.errorRequest(e,t,r);i.destroy(w,r);return}if(t.onHeaders(Number(n),parseH2Headers(s),w.resume.bind(w),"")===false){w.pause()}w.on("data",(e=>{if(t.onData(e)===false){w.pause()}}))}));w.once("end",(()=>{if(w.state?.state==null||w.state.state<6){t.onComplete([])}if(s[N]===0){s.unref()}abort(new l("HTTP/2: stream half-closed (remote)"));e[h][e[f]++]=null;e[g]=e[f];e[b]()}));w.once("close",(()=>{s[N]-=1;if(s[N]===0){s.unref()}}));w.once("error",(function(e){abort(e)}));w.once("frameError",((e,t)=>{abort(new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}));return true;function writeBodyH2(){if(!I||O===0){writeBuffer(abort,w,null,e,t,e[C],O,U)}else if(i.isBuffer(I)){writeBuffer(abort,w,I,e,t,e[C],O,U)}else if(i.isBlobLike(I)){if(typeof I.stream==="function"){writeIterable(abort,w,I.stream(),e,t,e[C],O,U)}else{writeBlob(abort,w,I,e,t,e[C],O,U)}}else if(i.isStream(I)){writeStream(abort,e[C],U,w,I,e,t,O)}else if(i.isIterable(I)){writeIterable(abort,w,I,e,t,e[C],O,U)}else{n(false)}}}function writeBuffer(e,t,r,s,o,a,c,l){try{if(r!=null&&i.isBuffer(r)){n(c===r.byteLength,"buffer body must have content length");t.cork();t.write(r);t.uncork();t.end();o.onBodySent(r)}if(!l){a[u]=true}o.onRequestSent();s[b]()}catch(t){e(t)}}function writeStream(e,t,r,o,a,c,l,A){n(A!==0||c[p]===0,"stream body cannot be pipelined");const d=s(a,o,(n=>{if(n){i.destroy(d,n);e(n)}else{i.removeAllListeners(d);l.onRequestSent();if(!r){t[u]=true}c[b]()}}));i.addListener(d,"data",onPipeData);function onPipeData(e){l.onBodySent(e)}}async function writeBlob(e,t,r,s,i,a,c,l){n(c===r.size,"blob body must have content length");try{if(c!=null&&c!==r.size){throw new o}const e=Buffer.from(await r.arrayBuffer());t.cork();t.write(e);t.uncork();t.end();i.onBodySent(e);i.onRequestSent();if(!l){a[u]=true}s[b]()}catch(t){e(t)}}async function writeIterable(e,t,r,s,i,o,a,c){n(a!==0||s[p]===0,"iterator body cannot be pipelined");let l=null;function onDrain(){if(l){const e=l;l=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(l===null);if(o[y]){t(o[y])}else{l=e}}));t.on("close",onDrain).on("drain",onDrain);try{for await(const e of r){if(o[y]){throw o[y]}const r=t.write(e);i.onBodySent(e);if(!r){await waitForDrain()}}t.end();i.onRequestSent();if(!c){o[u]=true}s[b]()}catch(t){e(t)}finally{t.off("close",onDrain).off("drain",onDrain)}}e.exports=connectH2},3701:(e,t,r)=>{const n=r(4589);const s=r(7030);const i=r(7067);const o=r(3440);const{channels:a}=r(2414);const c=r(4655);const l=r(1841);const{InvalidArgumentError:A,InformationalError:u,ClientDestroyedError:d}=r(8707);const p=r(9136);const{kUrl:m,kServerName:h,kClient:g,kBusy:f,kConnect:y,kResuming:C,kRunning:E,kPending:B,kSize:I,kQueue:Q,kConnected:b,kConnecting:S,kNeedDrain:w,kKeepAliveDefaultTimeout:N,kHostHeader:R,kPendingIdx:x,kRunningIdx:v,kError:D,kPipelining:k,kKeepAliveTimeoutValue:T,kMaxHeadersSize:P,kKeepAliveMaxTimeout:M,kKeepAliveTimeoutThreshold:L,kHeadersTimeout:F,kBodyTimeout:U,kStrictContentLength:O,kConnector:H,kMaxRedirections:_,kMaxRequests:z,kCounter:q,kClose:V,kDestroy:G,kDispatch:Y,kInterceptors:J,kLocalAddress:W,kMaxResponseSize:$,kOnError:j,kHTTPContext:K,kMaxConcurrentStreams:X,kResume:Z}=r(6443);const ee=r(637);const te=r(8788);let re=false;const ne=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(e){return e[k]??e[K]?.defaultPipelining??1}class Client extends l{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:a,requestTimeout:c,connectTimeout:l,bodyTimeout:u,idleTimeout:d,keepAlive:g,keepAliveTimeout:f,maxKeepAliveTimeout:y,keepAliveMaxTimeout:E,keepAliveTimeoutThreshold:B,socketPath:I,pipelining:b,tls:S,strictContentLength:D,maxCachedSessions:q,maxRedirections:V,connect:G,maxRequestsPerClient:Y,localAddress:ee,maxResponseSize:te,autoSelectFamily:ie,autoSelectFamilyAttemptTimeout:oe,maxConcurrentStreams:ae,allowH2:ce}={}){super();if(g!==undefined){throw new A("unsupported keepAlive, use pipelining=0 instead")}if(a!==undefined){throw new A("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new A("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(d!==undefined){throw new A("unsupported idleTimeout, use keepAliveTimeout instead")}if(y!==undefined){throw new A("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new A("invalid maxHeaderSize")}if(I!=null&&typeof I!=="string"){throw new A("invalid socketPath")}if(l!=null&&(!Number.isFinite(l)||l<0)){throw new A("invalid connectTimeout")}if(f!=null&&(!Number.isFinite(f)||f<=0)){throw new A("invalid keepAliveTimeout")}if(E!=null&&(!Number.isFinite(E)||E<=0)){throw new A("invalid keepAliveMaxTimeout")}if(B!=null&&!Number.isFinite(B)){throw new A("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new A("headersTimeout must be a positive integer or zero")}if(u!=null&&(!Number.isInteger(u)||u<0)){throw new A("bodyTimeout must be a positive integer or zero")}if(G!=null&&typeof G!=="function"&&typeof G!=="object"){throw new A("connect must be a function or an object")}if(V!=null&&(!Number.isInteger(V)||V<0)){throw new A("maxRedirections must be a positive number")}if(Y!=null&&(!Number.isInteger(Y)||Y<0)){throw new A("maxRequestsPerClient must be a positive number")}if(ee!=null&&(typeof ee!=="string"||s.isIP(ee)===0)){throw new A("localAddress must be valid string IP address")}if(te!=null&&(!Number.isInteger(te)||te<-1)){throw new A("maxResponseSize must be a positive number")}if(oe!=null&&(!Number.isInteger(oe)||oe<-1)){throw new A("autoSelectFamilyAttemptTimeout must be a positive number")}if(ce!=null&&typeof ce!=="boolean"){throw new A("allowH2 must be a valid boolean value")}if(ae!=null&&(typeof ae!=="number"||ae<1)){throw new A("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof G!=="function"){G=p({...S,maxCachedSessions:q,allowH2:ce,socketPath:I,timeout:l,...ie?{autoSelectFamily:ie,autoSelectFamilyAttemptTimeout:oe}:undefined,...G})}if(t?.Client&&Array.isArray(t.Client)){this[J]=t.Client;if(!re){re=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[J]=[se({maxRedirections:V})]}this[m]=o.parseOrigin(e);this[H]=G;this[k]=b!=null?b:1;this[P]=r||i.maxHeaderSize;this[N]=f==null?4e3:f;this[M]=E==null?6e5:E;this[L]=B==null?2e3:B;this[T]=this[N];this[h]=null;this[W]=ee!=null?ee:null;this[C]=0;this[w]=0;this[R]=`host: ${this[m].hostname}${this[m].port?`:${this[m].port}`:""}\r\n`;this[U]=u!=null?u:3e5;this[F]=n!=null?n:3e5;this[O]=D==null?true:D;this[_]=V;this[z]=Y;this[ne]=null;this[$]=te>-1?te:-1;this[X]=ae!=null?ae:100;this[K]=null;this[Q]=[];this[v]=0;this[x]=0;this[Z]=e=>resume(this,e);this[j]=e=>onError(this,e)}get pipelining(){return this[k]}set pipelining(e){this[k]=e;this[Z](true)}get[B](){return this[Q].length-this[x]}get[E](){return this[x]-this[v]}get[I](){return this[Q].length-this[v]}get[b](){return!!this[K]&&!this[S]&&!this[K].destroyed}get[f](){return Boolean(this[K]?.busy(null)||this[I]>=(getPipelining(this)||1)||this[B]>0)}[y](e){connect(this);this.once("connect",e)}[Y](e,t){const r=e.origin||this[m].origin;const n=new c(r,e,t);this[Q].push(n);if(this[C]){}else if(o.bodyLength(n.body)==null&&o.isIterable(n.body)){this[C]=1;queueMicrotask((()=>resume(this)))}else{this[Z](true)}if(this[C]&&this[w]!==2&&this[f]){this[w]=2}return this[w]<2}async[V](){return new Promise((e=>{if(this[I]){this[ne]=e}else{e(null)}}))}async[G](e){return new Promise((t=>{const r=this[Q].splice(this[x]);for(let t=0;t{if(this[ne]){this[ne]();this[ne]=null}t(null)};if(this[K]){this[K].destroy(e,callback);this[K]=null}else{queueMicrotask(callback)}this[Z]()}))}}const se=r(5092);function onError(e,t){if(e[E]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[x]===e[v]);const r=e[Q].splice(e[v]);for(let n=0;n{e[H]({host:t,hostname:r,protocol:i,port:c,servername:e[h],localAddress:e[W]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){o.destroy(s.on("error",noop),new d);return}n(s);try{e[K]=s.alpnProtocol==="h2"?await te(e,s):await ee(e,s)}catch(e){s.destroy().on("error",noop);throw e}e[S]=false;s[q]=0;s[z]=e[z];s[g]=e;s[D]=null;if(a.connected.hasSubscribers){a.connected.publish({connectParams:{host:t,hostname:r,protocol:i,port:c,version:e[K]?.version,servername:e[h],localAddress:e[W]},connector:e[H],socket:s})}e.emit("connect",e[m],[e])}catch(s){if(e.destroyed){return}e[S]=false;if(a.connectError.hasSubscribers){a.connectError.publish({connectParams:{host:t,hostname:r,protocol:i,port:c,version:e[K]?.version,servername:e[h],localAddress:e[W]},connector:e[H],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[E]===0);while(e[B]>0&&e[Q][e[x]].servername===e[h]){const t=e[Q][e[x]++];o.errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[m],[e],s)}e[Z]()}function emitDrain(e){e[w]=0;e.emit("drain",e[m],[e])}function resume(e,t){if(e[C]===2){return}e[C]=2;_resume(e,t);e[C]=0;if(e[v]>256){e[Q].splice(0,e[v]);e[x]-=e[v];e[v]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[B]===0);return}if(e[ne]&&!e[I]){e[ne]();e[ne]=null;return}if(e[K]){e[K].resume()}if(e[f]){e[w]=2}else if(e[w]===2){if(t){e[w]=1;queueMicrotask((()=>emitDrain(e)))}else{emitDrain(e)}continue}if(e[B]===0){return}if(e[E]>=(getPipelining(e)||1)){return}const r=e[Q][e[x]];if(e[m].protocol==="https:"&&e[h]!==r.servername){if(e[E]>0){return}e[h]=r.servername;e[K]?.destroy(new u("servername changed"),(()=>{e[K]=null;resume(e)}))}if(e[S]){return}if(!e[K]){connect(e);return}if(e[K].destroyed){return}if(e[K].busy(r)){return}if(!r.aborted&&e[K].write(r)){e[x]++}else{e[Q].splice(e[x],1)}}}e.exports=Client},1841:(e,t,r)=>{const n=r(883);const{ClientDestroyedError:s,ClientClosedError:i,InvalidArgumentError:o}=r(8707);const{kDestroy:a,kClose:c,kClosed:l,kDestroyed:A,kDispatch:u,kInterceptors:d}=r(6443);const p=Symbol("onDestroyed");const m=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[A]=false;this[p]=null;this[l]=false;this[m]=[]}get destroyed(){return this[A]}get closed(){return this[l]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[d][t];if(typeof e!=="function"){throw new o("interceptor must be an function")}}}this[d]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new o("invalid callback")}if(this[A]){queueMicrotask((()=>e(new s,null)));return}if(this[l]){if(this[m]){this[m].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[l]=true;this[m].push(e);const onClosed=()=>{const e=this[m];this[m]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new o("invalid callback")}if(this[A]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[A]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[d]||this[d].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--){r=this[d][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new o("handler must be an object")}try{if(!e||typeof e!=="object"){throw new o("opts must be an object.")}if(this[A]||this[p]){throw new s}if(this[l]){throw new i}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new o("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},883:(e,t,r)=>{const n=r(8474);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const t=Array.isArray(e[0])?e[0]:e;let r=this.dispatch.bind(this);for(const e of t){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}r=e(r);if(r==null||typeof r!=="function"||r.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,r)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(e,t){super();this.#e=e;this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}}e.exports=Dispatcher},3137:(e,t,r)=>{const n=r(1841);const{kClose:s,kDestroy:i,kClosed:o,kDestroyed:a,kDispatch:c,kNoProxyAgent:l,kHttpProxyAgent:A,kHttpsProxyAgent:u}=r(6443);const d=r(6672);const p=r(7405);const m={"http:":80,"https:":443};let h=false;class EnvHttpProxyAgent extends n{#r=null;#n=null;#s=null;constructor(e={}){super();this.#s=e;if(!h){h=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:t,httpsProxy:r,noProxy:n,...s}=e;this[l]=new p(s);const i=t??process.env.http_proxy??process.env.HTTP_PROXY;if(i){this[A]=new d({...s,uri:i})}else{this[A]=this[l]}const o=r??process.env.https_proxy??process.env.HTTPS_PROXY;if(o){this[u]=new d({...s,uri:o})}else{this[u]=this[A]}this.#i()}[c](e,t){const r=new URL(e.origin);const n=this.#o(r);return n.dispatch(e,t)}async[s](){await this[l].close();if(!this[A][o]){await this[A].close()}if(!this[u][o]){await this[u].close()}}async[i](e){await this[l].destroy(e);if(!this[A][a]){await this[A].destroy(e)}if(!this[u][a]){await this[u].destroy(e)}}#o(e){let{protocol:t,host:r,port:n}=e;r=r.replace(/:\d*$/,"").toLowerCase();n=Number.parseInt(n,10)||m[t]||0;if(!this.#a(r,n)){return this[l]}if(t==="https:"){return this[u]}return this[A]}#a(e,t){if(this.#c){this.#i()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let r=0;r{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},2128:(e,t,r)=>{const n=r(1841);const s=r(4660);const{kConnected:i,kSize:o,kRunning:a,kPending:c,kQueued:l,kBusy:A,kFree:u,kUrl:d,kClose:p,kDestroy:m,kDispatch:h}=r(6443);const g=r(3246);const f=Symbol("clients");const y=Symbol("needDrain");const C=Symbol("queue");const E=Symbol("closed resolve");const B=Symbol("onDrain");const I=Symbol("onConnect");const Q=Symbol("onDisconnect");const b=Symbol("onConnectionError");const S=Symbol("get dispatcher");const w=Symbol("add client");const N=Symbol("remove client");const R=Symbol("stats");class PoolBase extends n{constructor(){super();this[C]=new s;this[f]=[];this[l]=0;const e=this;this[B]=function onDrain(t,r){const n=e[C];let s=false;while(!s){const t=n.shift();if(!t){break}e[l]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[E]&&n.isEmpty()){Promise.all(e[f].map((e=>e.close()))).then(e[E])}};this[I]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[b]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[R]=new g(this)}get[A](){return this[y]}get[i](){return this[f].filter((e=>e[i])).length}get[u](){return this[f].filter((e=>e[i]&&!e[y])).length}get[c](){let e=this[l];for(const{[c]:t}of this[f]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[f]){e+=t}return e}get[o](){let e=this[l];for(const{[o]:t}of this[f]){e+=t}return e}get stats(){return this[R]}async[p](){if(this[C].isEmpty()){await Promise.all(this[f].map((e=>e.close())))}else{await new Promise((e=>{this[E]=e}))}}async[m](e){while(true){const t=this[C].shift();if(!t){break}t.handler.onError(e)}await Promise.all(this[f].map((t=>t.destroy(e))))}[h](e,t){const r=this[S]();if(!r){this[y]=true;this[C].push({opts:e,handler:t});this[l]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[S]()}return!this[y]}[w](e){e.on("drain",this[B]).on("connect",this[I]).on("disconnect",this[Q]).on("connectionError",this[b]);this[f].push(e);if(this[y]){queueMicrotask((()=>{if(this[y]){this[B](e[d],[this,e])}}))}return this}[N](e){e.close((()=>{const t=this[f].indexOf(e);if(t!==-1){this[f].splice(t,1)}}));this[y]=this[f].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:f,kNeedDrain:y,kAddClient:w,kRemoveClient:N,kGetDispatcher:S}},3246:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:i,kQueued:o,kRunning:a,kSize:c}=r(6443);const l=Symbol("pool");class PoolStats{constructor(e){this[l]=e}get connected(){return this[l][s]}get free(){return this[l][n]}get pending(){return this[l][i]}get queued(){return this[l][o]}get running(){return this[l][a]}get size(){return this[l][c]}}e.exports=PoolStats},628:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:i,kAddClient:o,kGetDispatcher:a}=r(2128);const c=r(3701);const{InvalidArgumentError:l}=r(8707);const A=r(3440);const{kUrl:u,kInterceptors:d}=r(6443);const p=r(9136);const m=Symbol("options");const h=Symbol("connections");const g=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:c,autoSelectFamily:f,autoSelectFamilyAttemptTimeout:y,allowH2:C,...E}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new l("invalid connections")}if(typeof r!=="function"){throw new l("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new l("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:a,allowH2:C,socketPath:c,timeout:i,...f?{autoSelectFamily:f,autoSelectFamilyAttemptTimeout:y}:undefined,...n})}this[d]=E.interceptors?.Pool&&Array.isArray(E.interceptors.Pool)?E.interceptors.Pool:[];this[h]=t||null;this[u]=A.parseOrigin(e);this[m]={...A.deepClone(E),connect:n,allowH2:C};this[m].interceptors=E.interceptors?{...E.interceptors}:undefined;this[g]=r;this.on("connectionError",((e,t,r)=>{for(const e of t){const t=this[s].indexOf(e);if(t!==-1){this[s].splice(t,1)}}}))}[a](){for(const e of this[s]){if(!e[i]){return e}}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:i,kDispatch:o,kInterceptors:a}=r(6443);const{URL:c}=r(3136);const l=r(7405);const A=r(628);const u=r(1841);const{InvalidArgumentError:d,RequestAbortedError:p,SecureProxyConnectionError:m}=r(8707);const h=r(9136);const g=r(3701);const f=Symbol("proxy agent");const y=Symbol("proxy client");const C=Symbol("proxy headers");const E=Symbol("request tls settings");const B=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");const Q=Symbol("tunnel proxy");function defaultProtocolPort(e){return e==="https:"?443:80}function defaultFactory(e,t){return new A(e,t)}const noop=()=>{};function defaultAgentFactory(e,t){if(t.connections===1){return new g(e,t)}return new A(e,t)}class Http1ProxyWrapper extends u{#A;constructor(e,{headers:t={},connect:r,factory:n}){super();if(!e){throw new d("Proxy URL is mandatory")}this[C]=t;if(n){this.#A=n(e,{connect:r})}else{this.#A=new g(e,{connect:r})}}[o](e,t){const r=t.onHeaders;t.onHeaders=function(e,n,s){if(e===407){if(typeof t.onError==="function"){t.onError(new d("Proxy Authentication Required (407)"))}return}if(r)r.call(this,e,n,s)};const{origin:n,path:s="/",headers:i={}}=e;e.path=n+s;if(!("host"in i)&&!("Host"in i)){const{host:e}=new c(n);i.host=e}e.headers={...this[C],...i};return this.#A[o](e,t)}async[s](){return this.#A.close()}async[i](e){return this.#A.destroy(e)}}class ProxyAgent extends u{constructor(e){super();if(!e||typeof e==="object"&&!(e instanceof c)&&!e.uri){throw new d("Proxy uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new d("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:r=true}=e;const s=this.#u(e);const{href:i,origin:o,port:A,protocol:u,username:g,password:b,hostname:S}=s;this[n]={uri:i,protocol:u};this[a]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];this[E]=e.requestTls;this[B]=e.proxyTls;this[C]=e.headers||{};this[Q]=r;if(e.auth&&e.token){throw new d("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[C]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[C]["proxy-authorization"]=e.token}else if(g&&b){this[C]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(b)}`).toString("base64")}`}const w=h({...e.proxyTls});this[I]=h({...e.requestTls});const N=e.factory||defaultAgentFactory;const factory=(e,t)=>{const{protocol:r}=new c(e);if(!this[Q]&&r==="http:"&&this[n].protocol==="http:"){return new Http1ProxyWrapper(this[n].uri,{headers:this[C],connect:w,factory:N})}return N(e,t)};this[y]=t(s,{connect:w});this[f]=new l({...e,factory:factory,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:s}=await this[y].connect({origin:o,port:A,path:r,signal:e.signal,headers:{...this[C],host:e.host},servername:this[B]?.servername||S});if(s!==200){n.on("error",noop).destroy();t(new p(`Proxy response (${s}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let i;if(this[E]){i=this[E].servername}else{i=e.servername}this[I]({...e,servername:i,httpSocket:n},t)}catch(e){if(e.code==="ERR_TLS_CERT_ALTNAME_INVALID"){t(new m(e))}else{t(e)}}}})}dispatch(e,t){const r=buildHeaders(e.headers);throwIfProxyAuthIsSent(r);if(r&&!("host"in r)&&!("Host"in r)){const{host:t}=new c(e.origin);r.host=t}return this[f].dispatch({...e,headers:r},t)}#u(e){if(typeof e==="string"){return new c(e)}else if(e instanceof c){return e}else{return new c(e.uri)}}async[s](){await this[f].close();await this[y].close()}async[i](){await this[f].destroy();await this[y].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new d("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},50:(e,t,r)=>{const n=r(883);const s=r(7816);class RetryAgent extends n{#d=null;#p=null;constructor(e,t={}){super(t);this.#d=e;this.#p=t}dispatch(e,t){const r=new s({...e,retryOptions:this.#p},{dispatch:this.#d.dispatch.bind(this.#d),handler:t});return this.#d.dispatch(e,r)}close(){return this.#d.close()}destroy(){return this.#d.destroy()}}e.exports=RetryAgent},2581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(8707);const i=r(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new i)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:e=>{e.exports=class DecoratorHandler{#m;constructor(e){if(typeof e!=="object"||e===null){throw new TypeError("handler must be an object")}this.#m=e}onConnect(...e){return this.#m.onConnect?.(...e)}onError(...e){return this.#m.onError?.(...e)}onUpgrade(...e){return this.#m.onUpgrade?.(...e)}onResponseStarted(...e){return this.#m.onResponseStarted?.(...e)}onHeaders(...e){return this.#m.onHeaders?.(...e)}onData(...e){return this.#m.onData?.(...e)}onComplete(...e){return this.#m.onComplete?.(...e)}onBodySent(...e){return this.#m.onBodySent?.(...e)}}},8754:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(6443);const i=r(4589);const{InvalidArgumentError:o}=r(8707);const a=r(8474);const c=[300,301,302,303,307,308];const l=Symbol("body");class BodyAsyncIterable{constructor(e){this[l]=e;this[s]=false}async*[Symbol.asyncIterator](){i(!this[s],"disturbed");this[s]=true;yield*this[l]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new o("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];this.redirectionLimitReached=false;if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){i(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:i,pathname:o,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${o}${a}`:o;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==i);this.opts.path=c;this.opts.origin=i;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(4589);const{kRetryHandlerDefaultRetry:s}=r(6443);const{RequestRetryError:i}=r(8707);const{isDisturbed:o,parseHeaders:a,parseRangeHeader:c,wrapRequestBody:l}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();return new Date(e).getTime()-t}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:i,maxRetries:o,maxTimeout:a,minTimeout:c,timeoutFactor:A,methods:u,errorCodes:d,retryAfter:p,statusCodes:m}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts={...n,body:l(e.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:i??RetryHandler[s],retryAfter:p??true,maxTimeout:a??30*1e3,minTimeout:c??500,timeoutFactor:A??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:m??[500,502,503,504,429],errorCodes:d??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:i,headers:o}=e;const{method:a,retryOptions:c}=r;const{maxRetries:l,minTimeout:A,maxTimeout:u,timeoutFactor:d,statusCodes:p,errorCodes:m,methods:h}=c;const{counter:g}=t;if(i&&i!=="UND_ERR_REQ_RETRY"&&!m.includes(i)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(g>l){n(e);return}let f=o?.["retry-after"];if(f){f=Number(f);f=Number.isNaN(f)?calculateRetryAfterHeader(f):f*1e3}const y=f>0?Math.min(f,u):Math.min(A*d**(g-1),u);setTimeout((()=>n(null)),y)}onHeaders(e,t,r,s){const o=a(t);this.retryCount+=1;if(e>=300){if(this.retryOpts.statusCodes.includes(e)===false){return this.handler.onHeaders(e,t,r,s)}else{this.abort(new i("Request failed",e,{headers:o,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(e!==206&&(this.start>0||e!==200)){this.abort(new i("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}}));return false}const t=c(o["content-range"]);if(!t){this.abort(new i("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==o.etag){this.abort(new i("ETag mismatch",e,{headers:o,data:{count:this.retryCount}}));return false}const{start:s,size:a,end:l=a-1}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===l,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const i=c(o["content-range"]);if(i==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:l,end:A=l-1}=i;n(a!=null&&Number.isFinite(a),"content-range mismatch");n(A!=null&&Number.isFinite(A),"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=o["content-length"];this.end=e!=null?Number(e)-1:null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=o.etag!=null?o.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(e,t,r,s)}const l=new i("Request failed",e,{headers:o,data:{count:this.retryCount}});this.abort(l);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||o(this.opts.body)){return this.handler.onError(e)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||o(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){const e={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){e["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},379:(e,t,r)=>{const{isIP:n}=r(7030);const{lookup:s}=r(610);const i=r(8155);const{InvalidArgumentError:o,InformationalError:a}=r(8707);const c=Math.pow(2,31)-1;class DNSInstance{#h=0;#g=0;#f=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(e){this.#h=e.maxTTL;this.#g=e.maxItems;this.dualStack=e.dualStack;this.affinity=e.affinity;this.lookup=e.lookup??this.#y;this.pick=e.pick??this.#C}get full(){return this.#f.size===this.#g}runLookup(e,t,r){const n=this.#f.get(e.hostname);if(n==null&&this.full){r(null,e.origin);return}const s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#h,maxItems:this.#g};if(n==null){this.lookup(e,s,((t,n)=>{if(t||n==null||n.length===0){r(t??new a("No DNS entries found"));return}this.setRecords(e,n);const i=this.#f.get(e.hostname);const o=this.pick(e,i,s.affinity);let c;if(typeof o.port==="number"){c=`:${o.port}`}else if(e.port!==""){c=`:${e.port}`}else{c=""}r(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${c}`)}))}else{const i=this.pick(e,n,s.affinity);if(i==null){this.#f.delete(e.hostname);this.runLookup(e,t,r);return}let o;if(typeof i.port==="number"){o=`:${i.port}`}else if(e.port!==""){o=`:${e.port}`}else{o=""}r(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#y(e,t,r){s(e.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((e,t)=>{if(e){return r(e)}const n=new Map;for(const e of t){n.set(`${e.address}:${e.family}`,e)}r(null,n.values())}))}#C(e,t,r){let n=null;const{records:s,offset:i}=t;let o;if(this.dualStack){if(r==null){if(i==null||i===c){t.offset=0;r=4}else{t.offset++;r=(t.offset&1)===1?6:4}}if(s[r]!=null&&s[r].ips.length>0){o=s[r]}else{o=s[r===4?6:4]}}else{o=s[r]}if(o==null||o.ips.length===0){return n}if(o.offset==null||o.offset===c){o.offset=0}else{o.offset++}const a=o.offset%o.ips.length;n=o.ips[a]??null;if(n==null){return n}if(Date.now()-n.timestamp>n.ttl){o.ips.splice(a,1);return this.pick(e,t,r)}return n}setRecords(e,t){const r=Date.now();const n={records:{4:null,6:null}};for(const e of t){e.timestamp=r;if(typeof e.ttl==="number"){e.ttl=Math.min(e.ttl,this.#h)}else{e.ttl=this.#h}const t=n.records[e.family]??{ips:[]};t.ips.push(e);n.records[e.family]=t}this.#f.set(e.hostname,n)}getHandler(e,t){return new DNSDispatchHandler(this,e,t)}}class DNSDispatchHandler extends i{#E=null;#s=null;#t=null;#m=null;#B=null;constructor(e,{origin:t,handler:r,dispatch:n},s){super(r);this.#B=t;this.#m=r;this.#s={...s};this.#E=e;this.#t=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#E.dualStack){this.#E.runLookup(this.#B,this.#s,((e,t)=>{if(e){return this.#m.onError(e)}const r={...this.#s,origin:t};this.#t(r,this)}));return}this.#m.onError(e);return}case"ENOTFOUND":this.#E.deleteRecord(this.#B);default:this.#m.onError(e);break}}}e.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0)){throw new o("Invalid maxTTL. Must be a positive number")}if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1)){throw new o("Invalid maxItems. Must be a positive number and greater than zero")}if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6){throw new o("Invalid affinity. Must be either 4 or 6")}if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean"){throw new o("Invalid dualStack. Must be a boolean")}if(e?.lookup!=null&&typeof e?.lookup!=="function"){throw new o("Invalid lookup. Must be a function")}if(e?.pick!=null&&typeof e?.pick!=="function"){throw new o("Invalid pick. Must be a function")}const t=e?.dualStack??true;let r;if(t){r=e?.affinity??null}else{r=e?.affinity??4}const s={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??Infinity};const i=new DNSInstance(s);return e=>function dnsInterceptor(t,r){const s=t.origin.constructor===URL?t.origin:new URL(t.origin);if(n(s.hostname)!==0){return e(t,r)}i.runLookup(s,t,((n,o)=>{if(n){return r.onError(n)}let a=null;a={...t,servername:s.hostname,origin:o,headers:{host:s.hostname,...t.headers}};e(a,i.getHandler({origin:s,dispatch:e,handler:r},t))}));return true}}},8060:(e,t,r)=>{const n=r(3440);const{InvalidArgumentError:s,RequestAbortedError:i}=r(8707);const o=r(8155);class DumpHandler extends o{#I=1024*1024;#Q=null;#b=false;#S=false;#w=0;#N=null;#m=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1)){throw new s("maxSize must be a number greater than 0")}this.#I=e??this.#I;this.#m=t}onConnect(e){this.#Q=e;this.#m.onConnect(this.#R.bind(this))}#R(e){this.#S=true;this.#N=e}onHeaders(e,t,r,s){const o=n.parseHeaders(t);const a=o["content-length"];if(a!=null&&a>this.#I){throw new i(`Response size (${a}) larger than maxSize (${this.#I})`)}if(this.#S){return true}return this.#m.onHeaders(e,t,r,s)}onError(e){if(this.#b){return}e=this.#N??e;this.#m.onError(e)}onData(e){this.#w=this.#w+e.length;if(this.#w>=this.#I){this.#b=true;if(this.#S){this.#m.onError(this.#N)}else{this.#m.onComplete([])}}return true}onComplete(e){if(this.#b){return}if(this.#S){this.#m.onError(this.reason);return}this.#m.onComplete(e)}}function createDumpInterceptor({maxSize:e}={maxSize:1024*1024}){return t=>function Intercept(r,n){const{dumpMaxSize:s=e}=r;const i=new DumpHandler({maxSize:s},n);return t(r,i)}}e.exports=createDumpInterceptor},5092:(e,t,r)=>{const n=r(8754);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:i=e}=r;if(!i){return t(r,s)}const o=new n(t,i,r,s);r={...r,maxRedirections:0};return t(r,o)}}e.exports=createRedirectInterceptor},1514:(e,t,r)=>{const n=r(8754);e.exports=e=>{const t=e?.maxRedirections;return e=>function redirectInterceptor(r,s){const{maxRedirections:i=t,...o}=r;if(!i){return e(r,s)}const a=new n(e,i,r,s);return e(o,a)}}},2026:(e,t,r)=>{const n=r(7816);e.exports=e=>t=>function retryInterceptor(r,s){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:t}))}},2824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var i;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(i=t.TYPE||(t.TYPE={}));var o;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(o=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var l;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(l=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},3870:(e,t,r)=>{const{Buffer:n}=r(4573);e.exports=n.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX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QQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl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hAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAg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EDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBC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CAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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AkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8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gIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwym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FSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQC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FVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},7501:(e,t,r)=>{const{kClients:n}=r(6443);const s=r(7405);const{kAgent:i,kMockAgentSet:o,kMockAgentGet:a,kDispatches:c,kIsMockActive:l,kNetConnect:A,kGetNetConnect:u,kOptions:d,kFactory:p}=r(1117);const m=r(7365);const h=r(4004);const{matchValue:g,buildMockOptions:f}=r(3397);const{InvalidArgumentError:y,UndiciError:C}=r(8707);const E=r(883);const B=r(1529);const I=r(6142);class MockAgent extends E{constructor(e){super(e);this[A]=true;this[l]=true;if(e?.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e?.agent?e.agent:new s(e);this[i]=t;this[n]=t[n];this[d]=f(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[o](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[i].dispatch(e,t)}async close(){await this[i].close();this[n].clear()}deactivate(){this[l]=false}activate(){this[l]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[l]}[o](e,t){this[n].set(e,t)}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new m(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[o](e,t);return t}for(const[t,r]of Array.from(this[n])){if(r&&typeof t!=="string"&&g(t,e)){const t=this[p](e);this[o](e,t);t[c]=r[c];return t}}}[u](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new I}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new B("interceptor","interceptors").pluralize(t.length);throw new C(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},7365:(e,t,r)=>{const{promisify:n}=r(7975);const s=r(3701);const{buildMockDispatch:i}=r(3397);const{kDispatches:o,kMockAgent:a,kClose:c,kOriginalClose:l,kOrigin:A,kOriginalDispatch:u,kConnected:d}=r(1117);const{MockInterceptor:p}=r(1511);const m=r(6443);const{InvalidArgumentError:h}=r(8707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[o]=[];this[d]=1;this[u]=this.dispatch;this[l]=this.close.bind(this);this.dispatch=i.call(this);this.close=this[c]}get[m.kConnected](){return this[d]}intercept(e){return new p(e,this[o])}async[c](){await n(this[l])();this[d]=0;this[a][m.kClients].delete(this[A])}}e.exports=MockClient},2429:(e,t,r)=>{const{UndiciError:n}=r(8707);const s=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[s]===true}[s]=true}e.exports={MockNotMatchedError:MockNotMatchedError}},1511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:i}=r(3397);const{kDispatches:o,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:l,kContentLength:A,kMockDispatch:u}=r(1117);const{InvalidArgumentError:d}=r(8707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[u]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[u].delay=e;return this}persist(){this[u].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[u].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[o]=t;this[c]={};this[l]={};this[A]=false}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){const s=n(t);const i=this[A]?{"content-length":s.length}:{};const o={...this[c],...i,...r.headers};const a={...this[l],...r.trailers};return{statusCode:e,data:t,headers:o,trailers:a}}validateReplyParameters(e){if(typeof e.statusCode==="undefined"){throw new d("statusCode must be defined")}if(typeof e.responseOptions!=="object"||e.responseOptions===null){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"||r===null){throw new d("reply options callback must return an object")}const n={data:"",responseOptions:{},...r};this.validateReplyParameters(n);return{...this.createMockScopeDispatchData(n)}};const t=i(this[o],this[a],wrappedDefaultsCallback);return new MockScope(t)}const t={statusCode:e,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(t);const r=this.createMockScopeDispatchData(t);const n=i(this[o],this[a],r);return new MockScope(n)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=i(this[o],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[l]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},4004:(e,t,r)=>{const{promisify:n}=r(7975);const s=r(628);const{buildMockDispatch:i}=r(3397);const{kDispatches:o,kMockAgent:a,kClose:c,kOriginalClose:l,kOrigin:A,kOriginalDispatch:u,kConnected:d}=r(1117);const{MockInterceptor:p}=r(1511);const m=r(6443);const{InvalidArgumentError:h}=r(8707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[o]=[];this[d]=1;this[u]=this.dispatch;this[l]=this.close.bind(this);this.dispatch=i.call(this);this.close=this[c]}get[m.kConnected](){return this[d]}intercept(e){return new p(e,this[o])}async[c](){await n(this[l])();this[d]=0;this[a][m.kClients].delete(this[A])}}e.exports=MockPool},1117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(e,t,r)=>{const{MockNotMatchedError:n}=r(2429);const{kDispatches:s,kMockAgent:i,kOriginalDispatch:o,kOrigin:a,kGetNetConnect:c}=r(1117);const{buildURL:l}=r(3440);const{STATUS_CODES:A}=r(7067);const{types:{isPromise:u}}=r(7975);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(i.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}i=i.filter((({method:e})=>matchValue(e,t.method)));if(i.length===0){throw new n(`Mock dispatch not matched for method '${t.method}' on path '${s}'`)}i=i.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(i.length===0){throw new n(`Mock dispatch not matched for body '${t.body}' on path '${s}'`)}i=i.filter((e=>matchHeaders(e,t.headers)));if(i.length===0){const e=typeof t.headers==="object"?JSON.stringify(t.headers):t.headers;throw new n(`Mock dispatch not matched for headers '${e}' on path '${s}'`)}return i[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const i={...n,...t,pending:true,data:{error:null,...s}};e.push(i);return i}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:i}=e;return{path:t,method:r,body:n,headers:s,query:i}}function generateKeyValues(e){const t=Object.keys(e);const r=[];for(let n=0;n=m;n.pending=p0){setTimeout((()=>{handleReply(this[s])}),A)}else{handleReply(this[s])}function handleReply(n,s=o){const l=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const A=typeof s==="function"?s({...e,headers:l}):s;if(u(A)){A.then((e=>handleReply(n,e)));return}const d=getResponseData(A);const p=generateKeyValues(a);const m=generateKeyValues(c);t.onConnect?.((e=>t.onError(e)),null);t.onHeaders?.(i,p,resume,getStatusText(i));t.onData?.(Buffer.from(d));t.onComplete?.(m);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[i];const t=this[a];const r=this[o];return function dispatch(s,i){if(e.isMockActive){try{mockDispatch.call(this,s,i)}catch(o){if(o instanceof n){const a=e[c]();if(a===false){throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,i)}else{throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw o}}}else{r.call(this,s,i)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(e,t,r)=>{const{Transform:n}=r(7075);const{Console:s}=r(7540);const i=process.versions.icu?"✅":"Y ";const o=process.versions.icu?"❌":"N ";e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:a,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":r,Persistent:n?i:o,Invocations:a,Remaining:n?Infinity:s-a})));this.logger.table(t);return this.transform.read().toString()}}},1529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const i=n?this.singular:this.plural;return{...s,count:e,noun:i}}}},6603:e=>{let t=0;const r=1e3;const n=(r>>1)-1;let s;const i=Symbol("kFastTimer");const o=[];const a=-2;const c=-1;const l=0;const A=1;function onTick(){t+=n;let e=0;let r=o.length;while(e=s._idleStart+s._idleTimeout){s._state=c;s._idleStart=-1;s._onTimeout(s._timerArg)}if(s._state===c){s._state=a;if(--r!==0){o[e]=o[r]}}else{++e}}o.length=r;if(o.length!==0){refreshTimeout()}}function refreshTimeout(){if(s){s.refresh()}else{clearTimeout(s);s=setTimeout(onTick,n);if(s.unref){s.unref()}}}class FastTimer{[i]=true;_state=a;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,r){this._onTimeout=e;this._idleTimeout=t;this._timerArg=r;this.refresh()}refresh(){if(this._state===a){o.push(this)}if(!s||o.length===1){refreshTimeout()}this._state=l}clear(){this._state=c;this._idleStart=-1}}e.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new FastTimer(e,t,n)},clearTimeout(e){if(e[i]){e.clear()}else{clearTimeout(e)}},setFastTimeout(e,t,r){return new FastTimer(e,t,r)},clearFastTimeout(e){e.clear()},now(){return t},tick(e=0){t+=e-r+1;onTick();onTick()},reset(){t=0;o.length=0;clearTimeout(s);s=null},kFastTimer:i}},9634:(e,t,r)=>{const{kConstruct:n}=r(109);const{urlEquals:s,getFieldValues:i}=r(6798);const{kEnumerableProperty:o,isDisturbed:a}=r(3440);const{webidl:c}=r(5893);const{Response:l,cloneResponse:A,fromInnerResponse:u}=r(9051);const{Request:d,fromInnerRequest:p}=r(9967);const{kState:m}=r(3627);const{fetching:h}=r(4398);const{urlIsHttpHttpsScheme:g,createDeferredPromise:f,readAllBytes:y}=r(3168);const C=r(4589);class Cache{#x;constructor(){if(arguments[0]!==n){c.illegalConstructor()}c.util.markAsUncloneable(this);this.#x=arguments[1]}async match(e,t={}){c.brandCheck(this,Cache);const r="Cache.match";c.argumentLengthCheck(arguments,1,r);e=c.converters.RequestInfo(e,r,"request");t=c.converters.CacheQueryOptions(t,r,"options");const n=this.#v(e,t,1);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){c.brandCheck(this,Cache);const r="Cache.matchAll";if(e!==undefined)e=c.converters.RequestInfo(e,r,"request");t=c.converters.CacheQueryOptions(t,r,"options");return this.#v(e,t)}async add(e){c.brandCheck(this,Cache);const t="Cache.add";c.argumentLengthCheck(arguments,1,t);e=c.converters.RequestInfo(e,t,"request");const r=[e];const n=this.addAll(r);return await n}async addAll(e){c.brandCheck(this,Cache);const t="Cache.addAll";c.argumentLengthCheck(arguments,1,t);const r=[];const n=[];for(let r of e){if(r===undefined){throw c.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]})}r=c.converters.RequestInfo(r);if(typeof r==="string"){continue}const e=r[m];if(!g(e.url)||e.method!=="GET"){throw c.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}}const s=[];for(const o of e){const e=new d(o)[m];if(!g(e.url)){throw c.errors.exception({header:t,message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const a=f();s.push(h({request:e,processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){a.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=i(e.headersList.get("vary"));for(const e of t){if(e==="*"){a.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of s){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){a.reject(new DOMException("aborted","AbortError"));return}a.resolve(e)}}));r.push(a.promise)}const o=Promise.all(r);const a=await o;const l=[];let A=0;for(const e of a){const t={type:"put",request:n[A],response:e};l.push(t);A++}const u=f();let p=null;try{this.#D(l)}catch(e){p=e}queueMicrotask((()=>{if(p===null){u.resolve(undefined)}else{u.reject(p)}}));return u.promise}async put(e,t){c.brandCheck(this,Cache);const r="Cache.put";c.argumentLengthCheck(arguments,2,r);e=c.converters.RequestInfo(e,r,"request");t=c.converters.Response(t,r,"response");let n=null;if(e instanceof d){n=e[m]}else{n=new d(e)[m]}if(!g(n.url)||n.method!=="GET"){throw c.errors.exception({header:r,message:"Expected an http/s scheme when method is not GET"})}const s=t[m];if(s.status===206){throw c.errors.exception({header:r,message:"Got 206 status"})}if(s.headersList.contains("vary")){const e=i(s.headersList.get("vary"));for(const t of e){if(t==="*"){throw c.errors.exception({header:r,message:"Got * vary field value"})}}}if(s.body&&(a(s.body.stream)||s.body.stream.locked)){throw c.errors.exception({header:r,message:"Response body is locked or disturbed"})}const o=A(s);const l=f();if(s.body!=null){const e=s.body.stream;const t=e.getReader();y(t).then(l.resolve,l.reject)}else{l.resolve(undefined)}const u=[];const p={type:"put",request:n,response:o};u.push(p);const h=await l.promise;if(o.body!=null){o.body.source=h}const C=f();let E=null;try{this.#D(u)}catch(e){E=e}queueMicrotask((()=>{if(E===null){C.resolve()}else{C.reject(E)}}));return C.promise}async delete(e,t={}){c.brandCheck(this,Cache);const r="Cache.delete";c.argumentLengthCheck(arguments,1,r);e=c.converters.RequestInfo(e,r,"request");t=c.converters.CacheQueryOptions(t,r,"options");let n=null;if(e instanceof d){n=e[m];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{C(typeof e==="string");n=new d(e)[m]}const s=[];const i={type:"delete",request:n,options:t};s.push(i);const o=f();let a=null;let l;try{l=this.#D(s)}catch(e){a=e}queueMicrotask((()=>{if(a===null){o.resolve(!!l?.length)}else{o.reject(a)}}));return o.promise}async keys(e=undefined,t={}){c.brandCheck(this,Cache);const r="Cache.keys";if(e!==undefined)e=c.converters.RequestInfo(e,r,"request");t=c.converters.CacheQueryOptions(t,r,"options");let n=null;if(e!==undefined){if(e instanceof d){n=e[m];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new d(e)[m]}}const s=f();const i=[];if(e===undefined){for(const e of this.#x){i.push(e[0])}}else{const e=this.#k(n,t);for(const t of e){i.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of i){const r=p(t,(new AbortController).signal,"immutable");e.push(r)}s.resolve(Object.freeze(e))}));return s.promise}#D(e){const t=this.#x;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#k(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#k(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);C(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!g(s.url)){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#k(r.request);for(const r of e){const e=t.indexOf(r);C(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#x.length=0;this.#x=r;throw e}}#k(e,t,r){const n=[];const s=r??this.#x;for(const r of s){const[s,i]=r;if(this.#T(e,s,i,t)){n.push(r)}}return n}#T(e,t,r=null,n){const o=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";o.search=""}if(!s(o,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=i(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}#v(e,t,r=Infinity){let n=null;if(e!==undefined){if(e instanceof d){n=e[m];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new d(e)[m]}}const s=[];if(e===undefined){for(const e of this.#x){s.push(e[1])}}else{const e=this.#k(n,t);for(const t of e){s.push(t[1])}}const i=[];for(const e of s){const t=u(e,"immutable");i.push(t.clone());if(i.length>=r){break}}return Object.freeze(i)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:o,matchAll:o,add:o,addAll:o,put:o,delete:o,keys:o});const E=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:()=>false}];c.converters.CacheQueryOptions=c.dictionaryConverter(E);c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...E,{key:"cacheName",converter:c.converters.DOMString}]);c.converters.Response=c.interfaceConverter(l);c.converters["sequence"]=c.sequenceConverter(c.converters.RequestInfo);e.exports={Cache:Cache}},3245:(e,t,r)=>{const{kConstruct:n}=r(109);const{Cache:s}=r(9634);const{webidl:i}=r(5893);const{kEnumerableProperty:o}=r(3440);class CacheStorage{#P=new Map;constructor(){if(arguments[0]!==n){i.illegalConstructor()}i.util.markAsUncloneable(this)}async match(e,t={}){i.brandCheck(this,CacheStorage);i.argumentLengthCheck(arguments,1,"CacheStorage.match");e=i.converters.RequestInfo(e);t=i.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#P.has(t.cacheName)){const r=this.#P.get(t.cacheName);const i=new s(n,r);return await i.match(e,t)}}else{for(const r of this.#P.values()){const i=new s(n,r);const o=await i.match(e,t);if(o!==undefined){return o}}}}async has(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.has";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");return this.#P.has(e)}async open(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.open";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");if(this.#P.has(e)){const t=this.#P.get(e);return new s(n,t)}const r=[];this.#P.set(e,r);return new s(n,r)}async delete(e){i.brandCheck(this,CacheStorage);const t="CacheStorage.delete";i.argumentLengthCheck(arguments,1,t);e=i.converters.DOMString(e,t,"cacheName");return this.#P.delete(e)}async keys(){i.brandCheck(this,CacheStorage);const e=this.#P.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:o,has:o,open:o,delete:o,keys:o});e.exports={CacheStorage:CacheStorage}},109:(e,t,r)=>{e.exports={kConstruct:r(6443).kConstruct}},6798:(e,t,r)=>{const n=r(4589);const{URLSerializer:s}=r(1900);const{isValidHeaderName:i}=r(3168);function urlEquals(e,t,r=false){const n=s(e,r);const i=s(t,r);return n===i}function getFieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(i(r)){t.push(r)}}return t}e.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},9061:(e,t,r)=>{const{parseSetCookie:n}=r(1978);const{stringify:s}=r(7797);const{webidl:i}=r(5893);const{Headers:o}=r(660);function getCookies(e){i.argumentLengthCheck(arguments,1,"getCookies");i.brandCheck(e,o,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.brandCheck(e,o,{strict:false});const n="deleteCookie";i.argumentLengthCheck(arguments,2,n);t=i.converters.DOMString(t,n,"name");r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,"getSetCookies");i.brandCheck(e,o,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>n(e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,"setCookie");i.brandCheck(e,o,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",r)}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:()=>null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:()=>null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(1276);const{isCTLExcludingHtab:i}=r(7797);const{collectASequenceOfCodePointsFast:o}=r(1900);const a=r(4589);function parseSetCookie(e){if(i(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=o(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=o("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=o(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let i="";if(r.includes("=")){const e={position:0};n=o("=",r,e);i=r.slice(e.position+1)}else{n=r}n=n.trim();i=i.trim();if(i.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(i);t.expires=e}else if(c==="max-age"){const r=i.charCodeAt(0);if((r<48||r>57)&&i[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(i)){return parseUnparsedAttributes(e,t)}const n=Number(i);t.maxAge=n}else if(c==="domain"){let e=i;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(i.length===0||i[0]!=="/"){e="/"}else{e=i}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=i.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${i}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:e=>{function isCTLExcludingHtab(e){for(let t=0;t=0&&r<=8||r>=10&&r<=31||r===127){return true}}return false}function validateCookieName(e){for(let t=0;t126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){let t=e.length;let r=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"'){throw new Error("Invalid cookie value")}--t;++r}while(r126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;tt.toString().padStart(2,"0")));function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}return`${t[e.getUTCDay()]}, ${n[e.getUTCDate()]} ${r[e.getUTCMonth()]} ${e.getUTCFullYear()} ${n[e.getUTCHours()]}:${n[e.getUTCMinutes()]}:${n[e.getUTCSeconds()]} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(e,t,r)=>{const{Transform:n}=r(7075);const{isASCIINumber:s,isValidLastEventId:i}=r(4811);const o=[239,187,191];const a=10;const c=13;const l=58;const A=32;class EventSourceStream extends n{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(e={}){e.readableObjectMode=true;super(e);this.state=e.eventSourceSettings||{};if(e.push){this.push=e.push}}_transform(e,t,r){if(e.length===0){r();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,e])}else{this.buffer=e}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===o[0]){r();return}this.checkBOM=false;r();return;case 2:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]){r();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;r();return}this.checkBOM=false;break;default:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){t[n]=o}break}}processEvent(e){if(e.retry&&s(e.retry)){this.state.reconnectionTime=parseInt(e.retry,10)}if(e.id&&i(e.id)){this.state.lastEventId=e.id}if(e.data!==undefined){this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}e.exports={EventSourceStream:EventSourceStream}},1238:(e,t,r)=>{const{pipeline:n}=r(7075);const{fetching:s}=r(4398);const{makeRequest:i}=r(9967);const{webidl:o}=r(5893);const{EventSourceStream:a}=r(4031);const{parseMIMEType:c}=r(1900);const{createFastMessageEvent:l}=r(5188);const{isNetworkError:A}=r(9051);const{delay:u}=r(4811);const{kEnumerableProperty:d}=r(3440);const{environmentSettingsObject:p}=r(3168);let m=false;const h=3e3;const g=0;const f=1;const y=2;const C="anonymous";const E="use-credentials";class EventSource extends EventTarget{#M={open:null,error:null,message:null};#L=null;#F=false;#U=g;#O=null;#H=null;#e;#E;constructor(e,t={}){super();o.util.markAsUncloneable(this);const r="EventSource constructor";o.argumentLengthCheck(arguments,1,r);if(!m){m=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}e=o.converters.USVString(e,r,"url");t=o.converters.EventSourceInitDict(t,r,"eventSourceInitDict");this.#e=t.dispatcher;this.#E={lastEventId:"",reconnectionTime:h};const n=p;let s;try{s=new URL(e,n.settingsObject.baseUrl);this.#E.origin=s.origin}catch(e){throw new DOMException(e,"SyntaxError")}this.#L=s.href;let a=C;if(t.withCredentials){a=E;this.#F=true}const c={redirect:"follow",keepalive:true,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=p.settingsObject;c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];c.cache="no-store";c.initiator="other";c.urlList=[new URL(this.#L)];this.#O=i(c);this.#_()}get readyState(){return this.#U}get url(){return this.#L}get withCredentials(){return this.#F}#_(){if(this.#U===y)return;this.#U=g;const e={request:this.#O,dispatcher:this.#e};const processEventSourceEndOfBody=e=>{if(A(e)){this.dispatchEvent(new Event("error"));this.close()}this.#z()};e.processResponseEndOfBody=processEventSourceEndOfBody;e.processResponse=e=>{if(A(e)){if(e.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#z();return}}const t=e.headersList.get("content-type",true);const r=t!==null?c(t):"failure";const s=r!=="failure"&&r.essence==="text/event-stream";if(e.status!==200||s===false){this.close();this.dispatchEvent(new Event("error"));return}this.#U=f;this.dispatchEvent(new Event("open"));this.#E.origin=e.urlList[e.urlList.length-1].origin;const i=new a({eventSourceSettings:this.#E,push:e=>{this.dispatchEvent(l(e.type,e.options))}});n(e.body.stream,i,(e=>{if(e?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#H=s(e)}async#z(){if(this.#U===y)return;this.#U=g;this.dispatchEvent(new Event("error"));await u(this.#E.reconnectionTime);if(this.#U!==g)return;if(this.#E.lastEventId.length){this.#O.headersList.set("last-event-id",this.#E.lastEventId,true)}this.#_()}close(){o.brandCheck(this,EventSource);if(this.#U===y)return;this.#U=y;this.#H.abort();this.#O=null}get onopen(){return this.#M.open}set onopen(e){if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onmessage(){return this.#M.message}set onmessage(e){if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get onerror(){return this.#M.error}set onerror(e){if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}}const B={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:g,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:f,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:y,writable:false}};Object.defineProperties(EventSource,B);Object.defineProperties(EventSource.prototype,B);Object.defineProperties(EventSource.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d});o.converters.EventSourceInitDict=o.dictionaryConverter([{key:"withCredentials",converter:o.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:o.converters.any}]);e.exports={EventSource:EventSource,defaultReconnectionTime:h}},4811:e=>{function isValidLastEventId(e){return e.indexOf("\0")===-1}function isASCIINumber(e){if(e.length===0)return false;for(let t=0;t57)return false}return true}function delay(e){return new Promise((t=>{setTimeout(t,e).unref()}))}e.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(e,t,r)=>{const n=r(3440);const{ReadableStreamFrom:s,isBlobLike:i,isReadableStreamLike:o,readableStreamClose:a,createDeferredPromise:c,fullyReadBody:l,extractMimeType:A,utf8DecodeBytes:u}=r(3168);const{FormData:d}=r(5910);const{kState:p}=r(3627);const{webidl:m}=r(5893);const{Blob:h}=r(4573);const g=r(4589);const{isErrored:f,isDisturbed:y}=r(7075);const{isArrayBuffer:C}=r(3429);const{serializeAMimeType:E}=r(1900);const{multipartFormDataParser:B}=r(116);let I;try{const e=r(7598);I=t=>e.randomInt(0,t)}catch{I=e=>Math.floor(Math.random(e))}const Q=new TextEncoder;function noop(){}const b=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let S;if(b){S=new FinalizationRegistry((e=>{const t=e.deref();if(t&&!t.locked&&!y(t)&&!f(t)){t.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(e,t=false){let r=null;if(e instanceof ReadableStream){r=e}else if(i(e)){r=e.stream()}else{r=new ReadableStream({async pull(e){const t=typeof l==="string"?Q.encode(l):l;if(t.byteLength){e.enqueue(t)}queueMicrotask((()=>a(e)))},start(){},type:"bytes"})}g(o(r));let c=null;let l=null;let A=null;let u=null;if(typeof e==="string"){l=e;u="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){l=e.toString();u="application/x-www-form-urlencoded;charset=UTF-8"}else if(C(e)){l=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(n.isFormDataLike(e)){const t=`----formdata-undici-0${`${I(1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);A=0;let i=false;for(const[t,o]of e){if(typeof o==="string"){const e=Q.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);A+=e.byteLength}else{const e=Q.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,s);if(typeof o.size==="number"){A+=e.byteLength+o.size+s.byteLength}else{i=true}}}const o=Q.encode(`--${t}--\r\n`);n.push(o);A+=o.byteLength;if(i){A=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};u=`multipart/form-data; boundary=${t}`}else if(i(e)){l=e;A=e.size;if(e.type){u=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof l==="string"||n.isBuffer(l)){A=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!f(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const d={stream:r,source:l,length:A};return[d,u]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){g(!n.isDisturbed(e),"The body has already been consumed.");g(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=E(t)}return new h([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,u,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=B(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new d;n[p]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new d;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){m.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[p]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[p].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[p].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[p].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(u(e))}function bodyMimeType(e){const t=e[p].headersList;const r=A(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:S,hasFinalizationRegistry:b,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const i=new Set(s);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const a=new Set(o);const c=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const l=new Set(c);const A=["follow","manual","error"];const u=["GET","HEAD","OPTIONS","TRACE"];const d=new Set(u);const p=["navigate","same-origin","no-cors","cors"];const m=["omit","same-origin","include"];const h=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const g=["content-encoding","content-language","content-location","content-type","content-length"];const f=["half"];const y=["CONNECT","TRACE","TRACK"];const C=new Set(y);const E=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const B=new Set(E);e.exports={subresource:E,forbiddenMethods:y,requestBodyHeader:g,referrerPolicy:c,requestRedirect:A,requestMode:p,requestCredentials:m,requestCache:h,redirectStatus:s,corsSafeListedMethods:t,nullBodyStatus:n,safeMethods:u,badPorts:o,requestDuplex:f,subresourceSet:B,badPortsSet:a,redirectStatusSet:i,corsSafeListedMethodsSet:r,safeMethodsSet:d,forbiddenMethodsSet:C,referrerPolicySet:l}},1900:(e,t,r)=>{const n=r(4589);const s=new TextEncoder;const i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const o=/[\u000A\u000D\u0009\u0020]/;const a=/[\u0009\u000A\u000C\u000D\u0020]/g;const c=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const o=t.slice(i+1);let a=stringPercentDecode(o);if(/;(\u0020){0,}base64$/i.test(s)){const e=isomorphicDecode(a);a=forgivingBase64(e);if(a==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let c=parseMIMEType(s);if(c==="failure"){c=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:c,body:a}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;const s=n===0?r:r.substring(0,r.length-n);if(!n&&r.endsWith("#")){return s.slice(0,-1)}return s}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexByteToNumber(e){return e>=48&&e<=57?e-48:(e&223)-55}function percentDecode(e){const t=e.length;const r=new Uint8Array(t);let n=0;for(let s=0;se.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!i.test(n)){return"failure"}const s=r.toLowerCase();const a=n.toLowerCase();const l={type:s,subtype:a,parameters:new Map,essence:`${s}/${a}`};while(t.positiono.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&i.test(r)&&(n.length===0||c.test(n))&&!l.parameters.has(r)){l.parameters.set(r,n)}}return l}function forgivingBase64(e){e=e.replace(a,"");let t=e.length;if(t%4===0){if(e.charCodeAt(t-1)===61){--t;if(e.charCodeAt(t-1)===61){--t}}}if(t%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t))){return"failure"}const r=Buffer.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}function collectAnHTTPQuotedString(e,t,r){const s=t.position;let i="";n(e[t.position]==='"');t.position++;while(true){i+=collectASequenceOfCodePoints((e=>e!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){i+="\\";break}i+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return i}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!i.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e===13||e===10||e===9||e===32}function removeHTTPWhitespace(e,t=true,r=true){return removeChars(e,t,r,isHTTPWhiteSpace)}function isASCIIWhitespace(e){return e===13||e===10||e===9||e===12||e===32}function removeASCIIWhitespace(e,t=true,r=true){return removeChars(e,t,r,isASCIIWhitespace)}function removeChars(e,t,r,n){let s=0;let i=e.length-1;if(t){while(s0&&n(e.charCodeAt(i)))i--}return s===0&&i===e.length-1?e:e.slice(s,i+1)}function isomorphicDecode(e){const t=e.length;if((2<<15)-1>t){return String.fromCharCode.apply(null,e)}let r="";let n=0;let s=(2<<15)-1;while(nt){s=t-n}r+=String.fromCharCode.apply(null,e.subarray(n,n+=s))}return r}function minimizeSupportedMimeType(e){switch(e.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(e.subtype.endsWith("+json")){return"application/json"}if(e.subtype.endsWith("+xml")){return"application/xml"}return""}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:isomorphicDecode}},6653:(e,t,r)=>{const{kConnected:n,kSize:s}=r(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}unregister(e){}}e.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(e,t,r)=>{const{Blob:n,File:s}=r(4573);const{kState:i}=r(3627);const{webidl:o}=r(5893);class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){o.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){o.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){o.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){o.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){o.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){o.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){o.brandCheck(this,FileLike);return this[i].name}get lastModified(){o.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}o.converters.Blob=o.interfaceConverter(n);function isFileLike(e){return e instanceof s||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(e,t,r)=>{const{isUSVString:n,bufferToLowerCasedHeaderName:s}=r(3440);const{utf8DecodeBytes:i}=r(3168);const{HTTP_TOKEN_CODEPOINTS:o,isomorphicDecode:a}=r(1900);const{isFileLike:c}=r(7114);const{makeEntry:l}=r(5910);const A=r(4589);const{File:u}=r(4573);const d=globalThis.File??u;const p=Buffer.from('form-data; name="');const m=Buffer.from("; filename");const h=Buffer.from("--");const g=Buffer.from("--\r\n");function isAsciiString(e){for(let t=0;t70){return false}for(let r=0;r=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95)){return false}}return true}function multipartFormDataParser(e,t){A(t!=="failure"&&t.essence==="multipart/form-data");const r=t.parameters.get("boundary");if(r===undefined){return"failure"}const s=Buffer.from(`--${r}`,"utf8");const o=[];const a={position:0};while(e[a.position]===13&&e[a.position+1]===10){a.position+=2}let u=e.length;while(e[u-1]===10&&e[u-2]===13){u-=2}if(u!==e.length){e=e.subarray(0,u)}while(true){if(e.subarray(a.position,a.position+s.length).equals(s)){a.position+=s.length}else{return"failure"}if(a.position===e.length-2&&bufferStartsWith(e,h,a)||a.position===e.length-4&&bufferStartsWith(e,g,a)){return o}if(e[a.position]!==13||e[a.position+1]!==10){return"failure"}a.position+=2;const t=parseMultipartFormDataHeaders(e,a);if(t==="failure"){return"failure"}let{name:r,filename:u,contentType:p,encoding:m}=t;a.position+=2;let f;{const t=e.indexOf(s.subarray(2),a.position);if(t===-1){return"failure"}f=e.subarray(a.position,t-4);a.position+=f.length;if(m==="base64"){f=Buffer.from(f.toString(),"base64")}}if(e[a.position]!==13||e[a.position+1]!==10){return"failure"}else{a.position+=2}let y;if(u!==null){p??="text/plain";if(!isAsciiString(p)){p=""}y=new d([f],u,{type:p})}else{y=i(Buffer.from(f))}A(n(r));A(typeof y==="string"&&n(y)||c(y));o.push(l(r,y,u))}}function parseMultipartFormDataHeaders(e,t){let r=null;let n=null;let i=null;let c=null;while(true){if(e[t.position]===13&&e[t.position+1]===10){if(r===null){return"failure"}return{name:r,filename:n,contentType:i,encoding:c}}let l=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==58),e,t);l=removeChars(l,true,true,(e=>e===9||e===32));if(!o.test(l.toString())){return"failure"}if(e[t.position]!==58){return"failure"}t.position++;collectASequenceOfBytes((e=>e===32||e===9),e,t);switch(s(l)){case"content-disposition":{r=n=null;if(!bufferStartsWith(e,p,t)){return"failure"}t.position+=17;r=parseMultipartFormDataName(e,t);if(r===null){return"failure"}if(bufferStartsWith(e,m,t)){let r=t.position+m.length;if(e[r]===42){t.position+=1;r+=1}if(e[r]!==61||e[r+1]!==34){return"failure"}t.position+=12;n=parseMultipartFormDataName(e,t);if(n===null){return"failure"}}break}case"content-type":{let r=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);r=removeChars(r,false,true,(e=>e===9||e===32));i=a(r);break}case"content-transfer-encoding":{let r=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);r=removeChars(r,false,true,(e=>e===9||e===32));c=a(r);break}default:{collectASequenceOfBytes((e=>e!==10&&e!==13),e,t)}}if(e[t.position]!==13&&e[t.position+1]!==10){return"failure"}else{t.position+=2}}}function parseMultipartFormDataName(e,t){A(e[t.position-1]===34);let r=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==34),e,t);if(e[t.position]!==34){return null}else{t.position++}r=(new TextDecoder).decode(r).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return r}function collectASequenceOfBytes(e,t,r){let n=r.position;while(n0&&n(e[i]))i--}return s===0&&i===e.length-1?e:e.subarray(s,i+1)}function bufferStartsWith(e,t,r){if(e.length{const{isBlobLike:n,iteratorMixin:s}=r(3168);const{kState:i}=r(3627);const{kEnumerableProperty:o}=r(3440);const{FileLike:a,isFileLike:c}=r(7114);const{webidl:l}=r(5893);const{File:A}=r(4573);const u=r(7975);const d=globalThis.File??A;class FormData{constructor(e){l.util.markAsUncloneable(this);if(e!==undefined){throw l.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){l.brandCheck(this,FormData);const s="FormData.append";l.argumentLengthCheck(arguments,2,s);if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=l.converters.USVString(e,s,"name");t=n(t)?l.converters.Blob(t,s,"value",{strict:false}):l.converters.USVString(t,s,"value");r=arguments.length===3?l.converters.USVString(r,s,"filename"):undefined;const o=makeEntry(e,t,r);this[i].push(o)}delete(e){l.brandCheck(this,FormData);const t="FormData.delete";l.argumentLengthCheck(arguments,1,t);e=l.converters.USVString(e,t,"name");this[i]=this[i].filter((t=>t.name!==e))}get(e){l.brandCheck(this,FormData);const t="FormData.get";l.argumentLengthCheck(arguments,1,t);e=l.converters.USVString(e,t,"name");const r=this[i].findIndex((t=>t.name===e));if(r===-1){return null}return this[i][r].value}getAll(e){l.brandCheck(this,FormData);const t="FormData.getAll";l.argumentLengthCheck(arguments,1,t);e=l.converters.USVString(e,t,"name");return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){l.brandCheck(this,FormData);const t="FormData.has";l.argumentLengthCheck(arguments,1,t);e=l.converters.USVString(e,t,"name");return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){l.brandCheck(this,FormData);const s="FormData.set";l.argumentLengthCheck(arguments,2,s);if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=l.converters.USVString(e,s,"name");t=n(t)?l.converters.Blob(t,s,"name",{strict:false}):l.converters.USVString(t,s,"name");r=arguments.length===3?l.converters.USVString(r,s,"name"):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}[u.inspect.custom](e,t){const r=this[i].reduce(((e,t)=>{if(e[t.name]){if(Array.isArray(e[t.name])){e[t.name].push(t.value)}else{e[t.name]=[e[t.name],t.value]}}else{e[t.name]=t.value}return e}),{__proto__:null});t.depth??=e;t.colors??=true;const n=u.formatWithOptions(t,r);return`FormData ${n.slice(n.indexOf("]")+2)}`}}s("FormData",FormData,i,"name","value");Object.defineProperties(FormData.prototype,{append:o,delete:o,get:o,getAll:o,has:o,set:o,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){if(typeof t==="string"){}else{if(!c(t)){t=t instanceof Blob?new d([t],"blob",{type:t.type}):new a(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=t instanceof A?new d([t],r,e):new a(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData,makeEntry:makeEntry}},1059:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(e,t,r)=>{const{kConstruct:n}=r(6443);const{kEnumerableProperty:s}=r(3440);const{iteratorMixin:i,isValidHeaderName:o,isValidHeaderValue:a}=r(3168);const{webidl:c}=r(5893);const l=r(4589);const A=r(7975);const u=Symbol("headers map");const d=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!o(t)){throw c.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!a(r)){throw c.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(p(e)==="immutable"){throw new TypeError("immutable")}return h(e).append(t,r,false)}function compareHeaderName(e,t){return e[0]>1);if(t[a][0]<=c[0]){o=a+1}else{i=a}}if(n!==a){s=n;while(s>o){t[s]=t[--s]}t[o]=c}}if(!r.next().done){throw new TypeError("Unreachable")}return t}else{let e=0;for(const{0:r,1:{value:n}}of this[u]){t[e++]=[r,n];l(n!==null)}return t.sort(compareHeaderName)}}}class Headers{#q;#V;constructor(e=undefined){c.util.markAsUncloneable(this);if(e===n){return}this.#V=new HeadersList;this.#q="none";if(e!==undefined){e=c.converters.HeadersInit(e,"Headers contructor","init");fill(this,e)}}append(e,t){c.brandCheck(this,Headers);c.argumentLengthCheck(arguments,2,"Headers.append");const r="Headers.append";e=c.converters.ByteString(e,r,"name");t=c.converters.ByteString(t,r,"value");return appendHeader(this,e,t)}delete(e){c.brandCheck(this,Headers);c.argumentLengthCheck(arguments,1,"Headers.delete");const t="Headers.delete";e=c.converters.ByteString(e,t,"name");if(!o(e)){throw c.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this.#q==="immutable"){throw new TypeError("immutable")}if(!this.#V.contains(e,false)){return}this.#V.delete(e,false)}get(e){c.brandCheck(this,Headers);c.argumentLengthCheck(arguments,1,"Headers.get");const t="Headers.get";e=c.converters.ByteString(e,t,"name");if(!o(e)){throw c.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#V.get(e,false)}has(e){c.brandCheck(this,Headers);c.argumentLengthCheck(arguments,1,"Headers.has");const t="Headers.has";e=c.converters.ByteString(e,t,"name");if(!o(e)){throw c.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#V.contains(e,false)}set(e,t){c.brandCheck(this,Headers);c.argumentLengthCheck(arguments,2,"Headers.set");const r="Headers.set";e=c.converters.ByteString(e,r,"name");t=c.converters.ByteString(t,r,"value");t=headerValueNormalize(t);if(!o(e)){throw c.errors.invalidArgument({prefix:r,value:e,type:"header name"})}else if(!a(t)){throw c.errors.invalidArgument({prefix:r,value:t,type:"header value"})}if(this.#q==="immutable"){throw new TypeError("immutable")}this.#V.set(e,t,false)}getSetCookie(){c.brandCheck(this,Headers);const e=this.#V.cookies;if(e){return[...e]}return[]}get[d](){if(this.#V[d]){return this.#V[d]}const e=[];const t=this.#V.toSortedArray();const r=this.#V.cookies;if(r===null||r.length===1){return this.#V[d]=t}for(let n=0;n>"](e,t,r,n.bind(e))}return c.converters["record"](e,t,r)}throw c.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:p,setHeadersGuard:m,setHeadersList:g,getHeadersList:h}},4398:(e,t,r)=>{const{makeNetworkError:n,makeAppropriateNetworkError:s,filterResponse:i,makeResponse:o,fromInnerResponse:a}=r(9051);const{HeadersList:c}=r(660);const{Request:l,cloneRequest:A}=r(9967);const u=r(8522);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:m,requestBadPort:h,TAOCheck:g,appendRequestOriginHeader:f,responseLocationURL:y,requestCurrentURL:C,setRequestReferrerPolicyOnRedirect:E,tryUpgradeRequestToAPotentiallyTrustworthyURL:B,createOpaqueTimingInfo:I,appendFetchMetadata:Q,corsCheck:b,crossOriginResourcePolicyCheck:S,determineRequestsReferrer:w,coarsenedSharedCurrentTime:N,createDeferredPromise:R,isBlobLike:x,sameOrigin:v,isCancelled:D,isAborted:k,isErrorLike:T,fullyReadBody:P,readableStreamClose:M,isomorphicEncode:L,urlIsLocal:F,urlIsHttpHttpsScheme:U,urlHasHttpsScheme:O,clampAndCoarsenConnectionTimingInfo:H,simpleRangeHeaderValue:_,buildContentRange:z,createInflate:q,extractMimeType:V}=r(3168);const{kState:G,kDispatcher:Y}=r(3627);const J=r(4589);const{safelyExtractBody:W,extractBody:$}=r(4492);const{redirectStatusSet:j,nullBodyStatus:K,safeMethodsSet:X,requestBodyHeader:Z,subresourceSet:ee}=r(4495);const te=r(8474);const{Readable:re,pipeline:ne,finished:se}=r(7075);const{addAbortListener:ie,isErrored:oe,isReadable:ae,bufferToLowerCasedHeaderName:ce}=r(3440);const{dataURLProcessor:le,serializeAMimeType:Ae,minimizeSupportedMimeType:ue}=r(1900);const{getGlobalDispatcher:de}=r(2581);const{webidl:pe}=r(5893);const{STATUS_CODES:me}=r(7067);const he=["GET","HEAD"];const ge=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let fe;class Fetch extends te{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing"}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function handleFetchDone(e){finalizeAndReportTiming(e,"fetch")}function fetch(e,t=undefined){pe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=R();let n;try{n=new l(e,t)}catch(e){r.reject(e);return r.promise}const s=n[G];if(n.signal.aborted){abortFetch(r,s,null,n.signal.reason);return r.promise}const i=s.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){s.serviceWorkers="none"}let o=null;let c=false;let A=null;ie(n.signal,(()=>{c=true;J(A!=null);A.abort(n.signal.reason);const e=o?.deref();abortFetch(r,s,e,n.signal.reason)}));const processResponse=e=>{if(c){return}if(e.aborted){abortFetch(r,s,o,A.serializedAbortReason);return}if(e.type==="error"){r.reject(new TypeError("fetch failed",{cause:e.error}));return}o=new WeakRef(a(e,"immutable"));r.resolve(o.deref());r=null};A=fetching({request:s,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:n[Y]});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!U(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=I({startTime:n.startTime});s=""}n.endTime=N();e.timingInfo=n;ye(n,r.href,t,globalThis,s)}const ye=performance.markResourceTiming;function abortFetch(e,t,r,n){if(e){e.reject(n)}if(t.body!=null&&ae(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&ae(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:i,useParallelQueue:o=false,dispatcher:a=de()}){J(a);let c=null;let l=false;if(e.client!=null){c=e.client.globalObject;l=e.client.crossOriginIsolatedCapability}const A=N(l);const u=I({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:i,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:l};J(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=m(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept",true)){const t="*/*";e.headersList.append("accept",t,true)}if(!e.headersList.contains("accept-language",true)){e.headersList.append("accept-language","*",true)}if(e.priority===null){}if(ee.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let s=null;if(r.localURLsOnly&&!F(C(r))){s=n("local URLs only")}B(r);if(h(r)==="blocked"){s=n("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(s===null){s=await(async()=>{const t=C(r);if(v(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return n('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return n('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!U(C(r))){return n("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return s}if(s.status!==0&&!s.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){s=i(s,"basic")}else if(r.responseTainting==="cors"){s=i(s,"cors")}else if(r.responseTainting==="opaque"){s=i(s,"opaque")}else{J(false)}}let o=s.status===0?s:s.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){s.timingAllowPassed=true}if(s.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range",true)){s=o=n()}if(s.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||K.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,n(t));if(r.responseTainting==="opaque"||s.body==null){processBodyError(s.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}s.body=W(t)[0];fetchFinale(e,s)};await P(s.body,processBody,processBodyError)}else{fetchFinale(e,s)}}function schemeFetch(e){if(D(e)&&e.request.redirectCount===0){return Promise.resolve(s(e))}const{request:t}=e;const{protocol:i}=C(t);switch(i){case"about:":{return Promise.resolve(n("about scheme is not supported"))}case"blob:":{if(!fe){fe=r(4573).resolveObjectURL}const e=C(t);if(e.search.length!==0){return Promise.resolve(n("NetworkError when attempting to fetch resource."))}const s=fe(e.toString());if(t.method!=="GET"||!x(s)){return Promise.resolve(n("invalid method"))}const i=o();const a=s.size;const c=L(`${a}`);const l=s.type;if(!t.headersList.contains("range",true)){const e=$(s);i.statusText="OK";i.body=e[0];i.headersList.set("content-length",c,true);i.headersList.set("content-type",l,true)}else{i.rangeRequested=true;const e=t.headersList.get("range",true);const r=_(e,true);if(r==="failure"){return Promise.resolve(n("failed to fetch the data URL"))}let{rangeStartValue:o,rangeEndValue:c}=r;if(o===null){o=a-c;c=o+c-1}else{if(o>=a){return Promise.resolve(n("Range start is greater than the blob's size."))}if(c===null||c>=a){c=a-1}}const A=s.slice(o,c,l);const u=$(A);i.body=u[0];const d=L(`${A.size}`);const p=z(o,c,a);i.status=206;i.statusText="Partial Content";i.headersList.set("content-length",d,true);i.headersList.set("content-type",l,true);i.headersList.set("content-range",p,true)}return Promise.resolve(i)}case"data:":{const e=C(t);const r=le(e);if(r==="failure"){return Promise.resolve(n("failed to fetch the data URL"))}const s=Ae(r.mimeType);return Promise.resolve(o({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:W(r.body)[0]}))}case"file:":{return Promise.resolve(n("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>n(e)))}default:{return Promise.resolve(n("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){let r=e.timingInfo;const processResponseEndOfBody=()=>{const n=Date.now();if(e.request.destination==="document"){e.controller.fullTimingInfo=r}e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:"){return}r.endTime=n;let s=t.cacheState;const i=t.bodyInfo;if(!t.timingAllowPassed){r=I(r);s=""}let o=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){o=t.status;const e=V(t.headersList);if(e!=="failure"){i.contentType=ue(e)}}if(e.request.initiatorType!=null){ye(r,e.request.url.href,e.request.initiatorType,globalThis,s,i,o)}};const processResponseEndOfBodyTask=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}if(e.request.initiatorType!=null){e.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(e.processResponse!=null){queueMicrotask((()=>{e.processResponse(t);e.processResponse=null}))}const n=t.type==="error"?t:t.internalResponse??t;if(n.body==null){processResponseEndOfBody()}else{se(n.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(e){const t=e.request;let r=null;let s=null;const i=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}s=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&b(t,r)==="failure"){return n("cors failure")}if(g(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&S(t.origin,t.client,t.destination,s)==="blocked"){return n("blocked")}if(j.has(s.status)){if(t.redirect!=="manual"){e.controller.connection.destroy(undefined,false)}if(t.redirect==="error"){r=n("unexpected redirect")}else if(t.redirect==="manual"){r=s}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{J(false)}}r.timingInfo=i;return r}function httpRedirectFetch(e,t){const r=e.request;const s=t.internalResponse?t.internalResponse:t;let i;try{i=y(s,C(r).hash);if(i==null){return t}}catch(e){return Promise.resolve(n(e))}if(!U(i)){return Promise.resolve(n("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(n("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(i.username||i.password)&&!v(r,i)){return Promise.resolve(n('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(i.username||i.password)){return Promise.resolve(n('URL cannot contain credentials for request mode "cors"'))}if(s.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(n())}if([301,302].includes(s.status)&&r.method==="POST"||s.status===303&&!he.includes(r.method)){r.method="GET";r.body=null;for(const e of Z){r.headersList.delete(e)}}if(!v(C(r),i)){r.headersList.delete("authorization",true);r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie",true);r.headersList.delete("host",true)}if(r.body!=null){J(r.body.source!=null);r.body=W(r.body.source)[0]}const o=e.timingInfo;o.redirectEndTime=o.postRedirectStartTime=N(e.crossOriginIsolatedCapability);if(o.redirectStartTime===0){o.redirectStartTime=o.startTime}r.urlList.push(i);E(r,s);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const i=e.request;let o=null;let a=null;let c=null;const l=null;const u=false;if(i.window==="no-window"&&i.redirect==="error"){o=e;a=i}else{a=A(i);o={...e};o.request=a}const d=i.credentials==="include"||i.credentials==="same-origin"&&i.responseTainting==="basic";const p=a.body?a.body.length:null;let m=null;if(a.body==null&&["POST","PUT"].includes(a.method)){m="0"}if(p!=null){m=L(`${p}`)}if(m!=null){a.headersList.append("content-length",m,true)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href),true)}f(a);Q(a);if(!a.headersList.contains("user-agent",true)){a.headersList.append("user-agent",ge)}if(a.cache==="default"&&(a.headersList.contains("if-modified-since",true)||a.headersList.contains("if-none-match",true)||a.headersList.contains("if-unmodified-since",true)||a.headersList.contains("if-match",true)||a.headersList.contains("if-range",true))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control",true)){a.headersList.append("cache-control","max-age=0",true)}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma",true)){a.headersList.append("pragma","no-cache",true)}if(!a.headersList.contains("cache-control",true)){a.headersList.append("cache-control","no-cache",true)}}if(a.headersList.contains("range",true)){a.headersList.append("accept-encoding","identity",true)}if(!a.headersList.contains("accept-encoding",true)){if(O(C(a))){a.headersList.append("accept-encoding","br, gzip, deflate",true)}else{a.headersList.append("accept-encoding","gzip, deflate",true)}}a.headersList.delete("host",true);if(d){}if(l==null){a.cache="no-store"}if(a.cache!=="no-store"&&a.cache!=="reload"){}if(c==null){if(a.cache==="only-if-cached"){return n("only if cached")}const e=await httpNetworkFetch(o,d,r);if(!X.has(a.method)&&e.status>=200&&e.status<=399){}if(u&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range",true)){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(i.window==="no-window"){return n()}if(D(e)){return s(e)}return n("proxy authentication required")}if(c.status===421&&!r&&(i.body==null||i.body.source!=null)){if(D(e)){return s(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,r=false){J(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e,t=true){if(!this.destroyed){this.destroyed=true;if(t){this.abort?.(e??new DOMException("The operation was aborted.","AbortError"))}}}};const i=e.request;let a=null;const l=e.timingInfo;const A=null;if(A==null){i.cache="no-store"}const d=r?"yes":"no";if(i.mode==="websocket"){}else{}let p=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(D(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(D(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(D(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};p=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:i}=await dispatch({body:p});if(i){a=o({status:r,statusText:n,headersList:s,socket:i})}else{const i=t[Symbol.asyncIterator]();e.controller.next=()=>i.next();a=o({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return s(e,t)}return n(t)}const pullAlgorithm=async()=>{await e.controller.resume()};const cancelAlgorithm=t=>{if(!D(e)){e.controller.abort(t)}};const m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)},type:"bytes"});a.body={stream:m,source:null,length:null};e.controller.onAborted=onAborted;e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(k(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!l.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){M(e.controller.controller);finalizeResponse(e,a);return}l.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}const n=new Uint8Array(t);if(n.byteLength){e.controller.controller.enqueue(n)}if(oe(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0){return}}};function onAborted(t){if(k(e)){a.aborted=true;if(ae(m)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(ae(m)){e.controller.controller.error(new TypeError("terminated",{cause:T(t)?t:undefined}))}}e.controller.connection.destroy()}return a;function dispatch({body:t}){const r=C(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:n.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;l.finalConnectionTimingInfo=H(undefined,l.postRedirectStartTime,e.crossOriginIsolatedCapability);if(r.destroyed){t(new DOMException("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}l.finalNetworkRequestStartTime=N(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=N(e.crossOriginIsolatedCapability)},onHeaders(e,t,r,n){if(e<200){return}let a="";const l=new c;for(let e=0;er){o(new Error(`too many content-encodings in response: ${t.length}, maximum allowed is ${r}`));return true}for(let e=t.length-1;e>=0;--e){const r=t[e].trim();if(r==="x-gzip"||r==="gzip"){A.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){A.push(q({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}))}else if(r==="br"){A.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}))}else{A.length=0;break}}}const p=this.onError.bind(this);s({status:e,statusText:n,headersList:l,body:A.length?ne(this.body,...A,(e=>{if(e){this.onError(e)}})).on("error",p):this.body.on("error",p)});return true},onData(t){if(e.controller.dump){return}const r=t;l.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}if(e.controller.onAborted){e.controller.off("terminated",e.controller.onAborted)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:i,bodyUnusable:o}=r(4492);const{Headers:a,fill:c,HeadersList:l,setHeadersGuard:A,getHeadersGuard:u,setHeadersList:d,getHeadersList:p}=r(660);const{FinalizationRegistry:m}=r(6653)();const h=r(3440);const g=r(7975);const{isValidHTTPToken:f,sameOrigin:y,environmentSettingsObject:C}=r(3168);const{forbiddenMethodsSet:E,corsSafeListedMethodsSet:B,referrerPolicy:I,requestRedirect:Q,requestMode:b,requestCredentials:S,requestCache:w,requestDuplex:N}=r(4495);const{kEnumerableProperty:R,normalizedMethodRecordsBase:x,normalizedMethodRecords:v}=h;const{kHeaders:D,kSignal:k,kState:T,kDispatcher:P}=r(3627);const{webidl:M}=r(5893);const{URLSerializer:L}=r(1900);const{kConstruct:F}=r(6443);const U=r(4589);const{getMaxListeners:O,setMaxListeners:H,getEventListeners:_,defaultMaxListeners:z}=r(8474);const q=Symbol("abortController");const V=new m((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));const G=new WeakMap;function buildAbort(e){return abort;function abort(){const t=e.deref();if(t!==undefined){V.unregister(abort);this.removeEventListener("abort",abort);t.abort(this.reason);const e=G.get(t.signal);if(e!==undefined){if(e.size!==0){for(const t of e){const e=t.deref();if(e!==undefined){e.abort(this.reason)}}e.clear()}G.delete(t.signal)}}}}let Y=false;class Request{constructor(e,t={}){M.util.markAsUncloneable(this);if(e===F){return}const r="Request constructor";M.argumentLengthCheck(arguments,1,r);e=M.converters.RequestInfo(e,r,"input");t=M.converters.RequestInit(t,r,"init");let s=null;let i=null;const u=C.settingsObject.baseUrl;let m=null;if(typeof e==="string"){this[P]=t.dispatcher;let r;try{r=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(r.username||r.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[r]});i="cors"}else{this[P]=t.dispatcher||e[P];U(e instanceof Request);s=e[T];m=e[k]}const g=C.settingsObject.origin;let I="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&y(s.window,g)){I=s.window}if(t.window!=null){throw new TypeError(`'window' option '${I}' must be null`)}if("window"in t){I="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:C.settingsObject,window:I,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const Q=Object.keys(t).length!==0;if(Q){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||g&&!y(t,C.settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let b;if(t.mode!==undefined){b=t.mode}else{b=i}if(b==="navigate"){throw M.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(b!=null){s.mode=b}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;const r=v[e];if(r!==undefined){s.method=r}else{if(!f(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}const t=e.toUpperCase();if(E.has(t)){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=x[t]??e;s.method=e}if(!Y&&s.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Y=true}}if(t.signal!==undefined){m=t.signal}this[T]=s;const S=new AbortController;this[k]=S.signal;if(m!=null){if(!m||typeof m.aborted!=="boolean"||typeof m.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(m.aborted){S.abort(m.reason)}else{this[q]=S;const e=new WeakRef(S);const t=buildAbort(e);try{if(typeof O==="function"&&O(m)===z){H(1500,m)}else if(_(m,"abort").length>=z){H(1500,m)}}catch{}h.addAbortListener(m,t);V.register(S,{signal:m,abort:t},t)}}this[D]=new a(F);d(this[D],s.headersList);A(this[D],"request");if(b==="no-cors"){if(!B.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}A(this[D],"request-no-cors")}if(Q){const e=p(this[D]);const r=t.headers!==undefined?t.headers:new l(e);e.clear();if(r instanceof l){for(const{name:t,value:n}of r.rawValues()){e.append(t,n,false)}e.cookies=r.cookies}else{c(this[D],r)}}const w=e instanceof Request?e[T].body:null;if((t.body!=null||w!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let N=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);N=e;if(r&&!p(this[D]).contains("content-type",true)){this[D].append("content-type",r)}}const R=N??w;if(R!=null&&R.source==null){if(N!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let L=R;if(N==null&&w!=null){if(o(e)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const t=new TransformStream;w.stream.pipeThrough(t);L={source:w.source,length:w.length,stream:t.readable}}this[T].body=L}get method(){M.brandCheck(this,Request);return this[T].method}get url(){M.brandCheck(this,Request);return L(this[T].url)}get headers(){M.brandCheck(this,Request);return this[D]}get destination(){M.brandCheck(this,Request);return this[T].destination}get referrer(){M.brandCheck(this,Request);if(this[T].referrer==="no-referrer"){return""}if(this[T].referrer==="client"){return"about:client"}return this[T].referrer.toString()}get referrerPolicy(){M.brandCheck(this,Request);return this[T].referrerPolicy}get mode(){M.brandCheck(this,Request);return this[T].mode}get credentials(){return this[T].credentials}get cache(){M.brandCheck(this,Request);return this[T].cache}get redirect(){M.brandCheck(this,Request);return this[T].redirect}get integrity(){M.brandCheck(this,Request);return this[T].integrity}get keepalive(){M.brandCheck(this,Request);return this[T].keepalive}get isReloadNavigation(){M.brandCheck(this,Request);return this[T].reloadNavigation}get isHistoryNavigation(){M.brandCheck(this,Request);return this[T].historyNavigation}get signal(){M.brandCheck(this,Request);return this[k]}get body(){M.brandCheck(this,Request);return this[T].body?this[T].body.stream:null}get bodyUsed(){M.brandCheck(this,Request);return!!this[T].body&&h.isDisturbed(this[T].body.stream)}get duplex(){M.brandCheck(this,Request);return"half"}clone(){M.brandCheck(this,Request);if(o(this)){throw new TypeError("unusable")}const e=cloneRequest(this[T]);const t=new AbortController;if(this.signal.aborted){t.abort(this.signal.reason)}else{let e=G.get(this.signal);if(e===undefined){e=new Set;G.set(this.signal,e)}const r=new WeakRef(t);e.add(r);h.addAbortListener(t.signal,buildAbort(r))}return fromInnerRequest(e,t.signal,u(this[D]))}[g.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const r={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${g.formatWithOptions(t,r)}`}}s(Request);function makeRequest(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??false,unsafeRequest:e.unsafeRequest??false,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??false,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??false,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??false,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??false,historyNavigation:e.historyNavigation??false,userActivation:e.userActivation??false,taintedOrigin:e.taintedOrigin??false,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??false,done:e.done??false,timingAllowFailed:e.timingAllowFailed??false,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new l(e.headersList):new l}}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=i(t,e.body)}return t}function fromInnerRequest(e,t,r){const n=new Request(F);n[T]=e;n[k]=t;n[D]=new a(F);d(n[D],e.headersList);A(n[D],r);return n}Object.defineProperties(Request.prototype,{method:R,url:R,headers:R,redirect:R,clone:R,signal:R,duplex:R,destination:R,body:R,bodyUsed:R,isHistoryNavigation:R,isReloadNavigation:R,keepalive:R,integrity:R,cache:R,credentials:R,attribute:R,referrerPolicy:R,referrer:R,mode:R,[Symbol.toStringTag]:{value:"Request",configurable:true}});M.converters.Request=M.interfaceConverter(Request);M.converters.RequestInfo=function(e,t,r){if(typeof e==="string"){return M.converters.USVString(e,t,r)}if(e instanceof Request){return M.converters.Request(e,t,r)}return M.converters.USVString(e,t,r)};M.converters.AbortSignal=M.interfaceConverter(AbortSignal);M.converters.RequestInit=M.dictionaryConverter([{key:"method",converter:M.converters.ByteString},{key:"headers",converter:M.converters.HeadersInit},{key:"body",converter:M.nullableConverter(M.converters.BodyInit)},{key:"referrer",converter:M.converters.USVString},{key:"referrerPolicy",converter:M.converters.DOMString,allowedValues:I},{key:"mode",converter:M.converters.DOMString,allowedValues:b},{key:"credentials",converter:M.converters.DOMString,allowedValues:S},{key:"cache",converter:M.converters.DOMString,allowedValues:w},{key:"redirect",converter:M.converters.DOMString,allowedValues:Q},{key:"integrity",converter:M.converters.DOMString},{key:"keepalive",converter:M.converters.boolean},{key:"signal",converter:M.nullableConverter((e=>M.converters.AbortSignal(e,"RequestInit","signal",{strict:false})))},{key:"window",converter:M.converters.any},{key:"duplex",converter:M.converters.DOMString,allowedValues:N},{key:"dispatcher",converter:M.converters.any}]);e.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:i,getHeadersGuard:o,setHeadersGuard:a,setHeadersList:c}=r(660);const{extractBody:l,cloneBody:A,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:p,bodyUnusable:m}=r(4492);const h=r(3440);const g=r(7975);const{kEnumerableProperty:f}=h;const{isValidReasonPhrase:y,isCancelled:C,isAborted:E,isBlobLike:B,serializeJavascriptValueToJSONString:I,isErrorLike:Q,isomorphicEncode:b,environmentSettingsObject:S}=r(3168);const{redirectStatusSet:w,nullBodyStatus:N}=r(4495);const{kState:R,kHeaders:x}=r(3627);const{webidl:v}=r(5893);const{FormData:D}=r(5910);const{URLSerializer:k}=r(1900);const{kConstruct:T}=r(6443);const P=r(4589);const{types:M}=r(7975);const L=new TextEncoder("utf-8");class Response{static error(){const e=fromInnerResponse(makeNetworkError(),"immutable");return e}static json(e,t={}){v.argumentLengthCheck(arguments,1,"Response.json");if(t!==null){t=v.converters.ResponseInit(t)}const r=L.encode(I(e));const n=l(r);const s=fromInnerResponse(makeResponse({}),"response");initializeResponse(s,t,{body:n[0],type:"application/json"});return s}static redirect(e,t=302){v.argumentLengthCheck(arguments,1,"Response.redirect");e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let r;try{r=new URL(e,S.settingsObject.baseUrl)}catch(t){throw new TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!w.has(t)){throw new RangeError(`Invalid status code ${t}`)}const n=fromInnerResponse(makeResponse({}),"immutable");n[R].status=t;const s=b(k(r));n[R].headersList.append("location",s,true);return n}constructor(e=null,t={}){v.util.markAsUncloneable(this);if(e===T){return}if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[R]=makeResponse({});this[x]=new n(T);a(this[x],"response");c(this[x],this[R].headersList);let r=null;if(e!=null){const[t,n]=l(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[R].type}get url(){v.brandCheck(this,Response);const e=this[R].urlList;const t=e[e.length-1]??null;if(t===null){return""}return k(t,true)}get redirected(){v.brandCheck(this,Response);return this[R].urlList.length>1}get status(){v.brandCheck(this,Response);return this[R].status}get ok(){v.brandCheck(this,Response);return this[R].status>=200&&this[R].status<=299}get statusText(){v.brandCheck(this,Response);return this[R].statusText}get headers(){v.brandCheck(this,Response);return this[x]}get body(){v.brandCheck(this,Response);return this[R].body?this[R].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[R].body&&h.isDisturbed(this[R].body.stream)}clone(){v.brandCheck(this,Response);if(m(this)){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[R]);if(d&&this[R].body?.stream){p.register(this,new WeakRef(this[R].body.stream))}return fromInnerResponse(e,o(this[x]))}[g.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const r={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${g.formatWithOptions(t,r)}`}}u(Response);Object.defineProperties(Response.prototype,{type:f,url:f,status:f,ok:f,redirected:f,statusText:f,headers:f,clone:f,body:f,bodyUsed:f,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:f,redirect:f,error:f});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=A(t,e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new s(e?.headersList):new s,urlList:e?.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=Q(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function isNetworkError(e){return e.type==="error"&&e.status===0}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){P(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{P(false)}}function makeAppropriateNetworkError(e,t=null){P(C(e));return E(e)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!y(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[R].status=t.status}if("statusText"in t&&t.statusText!=null){e[R].statusText=t.statusText}if("headers"in t&&t.headers!=null){i(e[x],t.headers)}if(r){if(N.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`})}e[R].body=r.body;if(r.type!=null&&!e[R].headersList.contains("content-type",true)){e[R].headersList.append("content-type",r.type,true)}}}function fromInnerResponse(e,t){const r=new Response(T);r[R]=e;r[x]=new n(T);c(r[x],e.headersList);a(r[x],t);if(d&&e.body?.stream){p.register(r,new WeakRef(e.body.stream))}return r}v.converters.ReadableStream=v.interfaceConverter(ReadableStream);v.converters.FormData=v.interfaceConverter(D);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e,t,r){if(typeof e==="string"){return v.converters.USVString(e,t,r)}if(B(e)){return v.converters.Blob(e,t,r,{strict:false})}if(ArrayBuffer.isView(e)||M.isArrayBuffer(e)){return v.converters.BufferSource(e,t,r)}if(h.isFormDataLike(e)){return v.converters.FormData(e,t,r,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e,t,r)}return v.converters.DOMString(e,t,r)};v.converters.BodyInit=function(e,t,r){if(e instanceof ReadableStream){return v.converters.ReadableStream(e,t,r)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e,t,r)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:v.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(e,t,r)=>{const{Transform:n}=r(7075);const s=r(8522);const{redirectStatusSet:i,referrerPolicySet:o,badPortsSet:a}=r(4495);const{getGlobalOrigin:c}=r(1059);const{collectASequenceOfCodePoints:l,collectAnHTTPQuotedString:A,removeChars:u,parseMIMEType:d}=r(1900);const{performance:p}=r(643);const{isBlobLike:m,ReadableStreamFrom:h,isValidHTTPToken:g,normalizedMethodRecordsBase:f}=r(3440);const y=r(4589);const{isUint8Array:C}=r(3429);const{webidl:E}=r(5893);let B=[];let I;try{I=r(7598);const e=["sha256","sha384","sha512"];B=I.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!i.has(e.status)){return null}let r=e.headersList.get("location",true);if(r!==null&&isValidHeaderValue(r)){if(!isValidEncodedURL(r)){r=normalizeBinaryStringToUtf8(r)}r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function isValidEncodedURL(e){for(let t=0;t126||r<32){return false}}return true}function normalizeBinaryStringToUtf8(e){return Buffer.from(e,"binary").toString("utf8")}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&a.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}const Q=g;function isValidHeaderValue(e){return(e[0]==="\t"||e[0]===" "||e[e.length-1]==="\t"||e[e.length-1]===" "||e.includes("\n")||e.includes("\r")||e.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(e,t){const{headersList:r}=t;const n=(r.get("referrer-policy",true)??"").split(",");let s="";if(n.length>0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(o.has(t)){s=t;break}}}if(s!==""){e.referrerPolicy=s}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t,true)}function appendRequestOriginHeader(e){let t=e.origin;if(t==="client"||t===undefined){return}if(e.responseTainting==="cors"||e.mode==="websocket"){e.headersList.append("origin",t,true)}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}e.headersList.append("origin",t,true)}}function coarsenTime(e,t){return e}function clampAndCoarsenConnectionTimingInfo(e,t,r){if(!e?.startTime||e.startTime4096){n=s}const i=sameOrigin(e,n);const o=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return o?"no-referrer":s}}function stripURLForReferrer(e,t){y(e instanceof URL);e=new URL(e);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(I===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=I.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const b=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=b.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(B.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function normalizeMethod(e){return f[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}y(typeof t==="string");return t}const S=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(e,t,r=0,n=1){class FastIterableIterator{#G;#Y;#J;constructor(e,t){this.#G=e;this.#Y=t;this.#J=0}next(){if(typeof this!=="object"||this===null||!(#G in this)){throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`)}const s=this.#J;const i=this.#G[t];const o=i.length;if(s>=o){return{value:undefined,done:true}}const{[r]:a,[n]:c}=i[s];this.#J=s+1;let l;switch(this.#Y){case"key":l=a;break;case"value":l=c;break;case"key+value":l=[a,c];break}return{value:l,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,S);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${e} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(e,t){return new FastIterableIterator(e,t)}}function iteratorMixin(e,t,r,n=0,s=1){const i=createIterator(e,r,n,s);const o={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){E.brandCheck(this,t);return i(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){E.brandCheck(this,t);return i(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){E.brandCheck(this,t);return i(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(r,n=globalThis){E.brandCheck(this,t);E.argumentLengthCheck(arguments,1,`${e}.forEach`);if(typeof r!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`)}for(const{0:e,1:t}of i(this,"key+value")){r.call(n,t,e,this)}}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:o.entries.value}})}async function fullyReadBody(e,t,r){const n=t;const s=r;let i;try{i=e.stream.getReader()}catch(e){s(e);return}try{n(await readAllBytes(i))}catch(e){s(e)}}function isReadableStreamLike(e){return e instanceof ReadableStream||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}function readableStreamClose(e){try{e.close();e.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed")){throw e}}}const w=/[^\x00-\xFF]/;function isomorphicEncode(e){y(!w.test(e));return e}async function readAllBytes(e){const t=[];let r=0;while(true){const{done:n,value:s}=await e.read();if(n){return Buffer.concat(t,r)}if(!C(s)){throw new TypeError("Received non-Uint8Array chunk")}t.push(s);r+=s.length}}function urlIsLocal(e){y("protocol"in e);const t=e.protocol;return t==="about:"||t==="blob:"||t==="data:"}function urlHasHttpsScheme(e){return typeof e==="string"&&e[5]===":"&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&e[4]==="s"||e.protocol==="https:"}function urlIsHttpHttpsScheme(e){y("protocol"in e);const t=e.protocol;return t==="http:"||t==="https:"}function simpleRangeHeaderValue(e,t){const r=e;if(!r.startsWith("bytes")){return"failure"}const n={position:5};if(t){l((e=>e==="\t"||e===" "),r,n)}if(r.charCodeAt(n.position)!==61){return"failure"}n.position++;if(t){l((e=>e==="\t"||e===" "),r,n)}const s=l((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),r,n);const i=s.length?Number(s):null;if(t){l((e=>e==="\t"||e===" "),r,n)}if(r.charCodeAt(n.position)!==45){return"failure"}n.position++;if(t){l((e=>e==="\t"||e===" "),r,n)}const o=l((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),r,n);const a=o.length?Number(o):null;if(n.positiona){return"failure"}return{rangeStartValue:i,rangeEndValue:a}}function buildContentRange(e,t,r){let n="bytes ";n+=isomorphicEncode(`${e}`);n+="-";n+=isomorphicEncode(`${t}`);n+="/";n+=isomorphicEncode(`${r}`);return n}class InflateStream extends n{#W;constructor(e){super();this.#W=e}_transform(e,t,r){if(!this._inflateStream){if(e.length===0){r();return}this._inflateStream=(e[0]&15)===8?s.createInflate(this.#W):s.createInflateRaw(this.#W);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(e=>this.destroy(e)))}this._inflateStream.write(e,t,r)}_final(e){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}e()}}function createInflate(e){return new InflateStream(e)}function extractMimeType(e){let t=null;let r=null;let n=null;const s=getDecodeSplit("content-type",e);if(s===null){return"failure"}for(const e of s){const s=d(e);if(s==="failure"||s.essence==="*/*"){continue}n=s;if(n.essence!==r){t=null;if(n.parameters.has("charset")){t=n.parameters.get("charset")}r=n.essence}else if(!n.parameters.has("charset")&&t!==null){n.parameters.set("charset",t)}}if(n==null){return"failure"}return n}function gettingDecodingSplitting(e){const t=e;const r={position:0};const n=[];let s="";while(r.positione!=='"'&&e!==","),t,r);if(r.positione===9||e===32));n.push(s);s=""}return n}function getDecodeSplit(e,t){const r=t.get(e,true);if(r===null){return null}return gettingDecodingSplitting(r)}const N=new TextDecoder;function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=N.decode(e);return t}class EnvironmentSettingsObjectBase{get baseUrl(){return c()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const R=new EnvironmentSettingsObject;e.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:h,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:g,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:m,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:Q,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:R}},5893:(e,t,r)=>{const{types:n,inspect:s}=r(7975);const{markAsUncloneable:i}=r(5919);const{toUSVString:o}=r(3440);const a={};a.converters={};a.util={};a.errors={};a.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};a.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return a.errors.exception({header:e.prefix,message:r})};a.errors.invalidArgument=function(e){return a.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};a.brandCheck=function(e,t,r){if(r?.strict!==false){if(!(e instanceof t)){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}else{if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}};a.argumentLengthCheck=function({length:e},t,r){if(e{});a.util.ConvertToInt=function(e,t,r,n){let s;let i;if(t===64){s=Math.pow(2,53)-1;if(r==="unsigned"){i=0}else{i=Math.pow(-2,53)+1}}else if(r==="unsigned"){i=0;s=Math.pow(2,t)-1}else{i=Math.pow(-2,t)-1;s=Math.pow(2,t-1)-1}let o=Number(e);if(o===0){o=0}if(n?.enforceRange===true){if(Number.isNaN(o)||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY){throw a.errors.exception({header:"Integer conversion",message:`Could not convert ${a.util.Stringify(e)} to an integer.`})}o=a.util.IntegerPart(o);if(os){throw a.errors.exception({header:"Integer conversion",message:`Value must be between ${i}-${s}, got ${o}.`})}return o}if(!Number.isNaN(o)&&n?.clamp===true){o=Math.min(Math.max(o,i),s);if(Math.floor(o)%2===0){o=Math.floor(o)}else{o=Math.ceil(o)}return o}if(Number.isNaN(o)||o===0&&Object.is(0,o)||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY){return 0}o=a.util.IntegerPart(o);o=o%Math.pow(2,t);if(r==="signed"&&o>=Math.pow(2,t)-1){return o-Math.pow(2,t)}return o};a.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};a.util.Stringify=function(e){const t=a.util.Type(e);switch(t){case"Symbol":return`Symbol(${e.description})`;case"Object":return s(e);case"String":return`"${e}"`;default:return`${e}`}};a.sequenceConverter=function(e){return(t,r,n,s)=>{if(a.util.Type(t)!=="Object"){throw a.errors.exception({header:r,message:`${n} (${a.util.Stringify(t)}) is not iterable.`})}const i=typeof s==="function"?s():t?.[Symbol.iterator]?.();const o=[];let c=0;if(i===undefined||typeof i.next!=="function"){throw a.errors.exception({header:r,message:`${n} is not iterable.`})}while(true){const{done:t,value:s}=i.next();if(t){break}o.push(e(s,r,`${n}[${c++}]`))}return o}};a.recordConverter=function(e,t){return(r,s,i)=>{if(a.util.Type(r)!=="Object"){throw a.errors.exception({header:s,message:`${i} ("${a.util.Type(r)}") is not an Object.`})}const o={};if(!n.isProxy(r)){const n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const a of n){const n=e(a,s,i);const c=t(r[a],s,i);o[n]=c}return o}const c=Reflect.ownKeys(r);for(const n of c){const a=Reflect.getOwnPropertyDescriptor(r,n);if(a?.enumerable){const a=e(n,s,i);const c=t(r[n],s,i);o[a]=c}}return o}};a.interfaceConverter=function(e){return(t,r,n,s)=>{if(s?.strict!==false&&!(t instanceof e)){throw a.errors.exception({header:r,message:`Expected ${n} ("${a.util.Stringify(t)}") to be an instance of ${e.name}.`})}return t}};a.dictionaryConverter=function(e){return(t,r,n)=>{const s=a.util.Type(t);const i={};if(s==="Null"||s==="Undefined"){return i}else if(s!=="Object"){throw a.errors.exception({header:r,message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const s of e){const{key:e,defaultValue:o,required:c,converter:l}=s;if(c===true){if(!Object.hasOwn(t,e)){throw a.errors.exception({header:r,message:`Missing required key "${e}".`})}}let A=t[e];const u=Object.hasOwn(s,"defaultValue");if(u&&A!==null){A??=o()}if(c||u||A!==undefined){A=l(A,r,`${n}.${e}`);if(s.allowedValues&&!s.allowedValues.includes(A)){throw a.errors.exception({header:r,message:`${A} is not an accepted type. Expected one of ${s.allowedValues.join(", ")}.`})}i[e]=A}}return i}};a.nullableConverter=function(e){return(t,r,n)=>{if(t===null){return t}return e(t,r,n)}};a.converters.DOMString=function(e,t,r,n){if(e===null&&n?.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw a.errors.exception({header:t,message:`${r} is a symbol, which cannot be converted to a DOMString.`})}return String(e)};a.converters.ByteString=function(e,t,r){const n=a.converters.DOMString(e,t,r);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${n.charCodeAt(e)} which is greater than 255.`)}}return n};a.converters.USVString=o;a.converters.boolean=function(e){const t=Boolean(e);return t};a.converters.any=function(e){return e};a.converters["long long"]=function(e,t,r){const n=a.util.ConvertToInt(e,64,"signed",undefined,t,r);return n};a.converters["unsigned long long"]=function(e,t,r){const n=a.util.ConvertToInt(e,64,"unsigned",undefined,t,r);return n};a.converters["unsigned long"]=function(e,t,r){const n=a.util.ConvertToInt(e,32,"unsigned",undefined,t,r);return n};a.converters["unsigned short"]=function(e,t,r,n){const s=a.util.ConvertToInt(e,16,"unsigned",n,t,r);return s};a.converters.ArrayBuffer=function(e,t,r,s){if(a.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw a.errors.conversionFailed({prefix:t,argument:`${r} ("${a.util.Stringify(e)}")`,types:["ArrayBuffer"]})}if(s?.allowShared===false&&n.isSharedArrayBuffer(e)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.resizable||e.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.TypedArray=function(e,t,r,s,i){if(a.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw a.errors.conversionFailed({prefix:r,argument:`${s} ("${a.util.Stringify(e)}")`,types:[t.name]})}if(i?.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.DataView=function(e,t,r,s){if(a.util.Type(e)!=="Object"||!n.isDataView(e)){throw a.errors.exception({header:t,message:`${r} is not a DataView.`})}if(s?.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw a.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw a.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};a.converters.BufferSource=function(e,t,r,s){if(n.isAnyArrayBuffer(e)){return a.converters.ArrayBuffer(e,t,r,{...s,allowShared:false})}if(n.isTypedArray(e)){return a.converters.TypedArray(e,e.constructor,t,r,{...s,allowShared:false})}if(n.isDataView(e)){return a.converters.DataView(e,t,r,{...s,allowShared:false})}throw a.errors.conversionFailed({prefix:t,argument:`${r} ("${a.util.Stringify(e)}")`,types:["BufferSource"]})};a.converters["sequence"]=a.sequenceConverter(a.converters.ByteString);a.converters["sequence>"]=a.sequenceConverter(a.converters["sequence"]);a.converters["record"]=a.recordConverter(a.converters.ByteString,a.converters.ByteString);e.exports={webidl:a}},2607:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},8355:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:i}=r(3610);const{kState:o,kError:a,kResult:c,kEvents:l,kAborted:A}=r(961);const{webidl:u}=r(5893);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[o]="empty";this[c]=null;this[a]=null;this[l]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");e=u.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");e=u.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsText");e=u.converters.Blob(e,{strict:false});if(t!==undefined){t=u.converters.DOMString(t,"FileReader.readAsText","encoding")}s(this,e,"Text",t)}readAsDataURL(e){u.brandCheck(this,FileReader);u.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");e=u.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[o]==="empty"||this[o]==="done"){this[c]=null;return}if(this[o]==="loading"){this[o]="done";this[c]=null}this[A]=true;i("abort",this);if(this[o]!=="loading"){i("loadend",this)}}get readyState(){u.brandCheck(this,FileReader);switch(this[o]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){u.brandCheck(this,FileReader);return this[c]}get error(){u.brandCheck(this,FileReader);return this[a]}get onloadend(){u.brandCheck(this,FileReader);return this[l].loadend}set onloadend(e){u.brandCheck(this,FileReader);if(this[l].loadend){this.removeEventListener("loadend",this[l].loadend)}if(typeof e==="function"){this[l].loadend=e;this.addEventListener("loadend",e)}else{this[l].loadend=null}}get onerror(){u.brandCheck(this,FileReader);return this[l].error}set onerror(e){u.brandCheck(this,FileReader);if(this[l].error){this.removeEventListener("error",this[l].error)}if(typeof e==="function"){this[l].error=e;this.addEventListener("error",e)}else{this[l].error=null}}get onloadstart(){u.brandCheck(this,FileReader);return this[l].loadstart}set onloadstart(e){u.brandCheck(this,FileReader);if(this[l].loadstart){this.removeEventListener("loadstart",this[l].loadstart)}if(typeof e==="function"){this[l].loadstart=e;this.addEventListener("loadstart",e)}else{this[l].loadstart=null}}get onprogress(){u.brandCheck(this,FileReader);return this[l].progress}set onprogress(e){u.brandCheck(this,FileReader);if(this[l].progress){this.removeEventListener("progress",this[l].progress)}if(typeof e==="function"){this[l].progress=e;this.addEventListener("progress",e)}else{this[l].progress=null}}get onload(){u.brandCheck(this,FileReader);return this[l].load}set onload(e){u.brandCheck(this,FileReader);if(this[l].load){this.removeEventListener("load",this[l].load)}if(typeof e==="function"){this[l].load=e;this.addEventListener("load",e)}else{this[l].load=null}}get onabort(){u.brandCheck(this,FileReader);return this[l].abort}set onabort(e){u.brandCheck(this,FileReader);if(this[l].abort){this.removeEventListener("abort",this[l].abort)}if(typeof e==="function"){this[l].abort=e;this.addEventListener("abort",e)}else{this[l].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},8573:(e,t,r)=>{const{webidl:n}=r(5893);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e,"ProgressEvent constructor","type");t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:n.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:n.converters.boolean,defaultValue:()=>false},{key:"composed",converter:n.converters.boolean,defaultValue:()=>false}]);e.exports={ProgressEvent:ProgressEvent}},961:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(e,t,r)=>{const{kState:n,kError:s,kResult:i,kAborted:o,kLastProgressEventFired:a}=r(961);const{ProgressEvent:c}=r(8573);const{getEncoding:l}=r(2607);const{serializeAMimeType:A,parseMIMEType:u}=r(1900);const{types:d}=r(7975);const{StringDecoder:p}=r(3193);const{btoa:m}=r(4573);const h={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}e[n]="loading";e[i]=null;e[s]=null;const l=t.stream();const A=l.getReader();const u=[];let p=A.read();let m=true;(async()=>{while(!e[o]){try{const{done:l,value:h}=await p;if(m&&!e[o]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}m=false;if(!l&&d.isUint8Array(h)){u.push(h);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[o]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}p=A.read()}else if(l){queueMicrotask((()=>{e[n]="done";try{const n=packageData(u,r,t.type,c);if(e[o]){return}e[i]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[o]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=u(r||"application/octet-stream");if(n!=="failure"){t+=A(n)}t+=";base64,";const s=new p("latin1");for(const r of e){t+=m(s.write(r))}t+=m(s.end());return t}case"Text":{let t="failure";if(n){t=l(n)}if(t==="failure"&&r){const e=u(r);if(e!=="failure"){t=l(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new p("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const i=r.slice(s);return new TextDecoder(t).decode(i)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:h,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(e,t,r)=>{const{uid:n,states:s,sentCloseFrameState:i,emptyBuffer:o,opcodes:a}=r(736);const{kReadyState:c,kSentClose:l,kByteParser:A,kReceivedClose:u,kResponse:d}=r(1216);const{fireEvent:p,failWebsocketConnection:m,isClosing:h,isClosed:g,isEstablished:f,parseExtensions:y}=r(8625);const{channels:C}=r(2414);const{CloseEvent:E}=r(5188);const{makeRequest:B}=r(9967);const{fetching:I}=r(4398);const{Headers:Q,getHeadersList:b}=r(660);const{getDecodeSplit:S}=r(3168);const{WebsocketFrameSend:w}=r(3264);let N;try{N=r(7598)}catch{}function establishWebSocketConnection(e,t,r,s,i,o){const a=e;a.protocol=e.protocol==="ws:"?"http:":"https:";const c=B({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=b(new Q(o.headers));c.headersList=e}const l=N.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l);c.headersList.append("sec-websocket-version","13");for(const e of t){c.headersList.append("sec-websocket-protocol",e)}const A="permessage-deflate; client_max_window_bits";c.headersList.append("sec-websocket-extensions",A);const u=I({request:c,useParallelQueue:true,dispatcher:o.dispatcher,processResponse(e){if(e.type==="error"||e.status!==101){m(s,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){m(s,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){m(s,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){m(s,'Server did not set Connection header to "upgrade".');return}const r=e.headersList.get("Sec-WebSocket-Accept");const o=N.createHash("sha1").update(l+n).digest("base64");if(r!==o){m(s,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const a=e.headersList.get("Sec-WebSocket-Extensions");let A;if(a!==null){A=y(a);if(!A.has("permessage-deflate")){m(s,"Sec-WebSocket-Extensions header does not match.");return}}const u=e.headersList.get("Sec-WebSocket-Protocol");if(u!==null){const e=S("sec-websocket-protocol",c.headersList);if(!e.includes(u)){m(s,"Protocol was not set in the opening handshake.");return}}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(C.open.hasSubscribers){C.open.publish({address:e.socket.address(),protocol:u,extensions:a})}i(e,A)}});return u}function closeWebSocketConnection(e,t,r,n){if(h(e)||g(e)){}else if(!f(e)){m(e,"Connection was closed before it was established.");e[c]=s.CLOSING}else if(e[l]===i.NOT_SENT){e[l]=i.PROCESSING;const A=new w;if(t!==undefined&&r===undefined){A.frameData=Buffer.allocUnsafe(2);A.frameData.writeUInt16BE(t,0)}else if(t!==undefined&&r!==undefined){A.frameData=Buffer.allocUnsafe(2+n);A.frameData.writeUInt16BE(t,0);A.frameData.write(r,2,"utf-8")}else{A.frameData=o}const u=e[d].socket;u.write(A.createFrame(a.CLOSE));e[l]=i.SENT;e[c]=s.CLOSING}else{e[c]=s.CLOSING}}function onSocketData(e){if(!this.ws[A].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const{[d]:t}=e;t.socket.off("data",onSocketData);t.socket.off("close",onSocketClose);t.socket.off("error",onSocketError);const r=e[l]===i.SENT&&e[u];let n=1005;let o="";const a=e[A].closingInfo;if(a&&!a.error){n=a.code??1005;o=a.reason}else if(!e[u]){n=1006}e[c]=s.CLOSED;p("close",e,((e,t)=>new E(e,t)),{wasClean:r,code:n,reason:o});if(C.close.hasSubscribers){C.close.publish({websocket:e,code:n,reason:o})}}function onSocketError(e){const{ws:t}=this;t[c]=s.CLOSING;if(C.socketError.hasSubscribers){C.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={NOT_SENT:0,PROCESSING:1,SENT:2};const i={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const a={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const c=Buffer.allocUnsafe(0);const l={string:1,typedArray:2,arrayBuffer:3,blob:4};e.exports={uid:t,sentCloseFrameState:s,staticPropertyDescriptors:r,states:n,opcodes:i,maxUnsigned16Bit:o,parserStates:a,emptyBuffer:c,sendHints:l}},5188:(e,t,r)=>{const{webidl:n}=r(5893);const{kEnumerableProperty:s}=r(3440);const{kConstruct:i}=r(6443);const{MessagePort:o}=r(5919);class MessageEvent extends Event{#$;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]);n.util.markAsUncloneable(this);return}const r="MessageEvent constructor";n.argumentLengthCheck(arguments,1,r);e=n.converters.DOMString(e,r,"type");t=n.converters.MessageEventInit(t,r,"eventInitDict");super(e,t);this.#$=t;n.util.markAsUncloneable(this)}get data(){n.brandCheck(this,MessageEvent);return this.#$.data}get origin(){n.brandCheck(this,MessageEvent);return this.#$.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#$.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#$.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#$.ports)){Object.freeze(this.#$.ports)}return this.#$.ports}initMessageEvent(e,t=false,r=false,s=null,i="",o="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:i,lastEventId:o,source:a,ports:c})}static createFastMessageEvent(e,t){const r=new MessageEvent(i,e,t);r.#$=t;r.#$.data??=null;r.#$.origin??="";r.#$.lastEventId??="";r.#$.source??=null;r.#$.ports??=[];return r}}const{createFastMessageEvent:a}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#$;constructor(e,t={}){const r="CloseEvent constructor";n.argumentLengthCheck(arguments,1,r);e=n.converters.DOMString(e,r,"type");t=n.converters.CloseEventInit(t);super(e,t);this.#$=t;n.util.markAsUncloneable(this)}get wasClean(){n.brandCheck(this,CloseEvent);return this.#$.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#$.code}get reason(){n.brandCheck(this,CloseEvent);return this.#$.reason}}class ErrorEvent extends Event{#$;constructor(e,t){const r="ErrorEvent constructor";n.argumentLengthCheck(arguments,1,r);super(e,t);n.util.markAsUncloneable(this);e=n.converters.DOMString(e,r,"type");t=n.converters.ErrorEventInit(t??{});this.#$=t}get message(){n.brandCheck(this,ErrorEvent);return this.#$.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#$.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#$.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#$.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#$.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const c=[{key:"bubbles",converter:n.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:n.converters.boolean,defaultValue:()=>false},{key:"composed",converter:n.converters.boolean,defaultValue:()=>false}];n.converters.MessageEventInit=n.dictionaryConverter([...c,{key:"data",converter:n.converters.any,defaultValue:()=>null},{key:"origin",converter:n.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:()=>""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:n.converters["sequence"],defaultValue:()=>new Array(0)}]);n.converters.CloseEventInit=n.dictionaryConverter([...c,{key:"wasClean",converter:n.converters.boolean,defaultValue:()=>false},{key:"code",converter:n.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:n.converters.USVString,defaultValue:()=>""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...c,{key:"message",converter:n.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:n.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:a}},3264:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(736);const s=16386;let i;let o=null;let a=s;try{i=r(7598)}catch{i={randomFillSync:function randomFillSync(e,t,r){for(let t=0;tn){o+=8;i=127}else if(s>125){o+=2;i=126}const a=Buffer.allocUnsafe(s+o);a[0]=a[1]=0;a[0]|=128;a[0]=(a[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:i}=r(8625);const{MessageSizeExceededError:o}=r(8707);const a=Buffer.from([0,0,255,255]);const c=Symbol("kBuffer");const l=Symbol("kLength");const A=4*1024*1024;class PerMessageDeflate{#j;#p={};#S=false;#K=null;constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#S){r(new o);return}if(!this.#j){let e=s;if(this.#p.serverMaxWindowBits){if(!i(this.#p.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}try{this.#j=n({windowBits:e})}catch(e){r(e);return}this.#j[c]=[];this.#j[l]=0;this.#j.on("data",(e=>{if(this.#S){return}this.#j[l]+=e.length;if(this.#j[l]>A){this.#S=true;this.#j.removeAllListeners();this.#j.destroy();this.#j=null;if(this.#K){const e=this.#K;this.#K=null;e(new o)}return}this.#j[c].push(e)}));this.#j.on("error",(e=>{this.#j=null;r(e)}))}this.#K=r;this.#j.write(e);if(t){this.#j.write(a)}this.#j.flush((()=>{if(this.#S||!this.#j){return}const e=Buffer.concat(this.#j[c],this.#j[l]);this.#j[c].length=0;this.#j[l]=0;this.#K=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(736);const{kReadyState:A,kSentClose:u,kResponse:d,kReceivedClose:p}=r(1216);const{channels:m}=r(2414);const{isValidStatusCode:h,isValidOpcode:g,failWebsocketConnection:f,websocketMessageReceived:y,utf8Decode:C,isControlFrame:E,isTextBinaryFrame:B,isContinuationFrame:I}=r(8625);const{WebsocketFrameSend:Q}=r(3264);const{closeWebSocketConnection:b}=r(6897);const{PerMessageDeflate:S}=r(9469);class ByteParser extends n{#X=[];#Z=0;#ee=false;#E=i.INFO;#te={};#re=[];#ne;constructor(e,t){super();this.ws=e;this.#ne=t==null?new Map:t;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new S(t))}}_write(e,t,r){this.#X.push(e);this.#Z+=e.length;this.#ee=true;this.run(r)}run(e){while(this.#ee){if(this.#E===i.INFO){if(this.#Z<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const A=t[0]&32;const u=t[0]&16;if(!g(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#ne.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(A!==0||u!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!B(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(B(n)&&this.#re.length>0){f(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&E(n)){f(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#re.length===0&&!this.#te.compressed){f(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#te.payloadLength=c;this.#E=i.READ_DATA}else if(c===126){this.#E=i.PAYLOADLENGTH_16}else if(c===127){this.#E=i.PAYLOADLENGTH_64}if(B(n)){this.#te.binaryType=n;this.#te.compressed=l!==0}this.#te.opcode=n;this.#te.masked=s;this.#te.fin=r;this.#te.fragmented=a}else if(this.#E===i.PAYLOADLENGTH_16){if(this.#Z<2){return e()}const t=this.consume(2);this.#te.payloadLength=t.readUInt16BE(0);this.#E=i.READ_DATA}else if(this.#E===i.PAYLOADLENGTH_64){if(this.#Z<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=n;this.#E=i.READ_DATA}else if(this.#E===i.READ_DATA){if(this.#Z{if(t){f(this.ws,t.message);return}this.#re.push(r);if(!this.#te.fin){this.#E=i.INFO;this.#ee=true;this.run(e);return}y(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#E=i.INFO;this.#re.length=0;this.run(e)}));this.#ee=false;break}}}}}consume(e){if(e>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#X[0].length===e){this.#Z-=this.#X[0].length;return this.#X.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#X[0];const{length:s}=n;if(s+r===e){t.set(this.#X.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#X[0]=n.subarray(e-r);break}else{t.set(this.#X.shift(),r);r+=n.length}}this.#Z-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!h(t)){return{code:1002,reason:"Invalid status code",error:true}}let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}try{r=C(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:r,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:r}=this.#te;if(t===o.CLOSE){if(r===1){f(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(e);if(this.#te.closeInfo.error){const{code:e,reason:t}=this.#te.closeInfo;b(this.ws,e,t,t.length);f(this.ws,t);return false}if(this.ws[u]!==l.SENT){let e=c;if(this.#te.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#te.closeInfo.code,0)}const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.CLOSE),(e=>{if(!e){this.ws[u]=l.SENT}}))}this.ws[A]=a.CLOSING;this.ws[p]=true;return false}else if(t===o.PING){if(!this.ws[p]){const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.PONG));if(m.ping.hasSubscribers){m.ping.publish({payload:e})}}}else if(t===o.PONG){if(m.pong.hasSubscribers){m.pong.publish({payload:e})}}return true}get closingInfo(){return this.#te.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,r)=>{const{WebsocketFrameSend:n}=r(3264);const{opcodes:s,sendHints:i}=r(736);const o=r(4660);const a=Buffer[Symbol.species];class SendQueue{#se=new o;#ie=false;#oe;constructor(e){this.#oe=e}add(e,t,r){if(r!==i.blob){const n=createFrame(e,r);if(!this.#ie){this.#oe.write(n,t)}else{const e={promise:null,callback:t,frame:n};this.#se.push(e)}return}const n={promise:e.arrayBuffer().then((e=>{n.promise=null;n.frame=createFrame(e,r)})),callback:t,frame:null};this.#se.push(n);if(!this.#ie){this.#ae()}}async#ae(){this.#ie=true;const e=this.#se;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#ie=false}}function createFrame(e,t){return new n(toBuffer(e,t)).createFrame(t===i.string?s.TEXT:s.BINARY)}function toBuffer(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new a(e);case i.typedArray:return new a(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:i,kBinaryType:o,kWebSocketURL:a}=r(1216);const{states:c,opcodes:l}=r(736);const{ErrorEvent:A,createFastMessageEvent:u}=r(5188);const{isUtf8:d}=r(4573);const{collectASequenceOfCodePointsFast:p,removeHTTPWhitespace:m}=r(1900);function isConnecting(e){return e[n]===c.CONNECTING}function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=(e,t)=>new Event(e,t),n={}){const s=r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===l.TEXT){try{s=f(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===l.BINARY){if(e[o]==="blob"){s=new Blob([r])}else{s=toArrayBuffer(r)}}fireEvent("message",e,u,{origin:e[a].origin,data:s})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[i]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new A(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===l.CLOSE||e===l.PING||e===l.PONG}function isContinuationFrame(e){return e===l.CONTINUATION}function isTextBinaryFrame(e){return e===l.TEXT||e===l.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const r=new Map;while(t.position57){return false}}const t=Number.parseInt(e,10);return t>=8&&t<=15}const h=typeof process.versions.icu==="string";const g=h?new TextDecoder("utf-8",{fatal:true}):undefined;const f=h?g.decode.bind(g):function(e){if(d(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:f,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,r)=>{const{webidl:n}=r(5893);const{URLSerializer:s}=r(1900);const{environmentSettingsObject:i}=r(3168);const{staticPropertyDescriptors:o,states:a,sentCloseFrameState:c,sendHints:l}=r(736);const{kWebSocketURL:A,kReadyState:u,kController:d,kBinaryType:p,kResponse:m,kSentClose:h,kByteParser:g}=r(1216);const{isConnecting:f,isEstablished:y,isClosing:C,isValidSubprotocol:E,fireEvent:B}=r(8625);const{establishWebSocketConnection:I,closeWebSocketConnection:Q}=r(6897);const{ByteParser:b}=r(1652);const{kEnumerableProperty:S,isBlobLike:w}=r(3440);const{getGlobalDispatcher:N}=r(2581);const{types:R}=r(7975);const{ErrorEvent:x,CloseEvent:v}=r(5188);const{SendQueue:D}=r(3900);class WebSocket extends EventTarget{#M={open:null,error:null,close:null,message:null};#ce=0;#le="";#ne="";#Ae;constructor(e,t=[]){super();n.util.markAsUncloneable(this);const r="WebSocket constructor";n.argumentLengthCheck(arguments,1,r);const s=n.converters["DOMString or sequence or WebSocketInit"](t,r,"options");e=n.converters.USVString(e,r,"url");t=s.protocols;const o=i.settingsObject.baseUrl;let a;try{a=new URL(e,o)}catch(e){throw new DOMException(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>E(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[A]=new URL(a.href);const l=i.settingsObject;this[d]=I(a,t,l,this,((e,t)=>this.#ue(e,t)),s);this[u]=WebSocket.CONNECTING;this[h]=c.NOT_SENT;this[p]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);const r="WebSocket.close";if(e!==undefined){e=n.converters["unsigned short"](e,r,"code",{clamp:true})}if(t!==undefined){t=n.converters.USVString(t,r,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let s=0;if(t!==undefined){s=Buffer.byteLength(t);if(s>123){throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError")}}Q(this,e,t,s)}send(e){n.brandCheck(this,WebSocket);const t="WebSocket.send";n.argumentLengthCheck(arguments,1,t);e=n.converters.WebSocketSendData(e,t,"data");if(f(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!y(this)||C(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#ce+=t;this.#Ae.add(e,(()=>{this.#ce-=t}),l.string)}else if(R.isArrayBuffer(e)){this.#ce+=e.byteLength;this.#Ae.add(e,(()=>{this.#ce-=e.byteLength}),l.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#ce+=e.byteLength;this.#Ae.add(e,(()=>{this.#ce-=e.byteLength}),l.typedArray)}else if(w(e)){this.#ce+=e.size;this.#Ae.add(e,(()=>{this.#ce-=e.size}),l.blob)}}get readyState(){n.brandCheck(this,WebSocket);return this[u]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#ce}get url(){n.brandCheck(this,WebSocket);return s(this[A])}get extensions(){n.brandCheck(this,WebSocket);return this.#ne}get protocol(){n.brandCheck(this,WebSocket);return this.#le}get onopen(){n.brandCheck(this,WebSocket);return this.#M.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#M.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#M.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#M.close){this.removeEventListener("close",this.#M.close)}if(typeof e==="function"){this.#M.close=e;this.addEventListener("close",e)}else{this.#M.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#M.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[p]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[p]="blob"}else{this[p]=e}}#ue(e,t){this[m]=e;const r=new b(this,t);r.on("drain",onParserDrain);r.on("error",onParserError.bind(this));e.socket.ws=this;this[g]=r;this.#Ae=new D(e.socket);this[u]=a.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#ne=n}const s=e.headersList.get("sec-websocket-protocol");if(s!==null){this.#le=s}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=a.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=a.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=a.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=a.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:S,readyState:S,bufferedAmount:S,onopen:S,onerror:S,onclose:S,close:S,onmessage:S,binaryType:S,send:S,extensions:S,protocol:S,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e,t,r){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e,t,r)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:n.converters.any,defaultValue:()=>N()},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(w(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||R.isArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};function onParserDrain(){this.ws[m].socket.resume()}function onParserError(e){let t;let r;if(e instanceof v){t=e.reason;r=e.code}else{t=e.message}B("error",this,(()=>new x("error",{error:e,message:t})));Q(this,r)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},7030:t=>{t.exports=e(import.meta.url)("node:net")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},8658:(e,t,r)=>{const n=r(4012);e.exports={version:n.version}},6492:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(8161);var s=r(6760);var i=r(1455);var o=r(3838);var a=r(8570);var c=r(9805);var l=r(8701);var A=r(2088);var u=r(5807);var d=r(4318);var p=r(6269);function getInputs(){const e={required:false,trimWhitespace:true};return{version:(0,o.V4)("version",e)||"latest",cache_prefix:(0,o.V4)("cache_prefix",e)||"",dir:(0,s.resolve)((0,o.V4)("dir",e)||(0,n.tmpdir)()),db_user:(0,o.V4)("db_user",e)||"wordpress",db_password:(0,o.V4)("db_password",e)||"wordpress",db_name:(0,o.V4)("db_name",e)||"wordpress_test",db_host:(0,o.V4)("db_host",e)||"127.0.0.1",has_cache:(0,a.w3)()&&!(0,d.yz)(),has_toolcache:process.env.RUNNER_TOOL_CACHE!==undefined,semver:undefined}}function resolveSemVer(e,t){t.semver=(0,A.coerce)(e)?.format();if(!t.semver){t.has_cache=false;t.has_toolcache=false}}async function cacheTool(e,t,r){if(r.has_toolcache){(0,o.pq)(`📦 Caching ${e} as ${t} ${r.semver}…`);const n=await(0,c.e8)(e,t,r.semver);(0,o.pq)(`ℹ️ Saved cache to ${n}`)}}async function findCached(e,t,r){if(r.has_toolcache&&r.semver){(0,o.pq)(`ℹ️ Checking tool cache for ${t} ${r.semver}…`);const n=(0,c.I6)(t,r.semver);if(n){const a=(0,s.resolve)(n);(0,o.pq)(`🚀 Using cached ${e} from ${a}`);await(0,i.symlink)(a,`${r.dir}/${t}`);return true}(0,o.pq)(`😔 ${t} ${r.semver} was not found in the tool cache`)}if(r.has_cache){const n=`2:${r.cache_prefix}:${t}:${r.semver}`;(0,o.pq)(`ℹ️ Checking cache key ${n} for ${t}…`);const i=await(0,a.P3)([t],n);if(i){(0,o.pq)(`🚀 Using cached ${e}, key is ${n}`);await cacheTool((0,s.join)(r.dir,t),t,r);return true}(0,o.LZ)(`dir_${t}`,r.dir);(0,o.LZ)(`cache_key_${t}`,n)}return false}async function downloadWordPress(e,t){const r=(0,s.join)(t.dir,"wordpress.zip");try{if(await findCached("WordPress","wordpress",t)){return}(0,o.pq)(`📥 Downloading WordPress…`);const n=await(0,c.bq)(e,r);const s=await(0,c.JE)(n,t.dir);await cacheTool(`${s}/wordpress`,"wordpress",t)}finally{await(0,l.Yz)(r)}}async function downloadTestLibrary(e,t){if(await findCached("WordPress Test Library","wordpress-tests-lib",t)){return}(0,o.pq)(`📥 Downloading WordPress Test Library…`);await(0,l.U$)((0,s.join)(t.dir,"wordpress-tests-lib"));const r=new u.z;r.setConfig({silent:true});const[,,n]=await Promise.all([r.checkout(`${e}/tests/phpunit/includes/`,`${t.dir}/wordpress-tests-lib/includes`),r.checkout(`${e}/tests/phpunit/data/`,`${t.dir}/wordpress-tests-lib/data`),(0,d.GP)(`${e}/wp-tests-config-sample.php`)]);await Promise.all([(0,l.Yz)(`${t.dir}/wordpress-tests-lib/includes/.svn`),(0,l.Yz)(`${t.dir}/wordpress-tests-lib/data/.svn`),(0,i.writeFile)((0,s.join)(t.dir,"wordpress-tests-lib","wp-tests-config-sample.php"),n)]);await cacheTool(`${t.dir}/wordpress-tests-lib`,"wordpress-tests-lib",t)}async function configureWordPress(e){const t=(0,s.join)(e.dir,"wordpress-tests-lib");const r=(await(0,i.readFile)((0,s.join)(t,"wp-tests-config-sample.php"),"utf8")).replace("youremptytestdbnamehere",e.db_name).replace("yourusernamehere",e.db_user).replace("yourpasswordhere",e.db_password).replace("localhost",e.db_host).replace("dirname( __FILE__ ) . '/src/'",`'${e.dir}/wordpress/'`);return(0,i.writeFile)((0,s.join)(e.dir,"wordpress-tests-lib","wp-tests-config.php"),r)}async function run(){try{const e=getInputs();if(!await(0,d.Q7)(e.dir)){throw new Error(`Directory ${e.dir} does not exist`)}(0,o.pq)("🤔 Determining WordPress version…");const t=await(0,p.Eq)(e.version);(0,o.pq)(`ℹ️ WordPress version: ${t}`);(0,o.uH)("wp_version",t);resolveSemVer(t,e);await Promise.all([(0,l.Yz)((0,s.join)(e.dir,"wordpress")),(0,l.Yz)((0,s.join)(e.dir,"wordpress-tests-lib")),(0,l.Yz)((0,s.join)(e.dir,"wordpress.zip"))]);(0,o.pq)(`ℹ️ Cache is available: ${e.has_cache?"yes":"no"}`);(0,o.pq)(`ℹ️ Tool cache is available: ${e.has_toolcache?"yes":"no"}`);const r=(0,p.dL)(t);const n=(0,p.hE)(t);const i=process.env.GITHUB_WORKSPACE;try{process.env.GITHUB_WORKSPACE=e.dir;await Promise.all([downloadWordPress(r,e),downloadTestLibrary(n,e)])}finally{process.env.GITHUB_WORKSPACE=i}(0,o.pq)("⚙️ Configuring WordPress…");await configureWordPress(e);(0,o.dN)("WP_TESTS_DIR",(0,s.join)(e.dir,"wordpress-tests-lib"));(0,o.uH)("wp_directory",(0,s.join)(e.dir,"wordpress"));(0,o.uH)("wptl_directory",(0,s.join)(e.dir,"wordpress-tests-lib"));(0,o.LZ)("ok_to_save_cache","yes");(0,o.pq)("✅ Success")}catch(e){const t=e instanceof Error?e:new Error("An unknown error occurred",{cause:e});(0,o.C1)(`❌ ${t.message}`)}}await run();t()}catch(m){t(m)}}),1)},4318:(e,t,r)=>{r.d(t,{GP:()=>downloadAsText,M7:()=>sortVersions,Q7:()=>isDir,yz:()=>isGHES});var n=r(1455);var s=r(4942);function sortVersions(e){return e.sort(((e,t)=>{const r=e.split(".");const n=t.split(".");for(let e=0;e{r.d(t,{dL:()=>getWordPressDownloadUrl,hE:()=>getWordPressTestLibraryBaseUrl,Eq:()=>resolveWordPressVersion});var n=r(4942);var s=r(4318);async function getLatestVersion(){const e=new n.Qq;const t=await e.getJson("http://api.wordpress.org/core/version-check/1.7/");if(t.statusCode===200&&t.result){return t.result.offers[0].version}throw new Error(`Failed to fetch WordPress versions: error ${t.statusCode}`)}async function getLatestBranchVersion(e){const t=new n.Qq;const r=await t.getJson("https://api.wordpress.org/core/version-check/1.7/");if(r.statusCode===200&&r.result){const t=r.result.offers.filter((t=>t.version.startsWith(e))).map((e=>e.version));const n=(0,s.M7)(t);return n[0]}throw new Error(`Failed to fetch WordPress versions: error ${r.statusCode}`)}const i="https://wordpress.org/nightly-builds/wordpress-latest.zip";const o="https://wordpress.org/wordpress-";const a="https://develop.svn.wordpress.org/";function resolveWordPressVersion(e){if(e==="nightly"||e==="trunk"){return Promise.resolve("nightly")}if(e==="latest"){return getLatestVersion()}if(e.endsWith(".x")){return getLatestBranchVersion(e.slice(0,-2))}return Promise.resolve(e)}function getWordPressDownloadUrl(e){if(e==="nightly"){return i}return`${o}${e}.zip`}function getWordPressTestLibraryBaseUrl(e){const t=e==="nightly"?"trunk":`tags/${e}`;return`${a}${t}`}},8570:(t,r,n)=>{n.d(r,{w3:()=>isFeatureAvailable,P3:()=>restoreCache});var s={};n.r(s);n.d(s,{AccessPolicy:()=>bs,AppendBlobAppendBlockExceptionHeaders:()=>oa,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ca,AppendBlobAppendBlockFromUrlHeaders:()=>aa,AppendBlobAppendBlockHeaders:()=>ia,AppendBlobCreateExceptionHeaders:()=>sa,AppendBlobCreateHeaders:()=>na,AppendBlobSealExceptionHeaders:()=>Aa,AppendBlobSealHeaders:()=>la,ArrowConfiguration:()=>Vs,ArrowField:()=>Gs,BlobAbortCopyFromURLExceptionHeaders:()=>Ro,BlobAbortCopyFromURLHeaders:()=>No,BlobAcquireLeaseExceptionHeaders:()=>uo,BlobAcquireLeaseHeaders:()=>Ao,BlobBreakLeaseExceptionHeaders:()=>Eo,BlobBreakLeaseHeaders:()=>Co,BlobChangeLeaseExceptionHeaders:()=>yo,BlobChangeLeaseHeaders:()=>fo,BlobCopyFromURLExceptionHeaders:()=>wo,BlobCopyFromURLHeaders:()=>So,BlobCreateSnapshotExceptionHeaders:()=>Io,BlobCreateSnapshotHeaders:()=>Bo,BlobDeleteExceptionHeaders:()=>$i,BlobDeleteHeaders:()=>Wi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>io,BlobDeleteImmutabilityPolicyHeaders:()=>so,BlobDownloadExceptionHeaders:()=>Gi,BlobDownloadHeaders:()=>Vi,BlobFlatListSegment:()=>ws,BlobGetAccountInfoExceptionHeaders:()=>ko,BlobGetAccountInfoHeaders:()=>Do,BlobGetPropertiesExceptionHeaders:()=>Ji,BlobGetPropertiesHeaders:()=>Yi,BlobGetTagsExceptionHeaders:()=>Lo,BlobGetTagsHeaders:()=>Mo,BlobHierarchyListSegment:()=>Ds,BlobItemInternal:()=>Ns,BlobName:()=>Rs,BlobPrefix:()=>ks,BlobPropertiesInternal:()=>xs,BlobQueryExceptionHeaders:()=>Po,BlobQueryHeaders:()=>To,BlobReleaseLeaseExceptionHeaders:()=>mo,BlobReleaseLeaseHeaders:()=>po,BlobRenewLeaseExceptionHeaders:()=>go,BlobRenewLeaseHeaders:()=>ho,BlobServiceProperties:()=>rs,BlobServiceStatistics:()=>us,BlobSetExpiryExceptionHeaders:()=>Zi,BlobSetExpiryHeaders:()=>Xi,BlobSetHttpHeadersExceptionHeaders:()=>to,BlobSetHttpHeadersHeaders:()=>eo,BlobSetImmutabilityPolicyExceptionHeaders:()=>no,BlobSetImmutabilityPolicyHeaders:()=>ro,BlobSetLegalHoldExceptionHeaders:()=>ao,BlobSetLegalHoldHeaders:()=>oo,BlobSetMetadataExceptionHeaders:()=>lo,BlobSetMetadataHeaders:()=>co,BlobSetTagsExceptionHeaders:()=>Uo,BlobSetTagsHeaders:()=>Fo,BlobSetTierExceptionHeaders:()=>vo,BlobSetTierHeaders:()=>xo,BlobStartCopyFromURLExceptionHeaders:()=>bo,BlobStartCopyFromURLHeaders:()=>Qo,BlobTag:()=>Is,BlobTags:()=>Bs,BlobUndeleteExceptionHeaders:()=>Ki,BlobUndeleteHeaders:()=>ji,Block:()=>Ms,BlockBlobCommitBlockListExceptionHeaders:()=>Ea,BlockBlobCommitBlockListHeaders:()=>Ca,BlockBlobGetBlockListExceptionHeaders:()=>Ia,BlockBlobGetBlockListHeaders:()=>Ba,BlockBlobPutBlobFromUrlExceptionHeaders:()=>ma,BlockBlobPutBlobFromUrlHeaders:()=>pa,BlockBlobStageBlockExceptionHeaders:()=>ga,BlockBlobStageBlockFromURLExceptionHeaders:()=>ya,BlockBlobStageBlockFromURLHeaders:()=>fa,BlockBlobStageBlockHeaders:()=>ha,BlockBlobUploadExceptionHeaders:()=>da,BlockBlobUploadHeaders:()=>ua,BlockList:()=>Ps,BlockLookupList:()=>Ts,ClearRange:()=>Us,ContainerAcquireLeaseExceptionHeaders:()=>xi,ContainerAcquireLeaseHeaders:()=>Ri,ContainerBreakLeaseExceptionHeaders:()=>Mi,ContainerBreakLeaseHeaders:()=>Pi,ContainerChangeLeaseExceptionHeaders:()=>Fi,ContainerChangeLeaseHeaders:()=>Li,ContainerCreateExceptionHeaders:()=>li,ContainerCreateHeaders:()=>ci,ContainerDeleteExceptionHeaders:()=>pi,ContainerDeleteHeaders:()=>di,ContainerFilterBlobsExceptionHeaders:()=>Ni,ContainerFilterBlobsHeaders:()=>wi,ContainerGetAccessPolicyExceptionHeaders:()=>fi,ContainerGetAccessPolicyHeaders:()=>gi,ContainerGetAccountInfoExceptionHeaders:()=>qi,ContainerGetAccountInfoHeaders:()=>zi,ContainerGetPropertiesExceptionHeaders:()=>ui,ContainerGetPropertiesHeaders:()=>Ai,ContainerItem:()=>ms,ContainerListBlobFlatSegmentExceptionHeaders:()=>Oi,ContainerListBlobFlatSegmentHeaders:()=>Ui,ContainerListBlobHierarchySegmentExceptionHeaders:()=>_i,ContainerListBlobHierarchySegmentHeaders:()=>Hi,ContainerProperties:()=>hs,ContainerReleaseLeaseExceptionHeaders:()=>Di,ContainerReleaseLeaseHeaders:()=>vi,ContainerRenameExceptionHeaders:()=>Qi,ContainerRenameHeaders:()=>Ii,ContainerRenewLeaseExceptionHeaders:()=>Ti,ContainerRenewLeaseHeaders:()=>ki,ContainerRestoreExceptionHeaders:()=>Bi,ContainerRestoreHeaders:()=>Ei,ContainerSetAccessPolicyExceptionHeaders:()=>Ci,ContainerSetAccessPolicyHeaders:()=>yi,ContainerSetMetadataExceptionHeaders:()=>hi,ContainerSetMetadataHeaders:()=>mi,ContainerSubmitBatchExceptionHeaders:()=>Si,ContainerSubmitBatchHeaders:()=>bi,CorsRule:()=>cs,DelimitedTextConfiguration:()=>zs,FilterBlobItem:()=>Es,FilterBlobSegment:()=>Cs,GeoReplication:()=>ds,JsonTextConfiguration:()=>qs,KeyInfo:()=>gs,ListBlobsFlatSegmentResponse:()=>Ss,ListBlobsHierarchySegmentResponse:()=>vs,ListContainersSegmentResponse:()=>ps,Logging:()=>ns,Metrics:()=>as,PageBlobClearPagesExceptionHeaders:()=>Vo,PageBlobClearPagesHeaders:()=>qo,PageBlobCopyIncrementalExceptionHeaders:()=>ra,PageBlobCopyIncrementalHeaders:()=>ta,PageBlobCreateExceptionHeaders:()=>Ho,PageBlobCreateHeaders:()=>Oo,PageBlobGetPageRangesDiffExceptionHeaders:()=>jo,PageBlobGetPageRangesDiffHeaders:()=>$o,PageBlobGetPageRangesExceptionHeaders:()=>Wo,PageBlobGetPageRangesHeaders:()=>Jo,PageBlobResizeExceptionHeaders:()=>Xo,PageBlobResizeHeaders:()=>Ko,PageBlobUpdateSequenceNumberExceptionHeaders:()=>ea,PageBlobUpdateSequenceNumberHeaders:()=>Zo,PageBlobUploadPagesExceptionHeaders:()=>zo,PageBlobUploadPagesFromURLExceptionHeaders:()=>Yo,PageBlobUploadPagesFromURLHeaders:()=>Go,PageBlobUploadPagesHeaders:()=>_o,PageList:()=>Ls,PageRange:()=>Fs,QueryFormat:()=>_s,QueryRequest:()=>Os,QuerySerialization:()=>Hs,RetentionPolicy:()=>ss,ServiceFilterBlobsExceptionHeaders:()=>ai,ServiceFilterBlobsHeaders:()=>oi,ServiceGetAccountInfoExceptionHeaders:()=>ni,ServiceGetAccountInfoHeaders:()=>ri,ServiceGetPropertiesExceptionHeaders:()=>$s,ServiceGetPropertiesHeaders:()=>Ws,ServiceGetStatisticsExceptionHeaders:()=>Ks,ServiceGetStatisticsHeaders:()=>js,ServiceGetUserDelegationKeyExceptionHeaders:()=>ti,ServiceGetUserDelegationKeyHeaders:()=>ei,ServiceListContainersSegmentExceptionHeaders:()=>Zs,ServiceListContainersSegmentHeaders:()=>Xs,ServiceSetPropertiesExceptionHeaders:()=>Js,ServiceSetPropertiesHeaders:()=>Ys,ServiceSubmitBatchExceptionHeaders:()=>ii,ServiceSubmitBatchHeaders:()=>si,SignedIdentifier:()=>Qs,StaticWebsite:()=>ls,StorageError:()=>As,UserDelegationKey:()=>ys});var i=n(3838);var o=n(6928);var a=n(5260);var c=n(9896);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;core.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;core.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;core.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;core.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;core.debug(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}var l=n(2613);const A=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(A&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=path.dirname(e);if(A&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){assert(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);assert(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(A){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();assert(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();assert(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}assert(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||A&&e.endsWith("\\")){}else{e+=path.sep}return e+t}function hasAbsoluteRoot(e){assert(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(A){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){assert(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(A){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function normalizeSeparators(e){e=e||"";if(A){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(path.sep)){return e}if(e===path.sep){return e}if(A&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var u;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(u||(u={}));const d=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const r of e){const e=d?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const n of e){const e=d?n.searchPath.toUpperCase():n.searchPath;if(t[e]==="included"){continue}let s=false;let i=e;let o=pathHelper.dirname(i);while(o!==i){if(t[o]){s=true;break}i=o;o=pathHelper.dirname(i)}if(!s){r.push(n.searchPath);t[e]="included"}}return r}function match(e,t){let r=MatchKind.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var p=n(857);var m=n(3772);const h=process.platform==="win32";class internal_path_Path{constructor(e){this.segments=[];if(typeof e==="string"){assert(e,`Parameter 'itemPath' must not be empty`);e=pathHelper.safeTrimTrailingSeparator(e);if(!pathHelper.hasRoot(e)){this.segments=e.split(path.sep)}else{let t=e;let r=pathHelper.dirname(t);while(r!==t){const e=path.basename(t);this.segments.unshift(e);t=r;r=pathHelper.dirname(t)}this.segments.unshift(t)}}else{assert(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;tinternal_pattern_Pattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new Path(o).toString();this.rootRegExp=new RegExp(internal_pattern_Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const a={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};s=f?s.replace(/\\/g,"/"):s;this.minimatch=new g(s,a)}match(e){if(this.segments[this.segments.length-1]==="**"){e=pathHelper.normalizeSeparators(e);if(!e.endsWith(path.sep)&&this.isImplicitPattern===false){e=`${e}${path.sep}`}}else{e=pathHelper.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?MatchKind.Directory:MatchKind.All}return MatchKind.None}partialMatch(e){e=pathHelper.safeTrimTrailingSeparator(e);if(pathHelper.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){assert(e,"pattern cannot be empty");const r=new Path(e).segments.map((e=>internal_pattern_Pattern.getLiteral(e)));assert(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);assert(!pathHelper.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=pathHelper.normalizeSeparators(e);if(e==="."||e.startsWith(`.${path.sep}`)){e=internal_pattern_Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${path.sep}`)){t=t||os.homedir();assert(t,"Unable to determine HOME directory");assert(pathHelper.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=internal_pattern_Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=pathHelper.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=internal_pattern_Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=pathHelper.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=internal_pattern_Pattern.globEscape(t)+e.substr(1)}else{e=pathHelper.ensureAbsoluteRoot(internal_pattern_Pattern.globEscape(process.cwd()),e)}return pathHelper.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=s;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var C=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var E=undefined&&undefined.__await||function(e){return this instanceof E?(this.v=e,this):new E(e)};var B=undefined&&undefined.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),s[Symbol.asyncIterator]=function(){return this},s;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(n[e]){s[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof E?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};const I=process.platform==="win32";class internal_globber_DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=globOptionsHelper.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return y(this,void 0,void 0,(function*(){var e,t,r,n;const s=[];try{for(var i=true,o=C(this.globGenerator()),a;a=yield o.next(),e=a.done,!e;i=true){n=a.value;i=false;const e=n;s.push(e)}}catch(e){t={error:e}}finally{try{if(!i&&!e&&(r=o.return))yield r.call(o)}finally{if(t)throw t.error}}return s}))}globGenerator(){return B(this,arguments,(function*globGenerator_1(){const e=globOptionsHelper.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of patternHelper.getSearchPaths(t)){core.debug(`Search path '${e}'`);try{yield E(fs.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new SearchState(e,1))}const n=[];while(r.length){const s=r.pop();const i=patternHelper.match(t,s.path);const o=!!i||patternHelper.partialMatch(t,s.path);if(!i&&!o){continue}const a=yield E(internal_globber_DefaultGlobber.stat(s,e,n));if(!a){continue}if(e.excludeHiddenFiles&&path.basename(s.path).match(/^\./)){continue}if(a.isDirectory()){if(i&MatchKind.Directory&&e.matchDirectories){yield yield E(s.path)}else if(!o){continue}const t=s.level+1;const n=(yield E(fs.promises.readdir(s.path))).map((e=>new SearchState(path.join(s.path,e),t)));r.push(...n.reverse())}else if(i&MatchKind.File){yield yield E(s.path)}}}))}static create(e,t){return y(this,void 0,void 0,(function*(){const r=new internal_globber_DefaultGlobber(t);if(I){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new Pattern(e))}}r.searchPaths.push(...patternHelper.getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return y(this,void 0,void 0,(function*(){let n;if(t.followSymbolicLinks){try{n=yield fs.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){core.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield fs.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield fs.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){core.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n}))}}var Q=n(6982);var b=n(2203);var S=n(9023);var w=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var N=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};function hashFiles(e,t){return w(this,arguments,void 0,(function*(e,t,r=false){var n,s,i,o;var a;const c=r?core.info:core.debug;let l=false;const A=t?t:(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const u=crypto.createHash("sha256");let d=0;try{for(var p=true,m=N(e.globGenerator()),h;h=yield m.next(),n=h.done,!n;p=true){o=h.value;p=false;const e=o;c(e);if(!e.startsWith(`${A}${path.sep}`)){c(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){c(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const r=util.promisify(stream.pipeline);yield r(fs.createReadStream(e),t);u.write(t.digest());d++;if(!l){l=true}}}catch(e){s={error:e}}finally{try{if(!p&&!n&&(i=m.return))yield i.call(m)}finally{if(s)throw s.error}}u.end();if(l){c(`Found ${d} files to hash.`);return u.digest("hex")}else{c(`No matches found for glob`);return""}}))}var R=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function create(e,t){return R(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return R(this,arguments,void 0,(function*(e,t="",r,n=false){let s=true;if(r&&typeof r.followSymbolicLinks==="boolean"){s=r.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:s});return _hashFiles(i,t,n)}))}var x=n(8701);var v=n(2088);var D;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(D||(D={}));var k;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(k||(k={}));var T;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(T||(T={}));const P=2;const M=5e3;const L=5e3;const F=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const U=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const O="cache.tar";const H="manifest.txt";const _=10*Math.pow(1024,3);var z=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var q=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};const V="1.0";function createTempDirectory(){return z(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=o.join(r,"actions","temp")}const r=o.join(t,Q.randomUUID());yield x.U$(r);return r}))}function getArchiveFileSizeInBytes(e){return c.statSync(e).size}function resolvePaths(e){return z(this,void 0,void 0,(function*(){var t,r,n,s;var i;const o=[];const a=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const c=yield glob.create(e.join("\n"),{implicitDescendants:false});try{for(var l=true,A=q(c.globGenerator()),u;u=yield A.next(),t=u.done,!t;l=true){s=u.value;l=false;const e=s;const t=path.relative(a,e).replace(new RegExp(`\\${path.sep}`,"g"),"/");core.debug(`Matched: ${t}`);if(t===""){o.push(".")}else{o.push(`${t}`)}}}catch(e){r={error:e}}finally{try{if(!l&&!t&&(n=A.return))yield n.call(A)}finally{if(r)throw r.error}}return o}))}function unlinkFile(e){return z(this,void 0,void 0,(function*(){return S.promisify(c.unlink)(e)}))}function getVersion(e){return z(this,arguments,void 0,(function*(e,t=[]){let r="";t.push("--version");i.Yz(`Checking ${e} ${t.join(" ")}`);try{yield a.m(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){i.Yz(e.message)}r=r.trim();i.Yz(r);return r}))}function getCompressionMethod(){return z(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=v.clean(e);i.Yz(`zstd version: ${t}`);if(e===""){return k.Gzip}else{return k.ZstdWithoutLong}}))}function getCacheFileName(e){return e===k.Gzip?D.Gzip:D.Zstd}function getGnuTarPathOnWindows(){return z(this,void 0,void 0,(function*(){if(c.existsSync(F)){return F}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?x.K7("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,r=false){const n=e.slice();if(t){n.push(t)}if(process.platform==="win32"&&!r){n.push("windows-only")}n.push(V);return Q.createHash("sha256").update(n.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var G=n(4942);var Y=n(2145);var J=n(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}var W=n(8161);var $=n(7975);const j=e(import.meta.url)("node:process");function log(e,...t){j.stderr.write(`${$.format(e,...t)}${W.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){X=e;Z=[];ee=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){ee.push(e.substring(1))}else{Z.push(e)}}for(const e of te){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of ee){if(namespaceMatches(e,t)){return false}}for(const t of Z){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let r=t;if(t.indexOf("**")!==-1){const e=[];let n="";for(const r of t){if(r==="*"&&n==="*"){continue}else{n=r;e.push(r)}}r=e.join("")}let n=0;let s=0;const i=r.length;const o=e.length;let a=-1;let c=-1;while(n=0){s=a+1;n=c+1;if(n===o){return false}while(e[n]!==r[s]){n++;if(n===o){return false}}c=n;n++;s++;continue}else{return false}}const l=n===e.length;const A=s===r.length;const u=s===r.length-1&&r[s]==="*";return l&&(A||u)}function disable(){const e=X||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:re.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}te.push(t);return t}function destroy(){const e=te.indexOf(this);if(e>=0){te.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return se.includes(e)}function createLoggerContext(e){const t=new Set;const r=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let n;const s=ne(e.namespace);s.log=(...e)=>{ne.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${se.join(",")}`)}n=e;const r=[];for(const e of t){if(shouldEnable(e)){r.push(e.namespace)}}ne.enable(r.join(","))}if(r){if(isTypeSpecRuntimeLogLevel(r)){contextSetLogLevel(r)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(e){return Boolean(n&&ie[e.level]<=ie[n])}function createLogger(e,r){const n=Object.assign(e.extend(r),{level:r});patchLogMethod(e,n);if(shouldEnable(n)){const e=ne.disable();ne.enable(e+","+n.namespace)}t.add(n);return n}function contextGetLogLevel(){return n}function contextCreateClientLogger(e){const t=s.extend(e);patchLogMethod(s,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:s}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(e){oe.setLogLevel(e)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(e){return oe.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,r]of this._headersMap){t[e]=r.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const ce=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!ce.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!ce.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((r=>{if(e.name&&r.policy.name===e.name||e.phase&&r.options.phase===e.phase){t.push(r.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const r=this.getOrderedPolicies();const n=r.reduceRight(((e,t)=>r=>t.sendRequest(r,e)),(t=>e.sendRequest(t)));return n(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const r=createPhase("Serialize");const n=createPhase("None");const s=createPhase("Deserialize");const i=createPhase("Retry");const o=createPhase("Sign");const a=[r,n,s,i,o];function getPhase(e){if(e==="Retry"){return i}else if(e==="Serialize"){return r}else if(e==="Deserialize"){return s}else if(e==="Sign"){return o}else{return n}}for(const e of this._policies){const r=e.policy;const n=e.options;const s=r.name;if(t.has(s)){throw new Error("Duplicate policy names not allowed in pipeline")}const i={policy:r,dependsOn:new Set,dependants:new Set};if(n.afterPhase){i.afterPhase=getPhase(n.afterPhase);i.afterPhase.hasAfterPolicies=true}t.set(s,i);const o=getPhase(n.phase);o.policies.add(i)}for(const e of this._policies){const{policy:r,options:n}=e;const s=r.name;const i=t.get(s);if(!i){throw new Error(`Missing node for policy ${s}`)}if(n.afterPolicies){for(const e of n.afterPolicies){const r=t.get(e);if(r){i.dependsOn.add(r);r.dependants.add(i)}}}if(n.beforePolicies){for(const e of n.beforePolicies){const r=t.get(e);if(r){r.dependsOn.add(i);i.dependants.add(r)}}}}function walkPhase(r){r.hasRun=true;for(const n of r.policies){if(n.afterPhase&&(!n.afterPhase.hasRun||n.afterPhase.policies.size)){continue}if(n.dependsOn.size===0){e.push(n.policy);for(const e of n.dependants){e.dependsOn.delete(n)}t.delete(n.policy.name);r.policies.delete(n)}}}function walkPhases(){for(const e of a){walkPhase(e);if(e.policies.size>0&&e!==n){if(!n.hasRun){walkPhase(n)}return}if(e.hasAfterPolicies){walkPhase(n)}}}let c=0;while(t.size>0){c++;const t=e.length;walkPhases();if(e.length<=t&&c>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}const le=$.inspect.custom;const Ae="REDACTED";const ue=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const de=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=ue.concat(e);t=de.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return{...r,name:r.name,message:r.message}}if(e==="headers"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,Ae)}}return t.toString()}sanitizeHeaders(e){const t={};for(const r of Object.keys(e)){if(this.allowedHeaderNames.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=Ae}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const r of Object.keys(e)){if(this.allowedQueryParameters.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=Ae}}return t}}const pe=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,le,{value:()=>`RestError: ${this.message} \n ${pe.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var me=n(7067);const he=e(import.meta.url)("node:https");var ge=n(8522);var fe=n(7075);const ye=createClientLogger("ts-http-runtime");const Ce={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends fe.Transform{loadedBytes=0;progressCallback;_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});r()}catch(e){r(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let r;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}r=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",r)}let n;if(e.timeout>0){n=setTimeout((()=>{const r=new Sanitizer;ye.info(`request to '${r.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const s=e.headers.get("Accept-Encoding");const i=s?.includes("gzip")||s?.includes("deflate");let o=typeof e.body==="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){const t=getBodyLength(o);if(t!==null){e.headers.set("Content-Length",t)}}let a;try{if(o&&e.onUploadProgress){const t=e.onUploadProgress;const r=new ReportTransform(t);r.on("error",(e=>{ye.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(o)){o.pipe(r)}else{r.end(o)}o=r}const r=await this.makeRequest(e,t,o);if(n!==undefined){clearTimeout(n)}const s=getResponseHeaders(r);const c=r.statusCode??0;const l={status:c,headers:s,request:e};if(e.method==="HEAD"){r.resume();return l}a=i?getDecodedResponseStream(r,s):r;const A=e.onDownloadProgress;if(A){const e=new ReportTransform(A);e.on("error",(e=>{ye.error("Error in download progress",e)}));a.pipe(e);a=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(l.status)){l.readableStreamBody=a}else{l.bodyAsText=await streamToText(a)}return l}finally{if(e.abortSignal&&r){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(o)){t=isStreamComplete(o)}let n=Promise.resolve();if(nodeHttpClient_isReadableStream(a)){n=isStreamComplete(a)}Promise.all([t,n]).then((()=>{if(r){e.abortSignal?.removeEventListener("abort",r)}})).catch((e=>{ye.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,r){const n=new URL(e.url);const s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const i=e.agent??this.getOrCreateAgent(e,s);const o={agent:i,hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((n,i)=>{const a=s?me.request(o,n):he.request(o,n);a.once("error",(t=>{i(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");a.destroy(e);i(e)}));if(r&&nodeHttpClient_isReadableStream(r)){r.pipe(a)}else if(r){if(typeof r==="string"||Buffer.isBuffer(r)){a.end(r)}else if(isArrayBuffer(r)){a.end(ArrayBuffer.isView(r)?Buffer.from(r.buffer):Buffer.from(r))}else{ye.error("Unrecognized body type",r);i(new restError_RestError("Unrecognized body type"))}}else{a.end()}}))}getOrCreateAgent(e,t){const r=e.disableKeepAlive;if(t){if(r){return me.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new me.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(r&&!e.tlsSettings){return he.globalAgent}const t=e.tlsSettings??Ce;let n=this.cachedHttpsAgents.get(t);if(n&&n.options.keepAlive===!r){return n}ye.info("No cached TLS Agent exist, creating a new Agent");n=new he.Agent({keepAlive:!r,...t});this.cachedHttpsAgents.set(t,n);return n}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const r of Object.keys(e.headers)){const n=e.headers[r];if(Array.isArray(n)){if(n.length>0){t.set(r,n[0])}}else if(n){t.set(r,n)}}return t}function getDecodedResponseStream(e,t){const r=t.get("Content-Encoding");if(r==="gzip"){const t=ge.createGunzip();e.pipe(t);return t}else if(r==="deflate"){const t=ge.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,r)=>{const n=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){n.push(e)}else{n.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(n).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){r(e)}else{r(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Ee="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??ye.info;const r=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Ee,async sendRequest(e,n){if(!t.enabled){return n(e)}t(`Request: ${r.sanitize(e)}`);const s=await n(e);t(`Response status code: ${s.status}`);t(`Headers: ${r.sanitize(s.headers)}`);return s}}}const Be="redirectPolicy";const Ie=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:r=false}=e;return{name:Be,async sendRequest(e,n){const s=await n(e);return handleRedirect(n,s,t,r)}}}async function handleRedirect(e,t,r,n,s=0){const{request:i,status:o,headers:a}=t;const c=a.get("location");if(c&&(o===300||o===301&&Ie.includes(i.method)||o===302&&Ie.includes(i.method)||o===303&&i.method==="POST"||o===307)&&s{let i=undefined;let o=undefined;const rejectOnAbort=()=>s(new AbortError(r?.abortErrorMsg?r?.abortErrorMsg:Se));const removeListeners=()=>{if(r?.abortSignal&&o){r.abortSignal.removeEventListener("abort",o)}};o=()=>{if(i){clearTimeout(i)}removeListeners();return rejectOnAbort()};if(r?.abortSignal&&r.abortSignal.aborted){return rejectOnAbort()}i=setTimeout((()=>{removeListeners();n(t)}),e);if(r?.abortSignal){r.abortSignal.addEventListener("abort",o)}}))}function parseHeaderValueAsNumber(e,t){const r=e.headers.get(t);if(!r)return;const n=Number(r);if(Number.isNaN(n))return;return n}const we="Retry-After";const Ne=["retry-after-ms","x-ms-retry-after-ms",we];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of Ne){const r=parseHeaderValueAsNumber(e,t);if(r===0||r){const e=t===we?1e3:1;return r*e}}const t=e.headers.get(we);if(!t)return;const r=Date.parse(t);const n=r-Date.now();return Number.isFinite(n)?Math.max(0,n):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Re=1e3;const xe=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Re;const r=e.maxRetryDelayInMs??xe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:i}){const o=isSystemError(i);const a=o&&e.ignoreSystemErrors;const c=isExponentialRetryResponse(s);const l=c&&e.ignoreHttpStatusCodes;const A=s&&(isThrottlingRetryResponse(s)||!c);if(A||l||a){return{skipStrategy:true}}if(i&&!o&&!c){return{errorToThrow:i}}return calculateRetryDelay(n,{retryDelayInMs:t,maxRetryDelayInMs:r})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const ve="0.3.4";const De=3;const ke=createClientLogger("ts-http-runtime retryPolicy");const Te="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:De}){const r=t.logger||ke;return{name:Te,async sendRequest(n,s){let i;let o;let a=-1;e:while(true){a+=1;i=undefined;o=undefined;try{r.info(`Retry ${a}: Attempting to send request`,n.requestId);i=await s(n);r.info(`Retry ${a}: Received a response from request`,n.requestId)}catch(e){r.error(`Retry ${a}: Received an error from request`,n.requestId);o=e;if(!e||o.name!=="RestError"){throw e}i=o.response}if(n.abortSignal?.aborted){r.error(`Retry ${a}: Request aborted.`);const e=new AbortError;throw e}if(a>=(t.maxRetries??De)){r.info(`Retry ${a}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(o){throw o}else if(i){return i}else{throw new Error("Maximum retries reached with no response or error to throw")}}r.info(`Retry ${a}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||r;e.info(`Retry ${a}: Processing retry strategy ${t.name}.`);const s=t.retry({retryCount:a,response:i,responseError:o});if(s.skipStrategy){e.info(`Retry ${a}: Skipped.`);continue t}const{errorToThrow:c,retryAfterInMs:l,redirectTo:A}=s;if(c){e.error(`Retry ${a}: Retry strategy ${t.name} throws error:`,c);throw c}if(l||l===0){e.info(`Retry ${a}: Retry strategy ${t.name} retries after ${l}`);await helpers_delay(l,undefined,{abortSignal:n.abortSignal});continue e}if(A){e.info(`Retry ${a}: Retry strategy ${t.name} redirects to ${A}`);n.url=A;continue e}}if(o){r.info(`None of the retry strategies could work with the received error. Throwing it.`);throw o}if(i){r.info(`None of the retry strategies could work with the received response. Returning it.`);return i}}}}}const Pe="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Pe,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??De}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Me=typeof window!=="undefined"&&typeof window.document!=="undefined";const Le=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Fe=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ue=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Oe=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const He=Oe&&!Ue&&!Fe;const _e=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const ze="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[r,n]of e.entries()){t[r]??=[];t[r].push(n)}return t}function formDataPolicy_formDataPolicy(){return{name:ze,async sendRequest(e,t){if(Oe&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.append(r,e.toString())}}else{t.append(r,n.toString())}}return t.toString()}async function prepareFormData(e,t){const r=t.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",r??"multipart/form-data");const n=[];for(const[t,r]of Object.entries(e)){for(const e of Array.isArray(r)?r:[r]){if(typeof e==="string"){n.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const r=e.name||"blob";const s=httpHeaders_createHttpHeaders();s.set("Content-Disposition",`form-data; name="${t}"; filename="${r}"`);s.set("Content-Type",e.type||"application/octet-stream");n.push({headers:s,body:e})}}}t.multipartBody={parts:n}}var qe=n(3669);var Ve=n(1970);const Ge="HTTPS_PROXY";const Ye="HTTP_PROXY";const Je="ALL_PROXY";const We="NO_PROXY";const $e="proxyPolicy";const je=[];let Ke=false;const Xe=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(Ge);const t=getEnvironmentValue(Je);const r=getEnvironmentValue(Ye);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const n=new URL(e).hostname;if(r?.has(n)){return r.get(n)}let s=false;for(const e of t){if(e[0]==="."){if(n.endsWith(e)){s=true}else{if(n.length===e.length-1&&n===e.slice(1)){s=true}}}else{if(n===e){s=true}}}r?.set(n,s);return s}function loadNoProxy(){const e=getEnvironmentValue(We);Ke=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const r=t.protocol?t.protocol+"//":"";return{host:r+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,r){if(e.agent){return}const n=new URL(e.url);const s=n.protocol!=="https:";if(e.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const i=e.headers.toJSON();if(s){if(!t.httpProxyAgent){t.httpProxyAgent=new Ve.HttpProxyAgent(r,{headers:i})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new qe.HttpsProxyAgent(r,{headers:i})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!Ke){je.push(...loadNoProxy())}const r=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const n={};return{name:$e,async sendRequest(e,s){if(!e.proxySettings&&r&&!isBypassed(e.url,t?.customNoProxyList??je,t?.customNoProxyList?undefined:Xe)){setProxyAgentOnRequest(e,n,r)}else if(e.proxySettings){setProxyAgentOnRequest(e,n,getUrlFromProxySettings(e.proxySettings))}return s(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function typeGuards_isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:r}=await e.read();if(t){return}yield r}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return b.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return b.Readable.from(Buffer.from(e))}else if(typeGuards_isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return b.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[r,n]of e){t+=`${r}: ${n}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const r of e){const e=getLength(r);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,r){const n=[bytesEncoding_stringToUint8Array(`--${r}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${r}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const s=getTotalLength(n);if(s){e.headers.set("Content-Length",s)}e.body=await concat(n)}const Ze="multipartPolicy";const et=70;const tt=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>et){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!tt.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Ze,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let r=e.multipartBody.boundary;const n=e.headers.get("Content-Type")??"multipart/mixed";const s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s){throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`)}const[,i,o]=s;if(o&&r&&o!==r){throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`)}r??=o;if(r){assertValidBoundary(r)}else{r=generateBoundary()}e.headers.set("Content-Type",`${i}; boundary=${r}`);await buildRequestBody(e,e.multipartBody.parts,r);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let rt=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!rt){rt=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const nt="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:nt,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!n){return r(t)}if(n.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`)}t.headers.set(n.name,e.credential.key);return r(t)}}}const st="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:st,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!n){return r(t)}const{username:s,password:i}=e.credential;const o=uint8ArrayToString(stringToUint8Array(`${s}:${i}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${o}`);return r(t)}}}const it="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:it,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!n){return r(t)}const s=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}const ot="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:ot,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!n){return r(t)}const s=await e.credential.getOAuth2Token(n.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}let at;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:r,authSchemes:n,allowInsecureConnection:s}=e;if(r){if(isApiKeyCredential(r)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBasicCredential(r)){t.addPolicy(basicAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBearerTokenCredential(r)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isOAuth2TokenCredential(r)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!at){at=createDefaultHttpClient()}return at}function getHeaderValue(e,t){if(e.headers){const r=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(r){return e.headers[r]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:r}=e;if(r===null||r===undefined){return undefined}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return"text/plain; charset=UTF-8"}if(r instanceof Blob){return r.type||"application/octet-stream"}if(isBinaryBody(r)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const r=e.dispositionType??"form-data";let n=r;if(e.name){n+=`; name=${escapeDispositionField(e.name)}`}let s=undefined;if(e.filename){s=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){s=t}}if(s){n+=`; filename=${escapeDispositionField(s)}`}return n}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const r=getContentDisposition(e);const n=createHttpHeaders(e.headers??{});if(t){n.set("content-type",t)}if(r){n.set("content-disposition",r)}const s=normalizeBody(e.body,t);return{headers:n,body:s}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,r,n={},s){const i=s??getCachedDefaultHttpsClient();const o=buildPipelineRequest(e,t,n);try{const e=await r.sendRequest(i,o);const t=e.headers.toJSON();const s=e.readableStreamBody??e.browserStreamBody;const a=n.responseAsStream||s!==undefined?undefined:getResponseBody(e);const c=s??a;if(n?.onResponse){n.onResponse({...e,request:o,rawHeaders:t,parsedBody:a})}return{request:o,headers:t,status:`${e.status}`,body:c}}catch(e){if(isRestError(e)&&e.response&&n.onResponse){const{response:t}=e;const r=t.headers.toJSON();n?.onResponse({...t,request:o,rawHeaders:r},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(isBlob(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,r={}){const n=getRequestContentType(r);const{body:s,multipartBody:i}=getRequestBody(r.body,n);const o=createHttpHeaders({...r.headers?r.headers:{},accept:r.accept??r.headers?.accept??"application/json",...n&&{"content-type":n}});return createPipelineRequest({url:t,method:e,body:s,multipartBody:i,headers:o,allowInsecureConnection:r.allowInsecureConnection,abortSignal:r.abortSignal,onUploadProgress:r.onUploadProgress,onDownloadProgress:r.onDownloadProgress,timeout:r.timeout,enableBrowserStreams:true,streamResponseStatusCodes:r.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isBlob(e)){return{body:e}}if(isReadableStream(e)||typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const r=t.split(";")[0];switch(r){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const r=t.split(";")[0];const n=e.bodyAsText??"";if(r==="text/plain"){return String(n)}try{return n?JSON.parse(n):undefined}catch(t){if(r==="application/json"){throw createParseError(e,t)}return String(n)}}function createParseError(e,t){const r=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const n=t.code??RestError.PARSE_ERROR;return new RestError(r,{code:n,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const r=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;r.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:n,httpClient:s}=t;const i=t.endpoint??e;const client=(e,...t)=>{const getUrl=r=>buildRequestUrl(i,e,t,{allowInsecureConnection:n,...r});return{get:(e={})=>buildOperation("GET",getUrl(e),r,e,n,s),post:(e={})=>buildOperation("POST",getUrl(e),r,e,n,s),put:(e={})=>buildOperation("PUT",getUrl(e),r,e,n,s),patch:(e={})=>buildOperation("PATCH",getUrl(e),r,e,n,s),delete:(e={})=>buildOperation("DELETE",getUrl(e),r,e,n,s),head:(e={})=>buildOperation("HEAD",getUrl(e),r,e,n,s),options:(e={})=>buildOperation("OPTIONS",getUrl(e),r,e,n,s),trace:(e={})=>buildOperation("TRACE",getUrl(e),r,e,n,s)}};return{path:client,pathUnchecked:client,pipeline:r}}function buildOperation(e,t,r,n,s,i){s=n.allowInsecureConnection??s;return{then:function(o,a){return sendRequest(e,t,r,{...n,allowInsecureConnection:s},i).then(o,a)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const r=typeof e==="string"?t:e;const n=r.body?.error??r.body;const s=typeof e==="string"?e:n?.message??`Unexpected status code: ${r.status}`;return new RestError(s,{statusCode:statusCodeToNumber(r.status),code:n?.code,request:r.request,response:toPipelineResponse(r)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const ct=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const At=ct.logger;function esm_setLogLevel(e){ct.setLogLevel(e)}function esm_getLogLevel(){return ct.getLogLevel()}function esm_createClientLogger(e){return ct.createClientLogger(e)}const ut=esm_createClientLogger("core-rest-pipeline");const dt="agentPolicy";function agentPolicy_agentPolicy(e){return{name:dt,sendRequest:async(t,r)=>{if(!t.agent){t.agent=e}return r(t)}}}const pt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:pt,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const mt="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const ht="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:ht,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ft="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:ft,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const yt="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:yt,sendRequest:async(t,r)=>{if(!t.tlsSettings){t.tlsSettings=e}return r(t)}}}const Ct=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:ut.info,...e})}const Et=Be;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if(j&&j.versions){const t=`${W.type()} ${W.release()}; ${W.arch()}`;const r=j.versions;if(r.bun){e.set("Bun",`${r.bun} (${t})`)}else if(r.deno){e.set("Deno",`${r.deno} (${t})`)}else if(r.node){e.set("Node",`${r.node} (${t})`)}}}const Bt="1.22.3";const It=3;function userAgent_getUserAgentString(e){const t=[];for(const[r,n]of e){const e=n?`${r}/${n}`:r;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Bt);await util_userAgentPlatform_setPlatformSpecificData(t);const r=userAgent_getUserAgentString(t);const n=e?`${e} ${r}`:r;return n}const Qt=userAgent_getUserAgentHeaderName();const bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:bt,async sendRequest(e,r){if(!e.headers.has(Qt)){e.headers.set(Qt,await t)}return r(e)}}}var St=n(7598);async function computeSha256Hmac(e,t,r){const n=Buffer.from(e,"base64");return createHmac("sha256",n).update(t).digest(r)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=t??{};return new Promise(((t,i)=>{function rejectOnAbort(){i(new AbortError_AbortError(s??"The operation was aborted."))}function removeListeners(){n?.removeEventListener("abort",onAbort)}function onAbort(){r?.();removeListeners();rejectOnAbort()}if(n?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();i(e)}))}catch(e){i(e)}n?.addEventListener("abort",onAbort)}))}const wt="The delay was aborted.";function delay_delay(e,t){let r;const{abortSignal:n,abortErrorMsg:s}=t??{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??wt})}function delay_calculateRetryDelay(e,t){const r=t.retryDelayInMs*Math.pow(2,e);const n=Math.min(t.maxRetryDelayInMs,r);const s=n/2+getRandomIntegerInclusive(0,n/2);return{retryAfterInMs:s}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,r){return tspRuntime.computeSha256Hmac(e,t,r)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const Nt=Me;const Rt=Ue;const xt=Fe;const vt=Oe;const Dt=Oe;const kt=He;const Tt=_e;const Pt=Le;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const Mt={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Lt=Symbol("rawContent");function hasRawContent(e){return typeof e[Lt]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[Lt]()}else{return e}}function createFileFromStream(e,t,r={}){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:r.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[Lt]:e}}function createFile(e,t,r={}){if(isNodeLike){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[Lt]:()=>e}}else{return new File([toArrayBuffer(e)],t,r)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const Ft=Ze;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(t,r)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,r)}}}const Ut=pt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const Ht=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const _t=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const zt="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:zt,async sendRequest(t,r){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return r(t)}}}const qt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const Vt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Gt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(Gt.span,e.span)}if(e.namespace){t=t.setValue(Gt.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const r=new TracingContextImpl(this);r._contextMap.set(e,t);return r}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var Yt=n(8914);const Jt=Yt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...r){return t(...r)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!Jt.instrumenterImplementation){Jt.instrumenterImplementation=createDefaultInstrumenter()}return Jt.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:r,packageVersion:n}=e;function startSpan(e,s,i){const o=getInstrumenter().startSpan(e,{...i,packageName:r,packageVersion:n,tracingContext:s?.tracingOptions?.tracingContext});let a=o.tracingContext;const c=o.span;if(!a.getValue(Gt.namespace)){a=a.setValue(Gt.namespace,t)}c.setAttribute("az.namespace",a.getValue(Gt.namespace));const l=Object.assign({},s,{tracingOptions:{...s?.tracingOptions,tracingContext:a}});return{span:c,updatedOptions:l}}async function withSpan(e,t,r,n){const{span:s,updatedOptions:i}=startSpan(e,t,n);try{const e=await withContext(i.tracingOptions.tracingContext,(()=>Promise.resolve(r(i,s))));s.setStatus({status:"success"});return e}catch(e){s.setStatus({status:"error",error:e});throw e}finally{s.end()}}function withContext(e,t,...r){return getInstrumenter().withContext(e,t,...r)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Wt=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const $t="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const r=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const n=tryCreateTracingClient();return{name:$t,async sendRequest(e,s){if(!n){return s(e)}const i=await t;const o={"http.url":r.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":i,requestId:e.requestId};if(i){o["http.user_agent"]=i}const{span:a,tracingContext:c}=tryCreateSpan(n,e,o)??{};if(!a||!c){return s(e)}try{const t=await n.withContext(c,s,e);tryProcessResponse(a,t);return t}catch(e){tryProcessError(a,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Bt})}catch(e){ut.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,r){try{const{span:n,updatedOptions:s}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return undefined}const i=e.createRequestHeaders(s.tracingOptions.tracingContext);for(const[e,r]of Object.entries(i)){t.headers.set(e,r)}return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(e){ut.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const r=t.headers.get("x-ms-request-id");if(r){e.setAttribute("serviceRequestId",r)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let r=true;function cleanup(){if(r){e.removeEventListener("abort",listener);r=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const jt="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:jt,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:r,cleanup:n}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=r;try{return await t(e)}finally{n?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(Dt){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(Dt){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:r,cleanup:n}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=r;return await e.sendRequest(t)}finally{n?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Kt=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Xt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Zt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const er=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:er,...t})}const tr={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,a);r=beginRefresh(tryGetAccessToken,i.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then((e=>{r=null;n=e;s=a.tenantId;return n})).catch((e=>{r=null;n=null;s=undefined;throw e}))}return r}return async(e,t)=>{const r=Boolean(t.claims);const i=s!==t.tenantId;if(r){n=null}const a=i||r||o.mustRefresh;if(a){return refresh(e,t)}if(o.shouldRefresh){refresh(e,t)}return n}}const rr="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:true};const i=await r(t,s);if(i){e.request.headers.set("Authorization",`Bearer ${i.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:r}=e;const n=await e.getAccessToken(r,{enableCae:true,claims:t});if(!n){return false}e.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:r,challengeCallbacks:n}=e;const s=e.logger||ut;const i={authorizeRequest:n?.authorizeRequest?.bind(n)??defaultAuthorizeRequest,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)};const o=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:rr,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await i.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:o,logger:s});let n;let a;let c;[n,a]=await trySendRequest(e,t);if(isChallengeResponse(n)){let l=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(l){let i;try{i=atob(l)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`);return n}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(c){[n,a]=await trySendRequest(e,t)}}else if(i.authorizeRequestOnChallenge){c=await i.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:e,response:n,getAccessToken:o,logger:s});if(c){[n,a]=await trySendRequest(e,t)}if(isChallengeResponse(n)){l=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(l){let i;try{i=atob(l)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`);return n}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(c){[n,a]=await trySendRequest(e,t)}}}}}if(a){throw a}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const r=/(\w+)="([^"]*)"/g;const n=[];let s;while((s=t.exec(e))!==null){const e=s[1];const t=s[2];const i={};let o;while((o=r.exec(t))!==null){i[o[1]]=o[2]}n.push({scheme:e,params:i})}return n}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const nr="auxiliaryAuthenticationHeaderPolicy";const sr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(t,s))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:r}=e;const n=e.logger||coreLogger;const s=new WeakMap;return{name:nr,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){n.info(`${nr} header will not be set due to empty credentials.`);return i(e)}const o=[];for(const i of t){let t=s.get(i);if(!t){t=createTokenCycler(i);s.set(i,t)}o.push(sendAuthorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:t,logger:n}))}const a=(await Promise.all(o)).filter((e=>Boolean(e)));if(a.length===0){n.warning(`None of the auxiliary tokens are valid. ${sr} header will not be set.`);return i(e)}e.headers.set(sr,a.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const ir="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:ir,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===ir))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const or="$";const ar="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return cr.test(e)}const lr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return lr.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const r=e.parsedHeaders;if(e.request.method==="HEAD"){return{...r,body:e.parsedBody}}const n=t&&t.bodyMapper;const s=Boolean(n?.nullable);const i=n?.type.name;if(i==="Stream"){return{...r,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const o=i==="Composite"&&n.type.modelProperties||{};const a=Object.keys(o).some((e=>o[e].serializedName===""));if(i==="Sequence"||a){const t=e.parsedBody??[];for(const r of Object.keys(o)){if(o[r].serializedName){t[r]=e.parsedBody?.[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}return s&&!e.parsedBody&&!r&&Object.getOwnPropertyNames(o).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:isPrimitiveBody(e.parsedBody,i)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,n)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${n}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:r,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:i,MaxItems:o,MaxLength:a,MinItems:c,MinLength:l,MultipleOf:A,Pattern:u,UniqueItems:d}=e.constraints;if(r!==undefined&&t>=r){failValidation("ExclusiveMaximum",r)}if(n!==undefined&&t<=n){failValidation("ExclusiveMinimum",n)}if(s!==undefined&&t>s){failValidation("InclusiveMaximum",s)}if(i!==undefined&&to){failValidation("MaxItems",o)}if(a!==undefined&&t.length>a){failValidation("MaxLength",a)}if(c!==undefined&&t.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",d)}}}serialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar}};let i={};const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Sequence$/i)!==null){i=[]}if(e.isConstant){t=e.defaultValue}const{required:a,nullable:c}=e;if(a&&c&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(a&&!c&&(t===undefined||t===null)){throw new Error(`${r} cannot be null or undefined.`)}if(!a&&c===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t===undefined||t===null){i=t}else{if(o.match(/^any$/i)!==null){i=t}else if(o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){i=serializeBasicTypes(o,r,t)}else if(o.match(/^Enum$/i)!==null){const n=e;i=serializeEnumType(r,n.type.allowedValues,t)}else if(o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){i=serializeDateTypes(o,t,r)}else if(o.match(/^ByteArray$/i)!==null){i=serializeByteArrayType(r,t)}else if(o.match(/^Base64Url$/i)!==null){i=serializeBase64UrlType(r,t)}else if(o.match(/^Sequence$/i)!==null){i=serializeSequenceType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Dictionary$/i)!==null){i=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Composite$/i)!==null){i=serializeCompositeType(this,e,t,r,Boolean(this.isXML),s)}}return i}deserialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar},ignoreUnknownProperties:n.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let i;const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Composite$/i)!==null){i=deserializeCompositeType(this,e,t,r,s)}else{if(this.isXML){const e=s.xml.xmlCharKey;if(t[or]!==undefined&&t[e]!==undefined){t=t[e]}}if(o.match(/^Number$/i)!==null){i=parseFloat(t);if(isNaN(i)){i=t}}else if(o.match(/^Boolean$/i)!==null){if(t==="true"){i=true}else if(t==="false"){i=false}else{i=t}}else if(o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){i=t}else if(o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){i=new Date(t)}else if(o.match(/^UnixTime$/i)!==null){i=unixTimeToDate(t)}else if(o.match(/^ByteArray$/i)!==null){i=decodeString(t)}else if(o.match(/^Base64Url$/i)!==null){i=base64UrlToByteArray(t)}else if(o.match(/^Sequence$/i)!==null){i=deserializeSequenceType(this,e,t,r,s)}else if(o.match(/^Dictionary$/i)!==null){i=deserializeDictionaryType(this,e,t,r,s)}}if(e.isConstant){i=e.defaultValue}return i}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const n=e.split(".");for(const e of n){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&typeof r.pipe!=="function"&&typeof r.tee!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const n=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,r){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,n,s,i){if(!Array.isArray(r)){throw new Error(`${n} must be of type Array.`)}let o=t.type.element;if(!o||typeof o!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}.`)}if(o.type.name==="Composite"&&o.type.className){o=e.modelMappers[o.type.className]??o}const a=[];for(let t=0;te!==s));if(a){o[s]=e.serialize(c,r[s],n+'["'+s+'"]',i)}}}return o}return r}function getXmlObjectValue(e,t,r,n){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const i={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[or]){return t}else{const e={...t};e[or]=i;return e}}const o={};o[n.xml.xmlCharKey]=t;o[or]=i;return o}function isSpecialXmlProperty(e,t){return[or,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,n,s){const i=s.xml.xmlCharKey??ar;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const o=resolveModelProperties(e,t,n);let a={};const c=[];for(const l of Object.keys(o)){const A=o[l];const u=splitSerializeName(o[l].serializedName);c.push(u[0]);const{serializedName:d,xmlName:p,xmlElementName:m}=A;let h=n;if(d!==""&&d!==undefined){h=n+"."+d}const g=A.headerCollectionPrefix;if(g){const t={};for(const n of Object.keys(r)){if(n.startsWith(g)){t[n.substring(g.length)]=e.deserialize(A.type.value,r[n],h,s)}c.push(n)}a[l]=t}else if(e.isXML){if(A.xmlIsAttribute&&r[or]){a[l]=e.deserialize(A,r[or][p],h,s)}else if(A.xmlIsMsText){if(r[i]!==undefined){a[l]=r[i]}else if(typeof r==="string"){a[l]=r}}else{const t=m||p||d;if(A.xmlIsWrapped){const t=r[p];const n=t?.[m]??[];a[l]=e.deserialize(A,n,h,s);c.push(p)}else{const n=r[t];a[l]=e.deserialize(A,n,h,s);c.push(t)}}}else{let n;let i=r;let c=0;for(const e of u){if(!i)break;c++;i=i[e]}if(i===null&&c{for(const t in o){const r=splitSerializeName(o[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){a[t]=e.deserialize(l,r[t],n+'["'+t+'"]',s)}}}else if(r&&!s.ignoreUnknownProperties){for(const e of Object.keys(r)){if(a[e]===undefined&&!c.includes(e)&&!isSpecialXmlProperty(e,s)){a[e]=r[e]}}}return a}function deserializeDictionaryType(e,t,r,n,s){const i=t.type.value;if(!i||typeof i!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){const t={};for(const o of Object.keys(r)){t[o]=e.deserialize(i,r[o],n,s)}return t}return r}function deserializeSequenceType(e,t,r,n,s){let i=t.type.element;if(!i||typeof i!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){if(!Array.isArray(r)){r=[r]}if(i.type.name==="Composite"&&i.type.className){i=e.modelMappers[i.type.className]??i}const t=[];for(let o=0;o0){if(s.isConstant){i=s.defaultValue}else{let t=getPropertyFromParameterPath(e,n);if(!t.propertyFound&&r){t=getPropertyFromParameterPath(r,n)}let o=false;if(!t.propertyFound){o=s.required||n[0]==="options"&&n.length===2}i=o?s.defaultValue:t.propertyValue}}}else{if(s.required){i={}}for(const t in n){const o=s.type.modelProperties[t];const a=n[t];const c=getOperationArgumentValueFromParameter(e,{parameterPath:a,mapper:o},r);if(c!==undefined){if(!i){i={}}i[t]=c}}}return i}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let n=0;for(;n=200&&r.status<300}if(c.headersMapper){i.parsedHeaders=a.serializer.deserialize(c.headersMapper,i.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return i}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r,n){const s=200<=e.status&&e.status<300;const i=isOperationSpecEmpty(t)?s:!!r;if(i){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const o=r??t.responses.default;const a=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const c=new Wt(a,{statusCode:e.status,request:e.request,response:e});if(!o&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw c}const l=o?.bodyMapper;const A=o?.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let s;if(l){let e=r;if(t.isXML&&l.type.name===Ar.Sequence){e=[];const t=l.xmlElementName;if(typeof r==="object"&&t){e=r[t]}}s=t.serializer.deserialize(l,e,"error.response.parsedBody",n)}const i=r.error||s||r;c.code=i.code;if(i.message){c.message=i.message}if(l){c.response.parsedBody=s}}if(e.headers&&A){c.response.parsedHeaders=t.serializer.deserialize(A,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){c.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:false}}async function parse(e,t,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){const i=r.bodyAsText;const o=r.headers.get("Content-Type")||"";const a=!o?[]:o.split(";").map((e=>e.toLowerCase()));try{if(a.length===0||a.some((t=>e.indexOf(t)!==-1))){r.parsedBody=JSON.parse(i);return r}else if(a.some((e=>t.indexOf(e)!==-1))){if(!s){throw new Error("Parsing XML not supported.")}const e=await s(i,n.xml);r.parsedBody=e;return r}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const n=e.code||Wt.PARSE_ERROR;const s=new Wt(t,{code:n,statusCode:r.status,request:r.request,response:r});throw s}}return r}function getStreamingResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const n=e.responses[r];if(n.bodyMapper&&n.bodyMapper.type.name===Ar.Stream){t.add(Number(r))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:r}=e;let n;if(typeof t==="string"){n=t}else if(Array.isArray(t)){n=t.join(".")}else{n=r.serializedName}return n}const fr="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:fr,async sendRequest(e,r){const n=getOperationRequestInfo(e);const s=n?.operationSpec;const i=n?.operationArguments;if(s&&i){serializeHeaders(e,i,s);serializeRequestBody(e,i,s,t)}return r(e)}}}function serializeHeaders(e,t,r){if(r.headerParameters){for(const n of r.headerParameters){let s=getOperationArgumentValueFromParameter(t,n);if(s!==null&&s!==undefined||n.mapper.required){s=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n));const t=n.mapper.headerCollectionPrefix;if(t){for(const r of Object.keys(s)){e.headers.set(t+r,s[r])}}else{e.headers.set(n.mapper.serializedName||getPathStringFromParameter(n),s)}}}}const n=t.options?.requestOptions?.customHeaders;if(n){for(const t of Object.keys(n)){e.headers.set(t,n[t])}}}function serializeRequestBody(e,t,r,n=function(){throw new Error("XML serialization unsupported!")}){const s=t.options?.serializerOptions;const i={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??false,xmlCharKey:s?.xml.xmlCharKey??ar}};const o=i.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,r.requestBody);const s=r.requestBody.mapper;const{required:a,serializedName:c,xmlName:l,xmlElementName:A,xmlNamespace:u,xmlNamespacePrefix:d,nullable:p}=s;const m=s.type.name;try{if(e.body!==undefined&&e.body!==null||p&&e.body===null||a){const t=getPathStringFromParameter(r.requestBody);e.body=r.serializer.serialize(s,e.body,t,i);const a=m===Ar.Stream;if(r.isXML){const t=d?`xmlns:${d}`:"xmlns";const r=getXmlValueWithNamespace(u,t,m,e.body,i);if(m===Ar.Sequence){e.body=n(prepareXMLRootList(r,A||l||c,t,u),{rootName:l||c,xmlCharKey:o})}else if(!a){e.body=n(r,{rootName:l||c,xmlCharKey:o})}}else if(m===Ar.String&&(r.contentType?.match("text/plain")||r.mediaType==="text")){return}else if(!a){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,undefined," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){e.formData={};for(const n of r.formDataParameters){const s=getOperationArgumentValueFromParameter(t,n);if(s!==undefined&&s!==null){const t=n.mapper.serializedName||getPathStringFromParameter(n);e.formData[t]=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n),i)}}}}function getXmlValueWithNamespace(e,t,r,n,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xml.xmlCharKey]=n;r[or]={[t]:e};return r}return n}function prepareXMLRootList(e,t,r,n){if(!Array.isArray(e)){e=[e]}if(!r||!n){return{[t]:e}}const s={[t]:e};s[or]={[r]:n};return s}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let yr;function getCachedDefaultHttpClient(){if(!yr){yr=esm_defaultHttpClient_createDefaultHttpClient()}return yr}const Cr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,r,n){const s=calculateUrlReplacements(t,r,n);let i=false;let o=replaceAll(e,s);if(t.path){let e=replaceAll(t.path,s);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){o=e;i=true}else{o=appendPath(o,e)}}const{queryParams:a,sequenceParams:c}=calculateQueryParameters(t,r,n);o=appendQueryParams(o,a,c,i);return o}function replaceAll(e,t){let r=e;for(const[e,n]of t){r=r.split(e).join(n)}return r}function calculateUrlReplacements(e,t,r){const n=new Map;if(e.urlParameters?.length){for(const s of e.urlParameters){let i=getOperationArgumentValueFromParameter(t,s,r);const o=getPathStringFromParameter(s);i=e.serializer.serialize(s.mapper,i,o);if(!s.skipEncoding){i=encodeURIComponent(i)}n.set(`{${s.mapper.serializedName||o}}`,i)}}return n}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const r=new URL(e);let n=r.pathname;if(!n.endsWith("/")){n=`${n}/`}if(t.startsWith("/")){t=t.substring(1)}const s=t.indexOf("?");if(s!==-1){const e=t.substring(0,s);const i=t.substring(s+1);n=n+e;if(i){r.search=r.search?`${r.search}&${i}`:i}}else{n=n+t}r.pathname=n;return r.toString()}function calculateQueryParameters(e,t,r){const n=new Map;const s=new Set;if(e.queryParameters?.length){for(const i of e.queryParameters){if(i.mapper.type.name==="Sequence"&&i.mapper.serializedName){s.add(i.mapper.serializedName)}let o=getOperationArgumentValueFromParameter(t,i,r);if(o!==undefined&&o!==null||i.mapper.required){o=e.serializer.serialize(i.mapper,o,getPathStringFromParameter(i));const t=i.collectionFormat?Cr[i.collectionFormat]:"";if(Array.isArray(o)){o=o.map((e=>{if(e===null||e===undefined){return""}return e}))}if(i.collectionFormat==="Multi"&&o.length===0){continue}else if(Array.isArray(o)&&(i.collectionFormat==="SSV"||i.collectionFormat==="TSV")){o=o.join(t)}if(!i.skipEncoding){if(Array.isArray(o)){o=o.map((e=>encodeURIComponent(e)))}else{o=encodeURIComponent(o)}}if(Array.isArray(o)&&(i.collectionFormat==="CSV"||i.collectionFormat==="Pipes")){o=o.join(t)}n.set(i.mapper.serializedName||getPathStringFromParameter(i),o)}}}return{queryParams:n,sequenceParams:s}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const r=e.split("&");for(const e of r){const[r,n]=e.split("=",2);const s=t.get(r);if(s){if(Array.isArray(s)){s.push(n)}else{t.set(r,[s,n])}}else{t.set(r,n)}}return t}function appendQueryParams(e,t,r,n=false){if(t.size===0){return e}const s=new URL(e);const i=simpleParseQueryParams(s.search);for(const[e,s]of t){const t=i.get(e);if(Array.isArray(t)){if(Array.isArray(s)){t.push(...s);const r=new Set(t);i.set(e,Array.from(r))}else{t.push(s)}}else if(t){if(Array.isArray(s)){s.unshift(t)}else if(r.has(e)){i.set(e,[t,s])}if(!n){i.set(e,s)}}else{i.set(e,s)}}const o=[];for(const[e,t]of i){if(typeof t==="string"){o.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const r of t){o.push(`${e}=${r}`)}}else{o.push(`${e}=${t}`)}}s.search=o.length?`?${o.join("&")}`:"";return s.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:r}of e.additionalPolicies){const e=r==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const r=t.baseUrl||this._endpoint;if(!r){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const n=getRequestUrl(r,t,e,this);const s=esm_pipelineRequest_createPipelineRequest({url:n});s.method=t.httpMethod;const i=getOperationRequestInfo(s);i.operationSpec=t;i.operationArguments=e;const o=t.contentType||this._requestContentType;if(o&&t.requestBody){s.headers.set("Content-Type",o)}const a=e.options;if(a){const e=a.requestOptions;if(e){if(e.timeout){s.timeout=e.timeout}if(e.onUploadProgress){s.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){s.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){i.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){s.allowInsecureConnection=true}}if(a.abortSignal){s.abortSignal=a.abortSignal}if(a.tracingOptions){s.tracingOptions=a.tracingOptions}}if(this._allowInsecureConnection){s.allowInsecureConnection=true}if(s.streamResponseStatusCodes===undefined){s.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(s);const r=flattenResponse(e,t.responses[e.status]);if(a?.onResponse){a.onResponse(e,r)}return r}catch(e){if(typeof e==="object"&&e?.response){const r=e.response;const n=flattenResponse(r,t.responses[e.statusCode]||t.responses["default"]);e.details=n;if(a?.onResponse){a.onResponse(r,n,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const r=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:r})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const r=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return r.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:r}=e;const n=e.logger||coreClientLogger;const s=r.headers.get("WWW-Authenticate");if(!s){n.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const i=parseCAEChallenge(s)||[];const o=i.find((e=>e.claims));if(!o){n.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const a=await e.getAccessToken(o.scope?[o.scope]:t,{claims:decodeStringToString(o.claims)});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}const Br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const r=getChallenge(e.response);if(r){const n=parseChallenge(r);const s=buildScopes(e,n);const i=extractTenantId(n);if(!i){return false}const o=await e.getAccessToken(s,{...t,tenantId:i});if(!o){return false}e.request.headers.set(Br.HeaderConstants.AUTHORIZATION,`${o.tokenType??"Bearer"} ${o.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const r=t.pathname.split("/");const n=r[1];if(n&&isUuid(n)){return n}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const r=new URL(t.resource_id);r.pathname=Br.DefaultScope;let n=r.toString();if(n==="https://disk.azure.com/.default"){n="https://disk.azure.com//.default"}return[n]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const n=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return n.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Ir=Symbol("Original PipelineRequest");const Qr=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const r=e;const n=r[Ir];const s=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=s;return n}else{const r=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:s,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){r[Qr]=t.originalRequest}return r}}function toWebResourceLike(e,t){const r=t?.originalRequest??e;const n={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(n,{get(t,s,i){if(s===Ir){return e}else if(s==="clone"){return()=>toWebResourceLike(toPipelineRequest(n,{originalRequest:r}),{createProxy:true,originalRequest:r})}return Reflect.get(t,s,i)},set(t,r,n,s){if(r==="keepAlive"){e.disableKeepAlive=!n}const i=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof r==="string"&&i.includes(r)){e[r]=n}return Reflect.set(t,r,n,s)}})}else{return n}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{const r=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(r)}}}class Expression{constructor(e,t={}){this.pattern=e;this.separator=t.separator||".";this.segments=this._parse(e);this._hasDeepWildcard=this.segments.some((e=>e.type==="deep-wildcard"));this._hasAttributeCondition=this.segments.some((e=>e.attrName!==undefined));this._hasPositionSelector=this.segments.some((e=>e.position!==undefined))}_parse(e){const t=[];let r=0;let n="";while(r0){const e=this.path[this.path.length-1];e.values=undefined}const n=this.path.length;if(!this.siblingStacks[n]){this.siblingStacks[n]=new Map}const s=this.siblingStacks[n];const i=r?`${r}:${e}`:e;const o=s.get(i)||0;let a=0;for(const e of s.values()){a+=e}s.set(i,o+1);const c={tag:e,position:a,counter:o};if(r!==null&&r!==undefined){c.namespace=r}if(t!==null&&t!==undefined){c.values=t}this.path.push(c)}pop(){if(this.path.length===0){return undefined}const e=this.path.pop();if(this.siblingStacks.length>this.path.length+1){this.siblingStacks.length=this.path.length+1}return e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];if(e!==null&&e!==undefined){t.values=e}}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:undefined}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:undefined}getAttrValue(e){if(this.path.length===0)return undefined;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(this.path.length===0)return false;const t=this.path[this.path.length-1];return t.values!==undefined&&e in t.values}getPosition(){if(this.path.length===0)return-1;return this.path[this.path.length-1].position??0}getCounter(){if(this.path.length===0)return-1;return this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=true){const r=e||this.separator;return this.path.map((e=>{if(t&&e.namespace){return`${e.namespace}:${e.tag}`}return e.tag})).join(r)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[];this.siblingStacks=[]}matches(e){const t=e.segments;if(t.length===0){return false}if(e.hasDeepWildcard()){return this._matchWithDeepWildcard(t)}return this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length){return false}for(let t=0;t=0&&t>=0){const n=e[r];if(n.type==="deep-wildcard"){r--;if(r<0){return true}const n=e[r];let s=false;for(let e=t;e>=0;e--){const i=e===this.path.length-1;if(this._matchSegment(n,this.path[e],i)){t=e-1;r--;s=true;break}}if(!s){return false}}else{const e=t===this.path.length-1;if(!this._matchSegment(n,this.path[t],e)){return false}t--;r--}}return r<0}_matchSegment(e,t,r){if(e.tag!=="*"&&e.tag!==t.tag){return false}if(e.namespace!==undefined){if(e.namespace!=="*"&&e.namespace!==t.namespace){return false}}if(e.attrName!==undefined){if(!r){return false}if(!t.values||!(e.attrName in t.values)){return false}if(e.attrValue!==undefined){const r=t.values[e.attrName];if(String(r)!==String(e.attrValue)){return false}}}if(e.position!==undefined){if(!r){return false}const n=t.counter??0;if(e.position==="first"&&n!==0){return false}else if(e.position==="odd"&&n%2!==1){return false}else if(e.position==="even"&&n%2!==0){return false}else if(e.position==="nth"){if(n!==e.positionValue){return false}}}return true}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e})));this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){const e=this;return new Proxy(e,{get(e,t,r){if(Rr.has(t)){return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. `+`Obtain a writable instance to mutate state.`)}}const n=Reflect.get(e,t,r);if(t==="path"||t==="siblingStacks"){return Object.freeze(Array.isArray(n)?n.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):n)}if(typeof n==="function"){return n.bind(e)}return n},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}const xr="\n";function toXml(e,t){let r="";if(t.format&&t.indentBy.length>0){r=xr}const n=[];if(t.stopNodes&&Array.isArray(t.stopNodes)){for(let e=0;et.maxNestedTags){throw new Error("Maximum nested tags exceeded")}if(!Array.isArray(e)){if(e!==undefined&&e!==null){let r=e.toString();r=replaceEntitiesValue(r,t);return r}return""}for(let a=0;a`;o=false;n.pop();continue}else if(l===t.commentPropName){i+=r+`\x3c!--${c[l][0][t.textNodeName]}--\x3e`;o=true;n.pop();continue}else if(l[0]==="?"){const e=attr_to_str(c[":@"],t,u);const s=l==="?xml"?"":r;let a=c[l][0][t.textNodeName];a=a.length!==0?" "+a:"";i+=s+`<${l}${a}${e}?>`;o=true;n.pop();continue}let d=r;if(d!==""){d+=t.indentBy}const p=attr_to_str(c[":@"],t,u);const m=r+`<${l}${p}`;let h;if(u){h=orderedJs2Xml_getRawContent(c[l],t)}else{h=arrToStr(c[l],t,d,n,s)}if(t.unpairedTags.indexOf(l)!==-1){if(t.suppressUnpairedNode)i+=m+">";else i+=m+"/>"}else if((!h||h.length===0)&&t.suppressEmptyNode){i+=m+"/>"}else if(h&&h.endsWith(">")){i+=m+`>${h}${r}`}else{i+=m+">";if(h&&r!==""&&(h.includes("/>")||h.includes("`}o=true;n.pop()}return i}function extractAttributeValues(e,t){if(!e||t.ignoreAttributes)return null;const r={};let n=false;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const i=s.startsWith(t.attributeNamePrefix)?s.substr(t.attributeNamePrefix.length):s;r[i]=e[s];n=true}return n?r:null}function orderedJs2Xml_getRawContent(e,t){if(!Array.isArray(e)){if(e!==undefined&&e!==null){return e.toString()}return""}let r="";for(let n=0;n`}else{r+=`<${i}${e}>${n}`}}}return r}function attr_to_str_raw(e,t){let r="";if(e&&!t.ignoreAttributes){for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let s=e[n];if(s===true&&t.suppressBooleanAttributes){r+=` ${n.substr(t.attributeNamePrefix.length)}`}else{r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}}}return r}function propName(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities){for(let r=0;r{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}const vr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false,maxNestedTags:100,jPath:true};function Builder(e){this.options=Object.assign({},vr,e);if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){this.options.stopNodes=this.options.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}this.stopNodeExpressions=[];if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){for(let e=0;e\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}const t=new Matcher;return this.j2x(e,0,t).val}};Builder.prototype.j2x=function(e,t,r){let n="";let s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}const i=this.options.jPath?r.toString():r;const o=this.checkStopNode(r);for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(typeof e[a]==="undefined"){if(this.isAttribute(a)){s+=""}}else if(e[a]===null){if(this.isAttribute(a)){s+=""}else if(a===this.options.cdataPropName){s+=""}else if(a[0]==="?"){s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar}}else if(e[a]instanceof Date){s+=this.buildTextValNode(e[a],a,"",t,r)}else if(typeof e[a]!=="object"){const c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,i)){n+=this.buildAttrPairStr(c,""+e[a],o)}else if(!c){if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);s+=this.replaceEntitiesValue(t)}else{r.push(a);const n=this.checkStopNode(r);r.pop();if(n){const r=""+e[a];if(r===""){s+=this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+">"+r+""+e+"${e}`}else if(typeof e==="object"&&e!==null){const n=this.buildRawContent(e);const s=this.buildAttributesForStopNode(e);if(n===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${n}`}}}}else if(typeof n==="object"&&n!==null){const e=this.buildRawContent(n);const s=this.buildAttributesForStopNode(n);if(e===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${e}`}}else{t+=`<${r}>${n}`}}return t};Builder.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const r=e[this.options.attributesGroupName];for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e;const s=r[e];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}else{for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=this.isAttribute(r);if(n){const s=e[r];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}}return t};Builder.prototype.buildObjectNode=function(e,t,r,n){if(e===""){if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}}else{let s=""+e+s}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&i.length===0){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar}else{let s=this.options.tagValueProcessor(t,e);s=this.replaceEntitiesValue(s);if(s===""){return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}else{return this.indentate(n)+"<"+t+r+">"+s+"0&&this.options.processEntities){for(let t=0;t"&&e[i]!==" "&&e[i]!=="\t"&&e[i]!=="\n"&&e[i]!=="\r";i++){c+=e[i]}c=c.trim();if(c[c.length-1]==="/"){c=c.substring(0,c.length-1);i--}if(!validateTagName(c)){let t;if(c.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+c+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,i))}const l=readAttributeStr(e,i);if(l===false){return getErrorObject("InvalidAttr","Attributes for '"+c+"' have open quote.",getLineNumberForPosition(e,i))}let A=l.value;i=l.index;if(A[A.length-1]==="/"){const r=i-A.length;A=A.substring(0,A.length-1);const s=validateAttributeString(A,t);if(s===true){n=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,r+s.err.line))}}else if(a){if(!l.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",getLineNumberForPosition(e,i))}else if(A.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,o))}else if(r.length===0){return getErrorObject("InvalidTag","Closing tag '"+c+"' has not been opened.",getLineNumberForPosition(e,o))}else{const t=r.pop();if(c!==t.tagName){let r=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+c+"'.",getLineNumberForPosition(e,o))}if(r.length==0){s=true}}}else{const a=validateAttributeString(A,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,i-A.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,i))}else if(t.unpairedTags.indexOf(c)!==-1){}else{r.push({tagName:c,tagStartPos:o})}n=true}for(i++;i0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const r=t;for(;t5&&n==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"){r--;if(r===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}}return t}const Or='"';const Hr="'";function readAttributeStr(e,t){let r="";let n="";let s=false;for(;t"){if(n===""){s=true;break}}r+=e[t]}if(n!==""){return false}return{value:r,index:t,tagClosed:s}}const _r=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const r=getAllMatches(e,_r);const n={};for(let e=0;e{if(Lr.includes(e)){return"__"+e}return e};const qr={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,r){return e},captureMetaData:false,maxNestedTags:100,strictReservedNames:true,jPath:true,onDangerousProperty:defaultOnDangerousProperty};function validatePropertyName(e,t){if(typeof e!=="string"){return}const r=e.toLowerCase();if(Lr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}if(Fr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}}function normalizeProcessEntities(e){if(typeof e==="boolean"){return{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}}if(typeof e==="object"&&e!==null){return{enabled:e.enabled!==false,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(e){const t=Object.assign({},qr,e);const r=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of r){if(e){validatePropertyName(e,t)}}if(t.onDangerousProperty===null){t.onDangerousProperty=defaultOnDangerousProperty}t.processEntities=normalizeProcessEntities(t.processEntities);if(t.stopNodes&&Array.isArray(t.stopNodes)){t.stopNodes=t.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}return t};let Vr;if(typeof Symbol!=="function"){Vr="@@xmlMetadata"}else{Vr=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]=Object.create(null)}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][Vr]={startIndex:t}}}static getMetaDataSymbol(){return Vr}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e;this.options=e}readDocType(e,t){const r=Object.create(null);let n=0;if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let s=1;let i=false,o=false;let a="";for(;t=this.options.maxEntityCount){throw new Error(`Entity count (${n+1}) exceeds maximum allowed (${this.options.maxEntityCount})`)}const e=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[s]={regx:RegExp(`&${e};`,"g"),val:i};n++}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:r}=this.readElementExp(e,t+1);t=r}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(hasSeq(e,"!--",t))o=true;else throw new Error(`Invalid DOCTYPE`);s++;a=""}else if(e[t]===">"){if(o){if(e[t-1]==="-"&&e[t-2]==="-"){o=false;s--}}else{s--}if(s===0){break}}else if(e[t]==="["){i=true}else{a+=e[t]}}if(s!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);const r=t;while(tthis.options.maxEntitySize){throw new Error(`Entity "${n}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}t--;return[n,s,t]}readNotationExp(e,t){t=skipWhitespace(e,t);const r=t;while(t{while(t1||i.length===1&&!a)){return e}else{const n=Number(r);const a=String(n);if(n===0)return n;if(a.search(/[eE]/)!==-1){if(t.eNotation)return n;else return e}else if(r.indexOf(".")!==-1){if(a==="0")return n;else if(a===o)return n;else if(a===`${s}${o}`)return n;else return e}let c=i?o:r;if(i){return c===a||s+c===a?n:e}else{return c===a||c===s+a?n:e}}}else{return e}}}const Wr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,r){if(!r.eNotation)return e;const n=t.match(Wr);if(n){let s=n[1]||"";const i=n[3].indexOf("e")===-1?"E":"e";const o=n[2];const a=s?e[o.length+1]===i:e[o.length]===i;if(o.length>1&&a)return e;else if(o.length===1&&(n[3].startsWith(`.${i}`)||n[3][0]===i)){return Number(t)}else if(o.length>0){if(r.leadingZeros&&!a){t=(n[1]||"")+n[3];return Number(t)}else return e}else{return Number(t)}}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(e,t,r){const n=t===Infinity;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return n?"Infinity":"-Infinity";case"original":default:return e}}function ignoreAttributes_getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}function extractRawAttributes(e,t){if(!e)return{};const r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return{};const n={};for(const e in r){if(e.startsWith(t.attributeNamePrefix)){const s=e.substring(t.attributeNamePrefix.length);n[s]=r[e]}else{n[e]=r[e]}}return n}function extractNamespace(e){if(!e||typeof e!=="string")return undefined;const t=e.indexOf(":");if(t!==-1&&t>0){const r=e.substring(0,t);if(r!=="xmlns"){return r}}return undefined}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;this.matcher=new Matcher;this.readonlyMatcher=this.matcher.readOnly();this.isCurrentNodeStopNode=false;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e0){if(!o)e=this.replaceEntitiesValue(e,t,r);const n=this.options.jPath?r.toString():r;const a=this.options.tagValueProcessor(t,e,n,s,i);if(a===null||a===undefined){return e}else if(typeof a!==typeof e||a!==e){return a}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=r+t[1]}}return e}const $r=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,r){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const n=getAllMatches(e,$r);const s=n.length;const i={};const o={};for(let e=0;e0&&typeof t==="object"&&t.updateCurrent){t.updateCurrent(o)}for(let e=0;e",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");if(e!==-1){s=s.substr(e+1)}}s=transformTagName(this.options.transformTagName,s,"",this.options).tagName;if(r){n=this.saveTextToParentTag(n,r,this.readonlyMatcher)}const o=this.matcher.getCurrentTag();if(s&&this.options.unpairedTags.indexOf(s)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}if(o&&this.options.unpairedTags.indexOf(o)!==-1){this.matcher.pop();this.tagsNodeStack.pop()}this.matcher.pop();this.isCurrentNodeStopNode=false;r=this.tagsNodeStack.pop();n="";i=t}else if(e[i+1]==="?"){let t=readTagExp(e,i,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)}this.addChild(r,e,this.readonlyMatcher,i)}i=t.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if(e.substr(i+1,2)==="!D"){const t=s.readDocType(e,i);this.docTypeEntities=t.entities;i=t.i}else if(e.substr(i+1,2)==="!["){const t=findClosingIndex(e,"]]>",i,"CDATA is not closed.")-2;const s=e.substring(i+9,t);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let o=this.parseTextData(s,r.tagname,this.readonlyMatcher,true,false,true,true);if(o==undefined)o="";if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}])}else{r.add(this.options.textNodeName,o)}i=t+2}else{let s=readTagExp(e,i,this.options.removeNSPrefix);if(!s){const t=e.substring(Math.max(0,i-50),Math.min(e.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${t}"`)}let o=s.tagName;const a=s.rawTagName;let c=s.tagExp;let l=s.attrExpPresent;let A=s.closeIndex;({tagName:o,tagExp:c}=transformTagName(this.options.transformTagName,o,c,this.options));if(this.options.strictReservedNames&&(o===this.options.commentPropName||o===this.options.cdataPropName||o===this.options.textNodeName||o===this.options.attributesGroupName)){throw new Error(`Invalid tag name: ${o}`)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,this.readonlyMatcher,false)}}const u=r;if(u&&this.options.unpairedTags.indexOf(u.tagname)!==-1){r=this.tagsNodeStack.pop();this.matcher.pop()}let d=false;if(c.length>0&&c.lastIndexOf("/")===c.length-1){d=true;if(o[o.length-1]==="/"){o=o.substr(0,o.length-1);c=o}else{c=c.substr(0,c.length-1)}l=o!==c}let p=null;let m={};let h=undefined;h=extractNamespace(a);if(o!==t.tagname){this.matcher.push(o,{},h)}if(o!==c&&l){p=this.buildAttributesMap(c,this.matcher,o);if(p){m=extractRawAttributes(p,this.options)}}if(o!==t.tagname){this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher)}const g=i;if(this.isCurrentNodeStopNode){let t="";if(d){i=s.closeIndex}else if(this.options.unpairedTags.indexOf(o)!==-1){i=s.closeIndex}else{const r=this.readStopNodeData(e,a,A+1);if(!r)throw new Error(`Unexpected end of ${a}`);i=r.i;t=r.tagContent}const n=new XmlNode(o);if(p){n[":@"]=p}n.add(this.options.textNodeName,t);this.matcher.pop();this.isCurrentNodeStopNode=false;this.addChild(r,n,this.readonlyMatcher,g)}else{if(d){({tagName:o,tagExp:c}=transformTagName(this.options.transformTagName,o,c,this.options));const e=new XmlNode(o);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);this.matcher.pop();this.isCurrentNodeStopNode=false}else if(this.options.unpairedTags.indexOf(o)!==-1){const e=new XmlNode(o);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);this.matcher.pop();this.isCurrentNodeStopNode=false;i=s.closeIndex;continue}else{const e=new XmlNode(o);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(r);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);r=e}n="";i=A}}}else{n+=e[i]}}return t.child};function addChild(e,t,r,n){if(!this.options.captureMetaData)n=undefined;const s=this.options.jPath?r.toString():r;const i=this.options.updateTag(t.tagname,s,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,n)}else{e.addChild(t,n)}}function OrderedObjParser_replaceEntitiesValue(e,t,r){const n=this.options.processEntities;if(!n||!n.enabled){return e}if(n.allowedTags){const s=this.options.jPath?r.toString():r;const i=Array.isArray(n.allowedTags)?n.allowedTags.includes(t):n.allowedTags(t,s);if(!i){return e}}if(n.tagFilter){const s=this.options.jPath?r.toString():r;if(!n.tagFilter(t,s)){return e}}for(const t of Object.keys(this.docTypeEntities)){const r=this.docTypeEntities[t];const s=e.match(r.regx);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}const t=e.length;e=e.replace(r.regx,r.val);if(n.maxExpandedLength){this.currentExpandedLength+=e.length-t;if(this.currentExpandedLength>n.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n.maxExpandedLength}`)}}}}for(const t of Object.keys(this.lastEntities)){const r=this.lastEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities){for(const t of Object.keys(this.htmlEntities)){const r=this.htmlEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val);return e}function saveTextToParentTag(e,t,r,n){if(e){if(n===undefined)n=t.child.length===0;e=this.parseTextData(e,t.tagname,r,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,n);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t){if(!e||e.length===0)return false;for(let r=0;r",r,`${t} is not closed`);let o=e.substring(r+2,i).trim();if(o===t){s--;if(s===0){return{tagContent:e.substring(n,r),i:i}}}r=i}else if(e[r+1]==="?"){const t=findClosingIndex(e,"?>",r+1,"StopNode is not closed.");r=t}else if(e.substr(r+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",r+3,"StopNode is not closed.");r=t}else if(e.substr(r+1,2)==="!["){const t=findClosingIndex(e,"]]>",r,"StopNode is not closed.")-2;r=t}else{const n=readTagExp(e,r,">");if(n){const e=n&&n.tagName;if(e===t&&n.tagExp[n.tagExp.length-1]!=="/"){s++}r=n.closeIndex}}}}}function parseValue(e,t,r){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,r)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,r){const n=Number.parseInt(e,t);if(n>=0&&n<=1114111){return String.fromCodePoint(n)}else{return r+e+";"}}function transformTagName(e,t,r,n){if(e){const n=e(t);if(r===t){r=n}t=n}t=sanitizeName(t,n);return{tagName:t,tagExp:r}}function sanitizeName(e,t){if(Fr.includes(e)){throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}else if(Lr.includes(e)){return t.onDangerousProperty(e)}return e}const jr=XmlNode.getMetaDataSymbol();function stripAttributePrefix(e,t){if(!e||typeof e!=="object")return{};if(!t)return e;const r={};for(const n in e){if(n.startsWith(t)){const s=n.substring(t.length);r[s]=e[n]}else{r[n]=e[n]}}return r}function prettify(e,t,r,n){return compress(e,t,r,n)}function compress(e,t,r,n){let s;const i={};for(let o=0;o0)i[t.textNodeName]=s}else if(s!==undefined)i[t.textNodeName]=s;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e${i}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const r=zr.validate(e);if(r!==true){throw r}const n=new XMLParser(getParserOptions(t));const s=n.parse(e);if(s["?xml"]){delete s["?xml"]}if(!t.includeRoot){for(const e of Object.keys(s)){const t=s[e];return typeof t==="object"?Object.assign({},t):t}}return s}const Zr=esm_createClientLogger("storage-blob");var en=n(4434);class BuffersStream extends fe.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,r){super(r);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let n=0;for(const e of this.buffers){n+=e.byteLength}if(n=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const n=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,n));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=n;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(i===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=i;r+=i}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var tn=n(4573);const rn=tn.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,r){this.capacity=e;this._size=0;const n=Math.ceil(e/rn);for(let t=0;t0){e[0]=e[0].slice(i)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new en.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,r,n,s,i){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=n;this.concurrency=s;this.encoding=i}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthr.getReadableStream()),r.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let nn;function cache_getCachedDefaultHttpClient(){if(!nn){nn=esm_defaultHttpClient_createDefaultHttpClient()}return nn}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const sn="1.0.0";const on={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const an={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const cn=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const ln=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_common_escape(r);t.pathname=r;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=getValueInConnString(e,"AccountName");i=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){n=getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let n=getValueInConnString(e,"AccountName");if(!n){n=getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+padStart(t.toString(),r-e.length,"0");return base64encode(i)}async function utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,sanitizeURL(n))}else{t.set(r,n)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;ei}const o=s0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,an.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,an.CONTENT_ENCODING),this.getHeaderValueToSign(e,an.CONTENT_LENGTH),this.getHeaderValueToSign(e,an.CONTENT_MD5),this.getHeaderValueToSign(e,an.CONTENT_TYPE),this.getHeaderValueToSign(e,an.DATE),this.getHeaderValueToSign(e,an.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,an.IF_MATCH),this.getHeaderValueToSign(e,an.IF_NONE_MATCH),this.getHeaderValueToSign(e,an.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,an.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(an.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const n=getURLQueries(e.url);const s={};if(n){const e=[];for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const r=t.toLowerCase();s[r]=n[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const pn=esm_createClientLogger("storage-common");var mn;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(mn||(mn={}));function NewRetryPolicyFactory(e){return{create:(t,r)=>new StorageRetryPolicy(t,r,e)}}const hn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const gn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,r=hn){super(e,t);this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:hn.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):hn.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:hn.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:hn.maxRetryDelayInMs):hn.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:hn.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:hn.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const n=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){n.url=setURLHost(n.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){n.url=setURLParameter(n.url,on.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let i;try{pn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);i=await this._nextPolicy.sendRequest(n);if(!this.shouldRetry(s,r,i)){return i}t=t||!s&&i.status===404}catch(e){pn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,i,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,n){if(t>=this.retryOptions.maxTries){pn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(const e of s){if(n.name.toUpperCase().includes(e)||n.message.toUpperCase().includes(e)||n.code&&n.code.toString().toUpperCase()===e){pn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||n){const t=r?r.status:n?n.statusCode:0;if(!e&&t===404){pn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){pn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(r){if(r?.status>=400){const e=r.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(n?.code==="PARSE_ERROR"&&n?.message.startsWith(`Error "Error: Unclosed root tag`)){pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,r){let n=0;if(e){switch(this.retryOptions.retryPolicyType){case mn.EXPONENTIAL:n=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mn.FIXED:n=this.retryOptions.retryDelayInMs;break}}else{n=Math.random()*1e3}pn.info(`RetryPolicy: Delay for ${n}ms`);return utils_common_delay(n,r,gn)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const fn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:fn,async sendRequest(e,t){if(Dt){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,on.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(an.COOKIE);e.headers.delete(an.CONTENT_LENGTH);return t(e)}}}const yn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:yn,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const Cn="storageRetryPolicy";const En={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Bn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const In=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??En.retryPolicyType;const r=e.maxTries??En.maxTries;const n=e.retryDelayInMs??En.retryDelayInMs;const s=e.maxRetryDelayInMs??En.maxRetryDelayInMs;const i=e.secondaryHost??En.secondaryHost;const o=e.tryTimeoutInMs??En.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:s}){if(t>=r){pn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${r}, no further try.`);return false}if(s){for(const e of Bn){if(s.name.toUpperCase().includes(e)||s.message.toUpperCase().includes(e)||s.code&&s.code.toString().toUpperCase()===e){pn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(s?.code==="PARSE_ERROR"&&s?.message.startsWith(`Error "Error: Unclosed root tag`)){pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||s){const t=n?.status??s?.statusCode??0;if(!e&&t===404){pn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){pn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,r){let i=0;if(e){switch(t){case mn.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*n,s);break;case mn.FIXED:i=n;break}}else{i=Math.random()*1e3}pn.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:Cn,async sendRequest(e,t){if(o){e.url=setURLParameter(e.url,on.Parameters.TIMEOUT,String(Math.floor(o/1e3)))}const r=e.url;const n=i?setURLHost(e.url,i):undefined;let s=false;let a=1;let c=true;let l;let A;while(c){const i=s||!n||!["GET","HEAD","OPTIONS"].includes(e.method)||a%2===1;e.url=i?r:n;l=undefined;A=undefined;try{pn.info(`RetryPolicy: =====> Try=${a} ${i?"Primary":"Secondary"}`);l=await t(e);s=s||!i&&l.status===404}catch(e){if(esm_restError_isRestError(e)){pn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);A=e}else{pn.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}c=shouldRetry({isPrimaryRetry:i,attempt:a,response:l,error:A});if(c){await utils_common_delay(calculateDelay(i,a),e.abortSignal,In)}a++}if(l){return l}throw A??new Wt("RetryPolicy failed without known error.")}}}const Qn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(an.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(t.body))}const r=[t.method.toUpperCase(),getHeaderValueToSign(t,an.CONTENT_LANGUAGE),getHeaderValueToSign(t,an.CONTENT_ENCODING),getHeaderValueToSign(t,an.CONTENT_LENGTH),getHeaderValueToSign(t,an.CONTENT_MD5),getHeaderValueToSign(t,an.CONTENT_TYPE),getHeaderValueToSign(t,an.DATE),getHeaderValueToSign(t,an.IF_MODIFIED_SINCE),getHeaderValueToSign(t,an.IF_MATCH),getHeaderValueToSign(t,an.IF_NONE_MATCH),getHeaderValueToSign(t,an.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,an.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const n=(0,St.createHmac)("sha256",e.accountKey).update(r,"utf8").digest("base64");t.headers.set(an.AUTHORIZATION,`SharedKey ${e.accountName}:${n}`)}function getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}function getCanonicalizedHeadersString(e){let t=[];for(const[r,n]of e.headers){if(r.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)){t.push({name:r,value:n})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}function getCanonicalizedResourceString(t){const r=getURLPath(t.url)||"/";let n="";n+=`/${e.accountName}${r}`;const s=getURLQueries(t.url);const i={};if(s){const e=[];for(const t in s){if(Object.prototype.hasOwnProperty.call(s,t)){const r=t.toLowerCase();i[r]=s[t];e.push(r)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}return{name:Qn,async sendRequest(e,t){signRequest(e);return t(e)}}}const bn="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:bn,async sendRequest(e,t){try{const r=await t(e);return r}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.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.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const Sn="12.31.0";const wn="2026-02-06";const Nn=256*1024*1024;const Rn=4e3*1024*1024;const xn=5e4;const vn=8*1024*1024;const Dn=4*1024*1024;const kn=5;const Tn=100*1e3;const Pn="https://storage.azure.com/.default";const Mn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ln={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Fn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const Un="";const On="*";const Hn=1*1024*1024;const _n=256;const zn=4*Hn;const qn="\r\n";const Vn="HTTP/1.1";const Gn="AES256";const Yn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Jn=["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"];const Wn=["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"];const $n="BlobUsesCustomerSpecifiedEncryption";const jn="BlobDoesNotUseCustomerSpecifiedEncryption";const Kn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const r=new Pipeline([],t);r._credential=e;return r}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const r=e.factories.filter((e=>!t.some((t=>t(e)))));if(r.length){const e=r.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(r),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...r}=e.options;let n=e._coreHttpClient;if(!n){n=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=n}let s=e._corePipeline;if(!s){const t=`azsdk-js-azure-storage-blob/${Sn}`;const n=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;s=createClientPipeline({...r,loggingOptions:{additionalAllowedHeaderNames:Jn,additionalAllowedQueryParameters:Wn,logger:Zr.info},userAgentOptions:{userAgentPrefix:n},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});s.removePolicy({phase:"Retry"});s.removePolicy({name:Ut});s.addPolicy(storageCorrectContentLengthPolicy());s.addPolicy(storageRetryPolicy(r.retryOptions),{phase:"Retry"});s.addPolicy(storageRequestFailureDetailsParserPolicy());s.addPolicy(storageBrowserPolicy());const i=processDownlevelPipeline(e);if(i){s.addPolicy(i.wrappedPolicies,i.afterRetry?{afterPhase:"Retry"}:undefined)}const o=getCredentialFromPipeline(e);if(isTokenCredential(o)){s.addPolicy(bearerTokenAuthenticationPolicy({credential:o,scopes:r.audience??Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(o instanceof StorageSharedKeyCredential){s.addPolicy(storageSharedKeyCredentialPolicy({accountName:o.accountName,accountKey:o.accountKey}),{phase:"Sign"})}e._corePipeline=s}return{...r,allowInsecureConnection:true,httpClient:n,pipeline:s}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const r of e.factories){if(isTokenCredential(r.credential)){t=r.credential}else if(isStorageSharedKeyCredential(r)){return r}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const r={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const n={log(e,t){},shouldLog(e){return false}};const s=e.create(r,n);const i=s.constructor.name;return t.some((e=>i.startsWith(e)))}var Xn;(function(e){e["AES256"]="AES256"})(Xn||(Xn={}));var Zn;(function(e){e["Backup"]="backup"})(Zn||(Zn={}));var es;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(es||(es={}));var ts;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ts||(ts={}));const rs={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ns={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const as={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const cs={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const ls={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const As={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const us={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const ds={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ps={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ms={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const hs={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const gs={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const ys={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Cs={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Es={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const Bs={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Is={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Qs={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const bs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Ss={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ws={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Ns={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const Rs={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const xs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const vs={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ds={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ks={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ts={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Ps={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const Ms={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Ls={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Fs={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Us={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Os={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Hs={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const _s={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const zs={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const qs={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const Vs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const Gs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ys={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ii={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Si={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wi={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ni={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ri={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Di={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ki={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ti={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mi={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Fi={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ui={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _i={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const qi={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Gi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $i={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xi={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Zi={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const eo={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ro={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const no={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const so={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const io={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oo={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const ao={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ao={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const uo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const po={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const mo={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ho={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const yo={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Co={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Eo={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bo={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Io={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const So={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wo={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const No={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ro={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Do={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const ko={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const To={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Po={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mo={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qo={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Jo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jo={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const la={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const Aa={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ua={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ha={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ca={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ba={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qa={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const ba={parameterPath:"blobServiceProperties",mapper:rs};const Sa={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const wa={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Na={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ra={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xa={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const va={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Da={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ka={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ta={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pa={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ma={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const La={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Fa={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Ua={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Oa={parameterPath:"keyInfo",mapper:gs};const Ha={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _a={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const za={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const qa={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Va={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Ga={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Ya={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ja={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Wa={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const $a={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const ja={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ka={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Xa={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Za={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const ec={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const tc={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const rc={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nc={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sc={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const ic={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const oc={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const ac={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const cc={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const lc={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ac={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const uc={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dc={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const pc={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const mc={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const hc={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const gc={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const fc={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const yc={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Cc={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Ec={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Bc={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Ic={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const Qc={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const bc={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Sc={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const wc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Nc={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Rc={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const xc={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const vc={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Dc={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const kc={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Tc={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Pc={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const Mc={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const Lc={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const Fc={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Uc={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oc={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Hc={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const _c={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const zc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const qc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Vc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const Gc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Yc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const Jc={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wc={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const $c={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const jc={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kc={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Xc={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Zc={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const el={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const tl={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const rl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const nl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const sl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const il={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const ol={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const al={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const cl={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const ll={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Al={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ul={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const dl={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const pl={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const ml={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const hl={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const gl={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fl={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const yl={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Cl={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const El={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Bl={parameterPath:["options","queryRequest"],mapper:Os};const Il={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ql={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bl={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Sl={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const wl={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Nl={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const Rl={parameterPath:["options","tags"],mapper:Bs};const xl={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const vl={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Dl={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const kl={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Tl={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Pl={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ml={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ll={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Fl={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ul={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ol={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const Hl={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const _l={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const zl={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ql={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Vl={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Gl={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Yl={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Jl={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wl={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const $l={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const jl={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const Kl={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xl={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Zl={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const eA={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const tA={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const rA={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const nA={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sA={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const iA={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const oA={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const aA={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const cA={parameterPath:"blocks",mapper:Ts};const lA={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const AA={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},dA)}getProperties(e){return this.client.sendOperationRequest({options:e},pA)}getStatistics(e){return this.client.sendOperationRequest({options:e},mA)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},hA)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},gA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},fA)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},yA)}filterBlobs(e){return this.client.sendOperationRequest({options:e},CA)}}const uA=createSerializer(s,true);const dA={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ys},default:{bodyMapper:As,headersMapper:Js}},requestBody:ba,queryParameters:[Na,Ra,xa],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const pA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rs,headersMapper:Ws},default:{bodyMapper:As,headersMapper:$s}},queryParameters:[Na,Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const mA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:us,headersMapper:js},default:{bodyMapper:As,headersMapper:Ks}},queryParameters:[Na,xa,Ta],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const hA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ps,headersMapper:Xs},default:{bodyMapper:As,headersMapper:Zs}},queryParameters:[xa,Pa,Ma,La,Fa,Ua],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const gA={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:ys,headersMapper:ei},default:{bodyMapper:As,headersMapper:ti}},requestBody:Oa,queryParameters:[Na,xa,Ha],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const fA={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ri},default:{bodyMapper:As,headersMapper:ni}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const yA={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:si},default:{bodyMapper:As,headersMapper:ii}},requestBody:za,queryParameters:[xa,qa],urlParameters:[wa],headerParameters:[Sa,va,Da,Va,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const CA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:oi},default:{bodyMapper:As,headersMapper:ai}},queryParameters:[xa,La,Fa,Ya,Ja],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},BA)}getProperties(e){return this.client.sendOperationRequest({options:e},IA)}delete(e){return this.client.sendOperationRequest({options:e},QA)}setMetadata(e){return this.client.sendOperationRequest({options:e},bA)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},SA)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},wA)}restore(e){return this.client.sendOperationRequest({options:e},NA)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},RA)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},xA)}filterBlobs(e){return this.client.sendOperationRequest({options:e},vA)}acquireLease(e){return this.client.sendOperationRequest({options:e},DA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},kA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},TA)}breakLease(e){return this.client.sendOperationRequest({options:e},PA)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},MA)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},LA)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},FA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},UA)}}const EA=createSerializer(s,true);const BA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ci},default:{bodyMapper:As,headersMapper:li}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,ja,Ka,Xa],isXML:true,serializer:EA};const IA={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ai},default:{bodyMapper:As,headersMapper:ui}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,Za],isXML:true,serializer:EA};const QA={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:di},default:{bodyMapper:As,headersMapper:pi}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc],isXML:true,serializer:EA};const bA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:mi},default:{bodyMapper:As,headersMapper:hi}},queryParameters:[xa,Wa,rc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec],isXML:true,serializer:EA};const SA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:gi},default:{bodyMapper:As,headersMapper:fi}},queryParameters:[xa,Wa,nc],urlParameters:[wa],headerParameters:[va,Da,ka,Za],isXML:true,serializer:EA};const wA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:yi},default:{bodyMapper:As,headersMapper:Ci}},requestBody:sc,queryParameters:[xa,Wa,nc],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,ja,Za,ec,tc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:EA};const NA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ei},default:{bodyMapper:As,headersMapper:Bi}},queryParameters:[xa,Wa,ic],urlParameters:[wa],headerParameters:[va,Da,ka,oc,ac],isXML:true,serializer:EA};const RA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ii},default:{bodyMapper:As,headersMapper:Qi}},queryParameters:[xa,Wa,cc],urlParameters:[wa],headerParameters:[va,Da,ka,lc,Ac],isXML:true,serializer:EA};const xA={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:bi},default:{bodyMapper:As,headersMapper:Si}},requestBody:za,queryParameters:[xa,qa,Wa],urlParameters:[wa],headerParameters:[Sa,va,Da,Va,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:EA};const vA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:wi},default:{bodyMapper:As,headersMapper:Ni}},queryParameters:[xa,La,Fa,Ya,Ja,Wa],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const DA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ri},default:{bodyMapper:As,headersMapper:xi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,dc,pc,mc],isXML:true,serializer:EA};const kA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:vi},default:{bodyMapper:As,headersMapper:Di}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,hc,gc],isXML:true,serializer:EA};const TA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ki},default:{bodyMapper:As,headersMapper:Ti}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,fc],isXML:true,serializer:EA};const PA={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Pi},default:{bodyMapper:As,headersMapper:Mi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,yc,Cc],isXML:true,serializer:EA};const MA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Li},default:{bodyMapper:As,headersMapper:Fi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,Ec,Bc],isXML:true,serializer:EA};const LA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ss,headersMapper:Ui},default:{bodyMapper:As,headersMapper:Oi}},queryParameters:[xa,Pa,Ma,La,Fa,Wa,Ic,Qc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const FA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:vs,headersMapper:Hi},default:{bodyMapper:As,headersMapper:_i}},queryParameters:[xa,Pa,Ma,La,Fa,Wa,Ic,Qc,bc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const UA={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:zi},default:{bodyMapper:As,headersMapper:qi}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},HA)}getProperties(e){return this.client.sendOperationRequest({options:e},_A)}delete(e){return this.client.sendOperationRequest({options:e},zA)}undelete(e){return this.client.sendOperationRequest({options:e},qA)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},VA)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},GA)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},YA)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},JA)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},WA)}setMetadata(e){return this.client.sendOperationRequest({options:e},$A)}acquireLease(e){return this.client.sendOperationRequest({options:e},jA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},KA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},XA)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},ZA)}breakLease(e){return this.client.sendOperationRequest({options:e},eu)}createSnapshot(e){return this.client.sendOperationRequest({options:e},tu)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ru)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},nu)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},su)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},iu)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ou)}query(e){return this.client.sendOperationRequest({options:e},au)}getTags(e){return this.client.sendOperationRequest({options:e},cu)}setTags(e){return this.client.sendOperationRequest({options:e},lu)}}const OA=createSerializer(s,true);const HA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vi},default:{bodyMapper:As,headersMapper:Gi}},queryParameters:[xa,Sc,wc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Rc,xc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,serializer:OA};const _A={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Yi},default:{bodyMapper:As,headersMapper:Ji}},queryParameters:[xa,Sc,wc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,serializer:OA};const zA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Wi},default:{bodyMapper:As,headersMapper:$i}},queryParameters:[xa,Sc,wc,Fc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,Lc],isXML:true,serializer:OA};const qA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ji},default:{bodyMapper:As,headersMapper:Ki}},queryParameters:[xa,ic],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const VA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xi},default:{bodyMapper:As,headersMapper:Zi}},queryParameters:[xa,Uc],urlParameters:[wa],headerParameters:[va,Da,ka,Oc,Hc],isXML:true,serializer:OA};const GA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eo},default:{bodyMapper:As,headersMapper:to}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc],isXML:true,serializer:OA};const YA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ro},default:{bodyMapper:As,headersMapper:no}},queryParameters:[xa,Sc,wc,Jc],urlParameters:[wa],headerParameters:[va,Da,ka,tc,Wc,$c],isXML:true,serializer:OA};const JA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:so},default:{bodyMapper:As,headersMapper:io}},queryParameters:[xa,Sc,wc,Jc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const WA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oo},default:{bodyMapper:As,headersMapper:ao}},queryParameters:[xa,Sc,wc,jc],urlParameters:[wa],headerParameters:[va,Da,ka,Kc],isXML:true,serializer:OA};const $A={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:co},default:{bodyMapper:As,headersMapper:lo}},queryParameters:[xa,rc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc],isXML:true,serializer:OA};const jA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ao},default:{bodyMapper:As,headersMapper:uo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,dc,pc,mc,Tc,Pc,Mc],isXML:true,serializer:OA};const KA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:po},default:{bodyMapper:As,headersMapper:mo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,hc,gc,Tc,Pc,Mc],isXML:true,serializer:OA};const XA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ho},default:{bodyMapper:As,headersMapper:go}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,fc,Tc,Pc,Mc],isXML:true,serializer:OA};const ZA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fo},default:{bodyMapper:As,headersMapper:yo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,Ec,Bc,Tc,Pc,Mc],isXML:true,serializer:OA};const eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Co},default:{bodyMapper:As,headersMapper:Eo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,yc,Cc,Tc,Pc,Mc],isXML:true,serializer:OA};const tu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Bo},default:{bodyMapper:As,headersMapper:Io}},queryParameters:[xa,Zc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc],isXML:true,serializer:OA};const ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Qo},default:{bodyMapper:As,headersMapper:bo}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,Tc,Pc,Mc,Wc,$c,el,tl,rl,nl,sl,il,ol,al,cl,ll,Al],isXML:true,serializer:OA};const nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:So},default:{bodyMapper:As,headersMapper:wo}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,Tc,Pc,Mc,Wc,$c,Xc,el,rl,nl,sl,il,al,cl,Al,ul,dl,pl,ml,hl],isXML:true,serializer:OA};const su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:No},default:{bodyMapper:As,headersMapper:Ro}},queryParameters:[xa,gl,yl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,fl],isXML:true,serializer:OA};const iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xo},202:{headersMapper:xo},default:{bodyMapper:As,headersMapper:vo}},queryParameters:[xa,Sc,wc,Cl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc,tl,El],isXML:true,serializer:OA};const ou={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Do},default:{bodyMapper:As,headersMapper:ko}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const au={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},default:{bodyMapper:As,headersMapper:Po}},requestBody:Bl,queryParameters:[xa,Sc,Il],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:OA};const cu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Bs,headersMapper:Mo},default:{bodyMapper:As,headersMapper:Lo}},queryParameters:[xa,Sc,wc,Ql],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc,bl,Sl,wl,Nl],isXML:true,serializer:OA};const lu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Fo},default:{bodyMapper:As,headersMapper:Uo}},requestBody:Rl,queryParameters:[xa,wc,Ql],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,Za,Mc,bl,Sl,wl,Nl,xl,vl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:OA};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:r},uu)}uploadPages(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},du)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},pu)}uploadPagesFromURL(e,t,r,n,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:r,range:n,options:s},mu)}getPageRanges(e){return this.client.sendOperationRequest({options:e},hu)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},gu)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},fu)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},yu)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Cu)}}const Au=createSerializer(s,true);const uu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Oo},default:{bodyMapper:As,headersMapper:Ho}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,Dl,kl,Tl],isXML:true,serializer:Au};const du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_o},default:{bodyMapper:As,headersMapper:zo}},requestBody:Ml,queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,Va,Za,ec,tc,Nc,vc,Dc,kc,Tc,Pc,Mc,Xc,xl,vl,Pl,Ll,Ul,Ol,Hl,_l],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Au};const pu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qo},default:{bodyMapper:As,headersMapper:Vo}},queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,Nc,vc,Dc,kc,Tc,Pc,Mc,Xc,Ol,Hl,_l,zl],isXML:true,serializer:Au};const mu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:As,headersMapper:Yo}},queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,rl,nl,sl,il,dl,pl,hl,Ul,Ol,Hl,_l,ql,Vl,Gl,Yl],isXML:true,serializer:Au};const hu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:Jo},default:{bodyMapper:As,headersMapper:Wo}},queryParameters:[xa,La,Fa,Sc,Jl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Tc,Pc,Mc],isXML:true,serializer:Au};const gu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:$o},default:{bodyMapper:As,headersMapper:jo}},queryParameters:[xa,La,Fa,Sc,Jl,Wl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Tc,Pc,Mc,$l],isXML:true,serializer:Au};const fu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ko},default:{bodyMapper:As,headersMapper:Xo}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,kl],isXML:true,serializer:Au};const yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zo},default:{bodyMapper:As,headersMapper:ea}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,Tl,jl],isXML:true,serializer:Au};const Cu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ta},default:{bodyMapper:As,headersMapper:ra}},queryParameters:[xa,Kl],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,Tc,Pc,Mc,al],isXML:true,serializer:Au};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Bu)}appendBlock(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},Iu)}appendBlockFromUrl(e,t,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:r},Qu)}seal(e){return this.client.sendOperationRequest({options:e},bu)}}const Eu=createSerializer(s,true);const Bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:na},default:{bodyMapper:As,headersMapper:sa}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,cl,Al,Xl],isXML:true,serializer:Eu};const Iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ia},default:{bodyMapper:As,headersMapper:oa}},requestBody:Ml,queryParameters:[xa,Zl],urlParameters:[wa],headerParameters:[va,Da,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,xl,vl,Pl,Ll,eA,tA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Eu};const Qu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:aa},default:{bodyMapper:As,headersMapper:ca}},queryParameters:[xa,Zl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,rl,nl,sl,il,dl,pl,hl,xl,ql,Gl,eA,tA,rA],isXML:true,serializer:Eu};const bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:la},default:{bodyMapper:As,headersMapper:Aa}},queryParameters:[xa,nA],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,tA],isXML:true,serializer:Eu};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},wu)}putBlobFromUrl(e,t,r){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:r},Nu)}stageBlock(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:r,options:n},Ru)}stageBlockFromURL(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:r,options:n},xu)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},vu)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},Du)}}const Su=createSerializer(s,true);const wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ua},default:{bodyMapper:As,headersMapper:da}},requestBody:Ml,queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,xl,vl,Pl,Ll,sA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Su};const Nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pa},default:{bodyMapper:As,headersMapper:ma}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Xc,el,rl,nl,sl,il,ol,al,cl,dl,pl,ml,hl,xl,sA,iA],isXML:true,serializer:Su};const Ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ha},default:{bodyMapper:As,headersMapper:ga}},requestBody:Ml,queryParameters:[xa,oA,aA],urlParameters:[wa],headerParameters:[va,Da,Va,Za,vc,Dc,kc,Xc,xl,vl,Pl,Ll],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Su};const xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fa},default:{bodyMapper:As,headersMapper:ya}},queryParameters:[xa,oA,aA],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,vc,Dc,kc,Xc,rl,nl,sl,il,dl,pl,hl,ql,Gl,rA],isXML:true,serializer:Su};const vu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ca},default:{bodyMapper:As,headersMapper:Ea}},requestBody:cA,queryParameters:[xa,lA],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,xl,vl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Su};const Du={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:Ba},default:{bodyMapper:As,headersMapper:Ia}},queryParameters:[xa,Sc,lA,AA],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc],isXML:true,serializer:Su};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const r={requestContentType:"application/json; charset=utf-8"};const n=`azsdk-js-azure-storage-blob/12.30.0`;const s=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;const i={...r,...t,userAgentOptions:{userAgentPrefix:s},endpoint:t.endpoint??t.baseUri??"{url}"};super(i);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const r={...t};if(r.path==="/{containerName}"||r.path==="/{containerName}/{blob}"){r.path=""}return super.sendOperationRequest(e,r)}}function utils_common_escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_utils_common_escape(r);t.pathname=r;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=Yn}let r=utils_common_getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=utils_common_getValueInConnString(e,"AccountName");i=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!r){n=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=utils_common_getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let n=utils_common_getValueInConnString(e,"AccountName");if(!n){n=utils_common_getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function utils_common_setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function utils_common_getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+utils_common_padStart(t.toString(),r-e.length,"0");return utils_common_base64encode(i)}async function utils_utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,utils_common_sanitizeURL(n))}else{t.set(r,n)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&Kn.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.blobTagSet.push({key:r,value:n})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const n=r.split("_");const s="or-";if(n[0].startsWith(s)){n[0]=n[0].substring(s.length)}const i={ruleId:n[1],replicationStatus:e[r]};const o=t.findIndex((e=>e.policyId===n[0]));if(o>-1){t[o].rules.push(i)}else{t.push({policyId:n[0],rules:[i]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let n=0;let s=0;while(n0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){return generateBlobSASQueryParametersInternal(e,t,r).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,r){const n=e.version?e.version:wn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let i;if(s===undefined&&r!==undefined){i=new UserDelegationKeyCredential(r,t)}if(s===undefined&&i===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(n>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{if(n>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,i)}else{return generateBlobSASQueryParametersUDK20201206(e,i)}}}if(n>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(n>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,i)}else{return generateBlobSASQueryParametersUDK20181109(e,i)}}}if(n>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let n;if(e.permissions){if(e.blobName){n=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{n=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[n?n:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const i=t.computeHMACSHA256(s);return{sasQueryParameters:new SASQueryParameters(e.version,i,n,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:s}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:i}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:i}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:i}}function getCanonicalName(e,t,r){const n=[`/blob/${e}/${t}`];if(r){n.push(`/${r}`)}return n.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:wn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const r=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=r.container}else{this._isContainer=false;this._containerOrBlobOperation=r.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-acquireLease",t,(async r=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:r.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-changeLease",t,(async r=>{const n=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));this._leaseId=e;return n}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 ku.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 ku.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-breakLease",t,(async r=>{const n={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(n))}))}}class RetriableReadableStream extends fe.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,r,n,s={}){super({highWaterMark:s.highWaterMark});this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+n-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Dt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,r,n,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,n,s)}}const Pu=16;const Mu=new Uint8Array([79,98,106,1]);const Lu="avro.codec";const Fu="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const n=await e.read(t,{abortSignal:r.abortSignal});if(n.length!==t){throw new Error("Hit stream end.")}return n}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let n=0;let s,i,o;do{s=await AvroParser.readByte(e,t);i=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return n}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const n=new TextDecoder;return n.decode(r)}static async readMapPair(e,t,r={}){const n=await AvroParser.readString(e,r);const s=await t(e,r);return{key:n,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const n=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of n){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const n=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);n.push(s)}}return n}}var Uu;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Uu||(Uu={}));var Ou;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(Ou||(Ou={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case Ou.NULL:case Ou.BOOLEAN:case Ou.INT:case Ou.LONG:case Ou.FLOAT:case Ou.DOUBLE:case Ou.BYTES:case Ou.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case Uu.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Uu.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Uu.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Uu.ARRAY:case Uu.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case Ou.NULL:return AvroParser.readNull();case Ou.BOOLEAN:return AvroParser.readBoolean(e,t);case Ou.INT:return AvroParser.readInt(e,t);case Ou.LONG:return AvroParser.readLong(e,t);case Ou.FLOAT:return AvroParser.readFloat(e,t);case Ou.DOUBLE:return AvroParser.readDouble(e,t);case Ou.BYTES:return AvroParser.readBytes(e,t);case Ou.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const n in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,n)){r[n]=await this._fields[n].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,Pu,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}const Hu=e(import.meta.url)("buffer");const _u=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return Hu.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw _u}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const r=this._readable.read(e);if(r){this._position+=r.length;return this.toUint8Array(r)}else{return new Promise(((r,n)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();n()};const abortHandler=()=>{cleanUp();n(_u)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends fe.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const n=t.description;if(typeof n!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:n})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return Dt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var zu;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(zu||(zu={}));var qu;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(qu||(qu={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=Gn}}var Vu;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(Vu||(Vu={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:r,_response:{...e._response,parsedBody:{pageRange:t,clearRange:r}}}}const Gu=esm_createClientLogger("core-lro");const Yu=2e3;const Ju=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:n}=e;return e=>{if(n(e)){r.setError(t,e);r.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let r=e;if(r.slice(-1)!=="."){r=r+"."}return r+" "+t}function simplifyError(e){let t=e.message;let r=e.code;let n=e;while(n.innererror){n=n.innererror;r=n.code;t=appendReadableErrorMessage(t,n.message)}return{code:r,message:t}}function processOperationStatus(e){const{state:t,stateProxy:r,status:n,isDone:s,processResult:i,getError:o,response:a,setErrorAsResult:c}=e;switch(n){case"succeeded":{r.setSucceeded(t);break}case"failed":{const e=o===null||o===void 0?void 0:o(a);let n="";if(e){const{code:t,message:r}=simplifyError(e);n=`. ${t}. ${r}`}const s=`The long-running operation has failed${n}`;r.setError(t,new Error(s));r.setFailed(t);Gu.warning(s);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(a,t))||s===undefined&&["succeeded","canceled"].concat(c?[]:["failed"]).includes(n)){r.setResult(t,buildResult({response:a,state:t,processResult:i}))}}function buildResult(e){const{processResult:t,response:r,state:n}=e;return t?t(r,n):r}async function operation_initOperation(e){const{init:t,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:i,setErrorAsResult:o}=e;const{operationLocation:a,resourceLocation:c,metadata:l,response:A}=await t();if(a)i===null||i===void 0?void 0:i(a,false);const u={metadata:l,operationLocation:a,resourceLocation:c};Gu.verbose(`LRO: Operation description:`,u);const d=r.initState(u);const p=s({response:A,state:d,operationLocation:a});processOperationStatus({state:d,status:p,stateProxy:r,response:A,setErrorAsResult:o,processResult:n});return d}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:n,operationLocation:s,getOperationStatus:i,getResourceLocation:o,isOperationError:a,options:c}=e;const l=await t(s,c).catch(setStateError({state:r,stateProxy:n,isOperationError:a}));const A=i(l,r);Gu.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${A}\n\tPolling status: ${Ju.includes(A)?"Stopped":"Running"}`);if(A==="succeeded"){const e=o(l,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:n,isOperationError:a})),status:A}}}return{response:l,status:A}}async function operation_pollOperation(e){const{poll:t,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:A,processResult:u,getError:d,updateState:p,setDelay:m,isDone:h,setErrorAsResult:g}=e;const{operationLocation:f}=r.config;if(f!==undefined){const{response:e,status:y}=await pollOperationHelper({poll:t,getOperationStatus:i,state:r,stateProxy:n,operationLocation:f,getResourceLocation:o,isOperationError:c,options:s});processOperationStatus({status:y,response:e,state:r,stateProxy:n,isDone:h,processResult:u,getError:d,setErrorAsResult:g});if(!Ju.includes(y)){const t=A===null||A===void 0?void 0:A(e);if(t)m(t);const n=a===null||a===void 0?void 0:a(e,r);if(n!==undefined){const e=f!==n;r.config.operationLocation=n;l===null||l===void 0?void 0:l(n,e)}else l===null||l===void 0?void 0:l(f,false)}p===null||p===void 0?void 0:p(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=e;switch(n){case"PUT":{return s}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:s}default:{return getDefault()}}function getDefault(){switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return s}case"location":default:{return r}}}}function operation_inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:n,resourceLocationConfig:s}=e;const i=getOperationLocationHeader(t);const o=getAzureAsyncOperationHeader(t);const a=getOperationLocationPollingUrl({operationLocation:i,azureAsyncOperation:o});const c=getLocationHeader(t);const l=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(a!==undefined){return{mode:"OperationLocation",operationLocation:a,resourceLocation:findResourceLocation({requestMethod:l,location:c,requestPath:n,resourceLocationConfig:s})}}else if(c!==undefined){return{mode:"ResourceLocation",operationLocation:c}}else if(l==="PUT"&&n){return{mode:"Body",operationLocation:n}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(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:{Gu.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:n,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const i=(r=n===null||n===void 0?void 0:n.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:i,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){Gu.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){Gu.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:n?({flatResponse:e},t)=>n(e,t):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:i})}function operation_getOperationLocation({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}function accessBodyProperty({flatResponse:e,rawResponse:t},r){var n,s;return(n=e===null||e===void 0?void 0:e[r])!==null&&n!==void 0?n:(s=t.body)===null||s===void 0?void 0:s[r]}function operation_getResourceLocation(e,t){const r=accessBodyProperty(e,"resourceLocation");if(r&&typeof r==="string"){t.config.resourceLocation=r}return t.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:n,processResult:s,updateState:i,setDelay:o,state:a,setErrorAsResult:c}=e;return operation_pollOperation({state:a,stateProxy:r,setDelay:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:i,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:n,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:c})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:i,getPollingInterval:o,getError:a,resolveOnUnsuccessful:c}=e;return async({init:e,poll:l},A)=>{const{processResult:u,updateState:d,withOperationLocation:p,intervalInMs:m=POLL_INTERVAL_IN_MS,restoreFrom:h}=A||{};const g=createStateProxy();const f=p?(()=>{let e=false;return(t,r)=>{if(r)p(t);else if(!e)p(t);e=true}})():undefined;const y=h?deserializeState(h):await initOperation({init:e,stateProxy:g,processResult:u,getOperationStatus:r,withOperationLocation:f,setErrorAsResult:!c});let C;const E=new AbortController;const B=new Map;const handleProgressEvents=async()=>B.forEach((e=>e(y)));const I="Operation was canceled";let Q=m;const b={getOperationState:()=>y,getResult:()=>y.result,isDone:()=>["succeeded","failed","canceled"].includes(y.status),isStopped:()=>C===undefined,stopPolling:()=>{E.abort()},toString:()=>JSON.stringify({state:y}),onProgress:e=>{const t=Symbol();B.set(t,e);return()=>B.delete(t)},pollUntilDone:e=>C!==null&&C!==void 0?C:C=(async()=>{const{abortSignal:t}=e||{};function abortListener(){E.abort()}const r=E.signal;if(t===null||t===void 0?void 0:t.aborted){E.abort()}else if(!r.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!b.isDone()){await b.poll({abortSignal:r});while(!b.isDone()){await delay(Q,{abortSignal:r});await b.poll({abortSignal:r})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(c){return b.getResult()}else{switch(y.status){case"succeeded":return b.getResult();case"canceled":throw new Error(I);case"failed":throw y.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{C=undefined})),async poll(e){if(c){if(b.isDone())return}else{switch(y.status){case"succeeded":return;case"canceled":throw new Error(I);case"failed":throw y.error}}await pollOperation({poll:l,state:y,stateProxy:g,getOperationLocation:t,isOperationError:s,withOperationLocation:f,getPollingInterval:o,getOperationStatus:n,getResourceLocation:i,processResult:u,getError:a,updateState:d,options:e,setDelay:e=>{Q=e},setErrorAsResult:!c});await handleProgressEvents();if(!c){switch(y.status){case"canceled":throw new Error(I);case"failed":throw y.error}}}};return b}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:i,updateState:o,withOperationLocation:a,resolveOnUnsuccessful:c=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:c})({init:async()=>{const t=await e.sendInitialRequest();const n=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:n,withOperationLocation:a,restoreFrom:i,updateState:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,n,s,i,o){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=n;this.processResult=s;this.updateState=i;this.isDone=o}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const n=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:n?(e,{rawResponse:t})=>n(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){Gu.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=Yu,resumeFrom:n,resolveOnUnsuccessful:s=false,isDone:i,lroResourceLocationConfig:o,processResult:a,updateState:c}=t||{};const l=n?operation_deserializeState(n):{};const A=new GenericPollOperation(l,e,!s,o,a,c,i);super(A);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};A.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:r,intervalInMs:n=15e3,onProgress:s,resumeFrom:i,startCopyFromURLOptions:o}=e;let a;if(i){a=JSON.parse(i).state}const c=makeBlobBeginCopyFromURLPollOperation({...a,blobClient:t,copySource:r,startCopyFromURLOptions:o});super(c);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=n}delay(){return delay_delay(this.intervalInMs)}}const Wu=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const $u=async function update(e={}){const t=this.state;const{blobClient:r,copySource:n,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(n,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:n,copyProgress:s}=r;const i=t.copyProgress;if(s){t.copyProgress=s}if(n==="pending"&&s!==i&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(n==="success"){t.result=r;t.isCompleted=true}else if(n==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const ju=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:Wu,toString:ju,update:$u}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Ku;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Ku||(Ku={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Ku.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new en.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Ku.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const c=setTimeout((()=>a(new Error(`The operation cannot be completed in timeout.`))),Tn);e.on("readable",(()=>{if(i>=o){clearTimeout(c);n();return}let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,s)}const l=i+a.length>o?o-i:a.length;t.fill(a.slice(0,l),r+i,r+i+l);i+=l}));e.on("end",(()=>{clearTimeout(c);if(i{clearTimeout(c);a(e)}))}))}async function streamToBuffer2(e,t,r){let n=0;const s=t.length;return new Promise(((i,o)=>{e.on("readable",(()=>{let i=e.read();if(!i){return}if(typeof i==="string"){i=Buffer.from(i,r)}if(n+i.length>s){o(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(i,n,n+i.length);n+=i.length}));e.on("end",(()=>{i(n)}));e.on("error",o)}))}async function streamToBuffer3(e,t){return new Promise(((r,n)=>{const s=[];e.on("data",(e=>{s.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{r(Buffer.concat(s))}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,n)=>{const s=Xu.createWriteStream(t);e.on("error",(e=>{n(e)}));s.on("error",(e=>{n(e)}));s.on("close",r);e.pipe(s)}))}const Zu=$.promisify(Xu.stat);const ed=Xu.createReadStream;class Clients_BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,r,n){n=n||{};let s;let i;if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Mn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Mn.Parameters.VERSIONID)}withSnapshot(e){return new Clients_BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new Clients_BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-download",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onDownloadProgress:Dt?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)};if(!Dt){return i}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=kn}if(s.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!s.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(i,(async t=>{const n={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||s.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:r.conditions?.tagConditions},range:rangeToString({count:e+s.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download({abortSignal:r.abortSignal,...n})).readableStreamBody}),e,s.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}))}async exists(e={}){return ku.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===$n||e.details.errorCode===jn)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-getProperties",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...r,_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return ku.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ku.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return ku.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-setHTTPHeaders",t,(async r=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async setTags(e,t={}){return ku.withSpan("BlobClient-setTags",t,(async r=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return ku.withSpan("BlobClient-getTags",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={...r,_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}};return n}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const n=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await n.poll();return n}async abortCopyFromURL(e,t={}){return ku.withSpan("BlobClient-abortCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return ku.withSpan("BlobClient-syncCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async setAccessTier(e,t={}){return ku.withSpan("BlobClient-setAccessTier",t,(async r=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:r.tracingOptions}))))}async downloadToBuffer(e,t,r,n={}){let s;let i=0;let o=0;let a=n;if(e instanceof Buffer){s=e;i=t||0;o=typeof r==="number"?r:0}else{i=typeof e==="number"?e:0;o=typeof t==="number"?t:0;a=r||{}}let c=a.blockSize??0;if(c<0){throw new RangeError("blockSize option must be >= 0")}if(c===0){c=Dn}if(i<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!a.conditions){a.conditions={}}return ku.withSpan("BlobClient-downloadToBuffer",a,(async e=>{if(!o){const t=await this.getProperties({...a,tracingOptions:e.tracingOptions});o=t.contentLength-i;if(o<0){throw new RangeError(`offset ${i} shouldn't be larger than blob size ${t.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(s.length{let r=i+o;if(n+c{const i=await this.download(t,r,{...n,tracingOptions:s.tracingOptions});if(i.readableStreamBody){await readStreamToLocalFile(i.readableStreamBody,e)}i.blobDownloadStream=undefined;return i}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const r=new URL(this.url);if(r.host.split(".")[1]==="blob"){const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}else if(utils_common_isIpEndpointStyle(r)){const n=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=n[2];t=n[4]}else{const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return ku.withSpan("BlobClient-startCopyFromURL",t,(async r=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:r.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ku.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return ku.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return ku.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ku.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends Clients_BlobClient{appendBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:On};return ku.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const r=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...r,_response:r._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return ku.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-appendBlock",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async appendBlockFromURL(e,t,r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-appendBlockFromURL",n,(async s=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:n.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:n.sourceContentMD5,sourceContentCrc64:n.sourceContentCrc64,leaseAccessConditions:n.conditions,appendPositionAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}}class BlockBlobClient extends Clients_BlobClient{_blobContext;blockBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!Dt){throw new Error("This operation currently is only supported in Node.js.")}return ku.withSpan("BlockBlobClient-query",t,(async r=>{const n=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:r.tracingOptions}));return new BlobQueryResponse(n,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-upload",r,(async n=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-syncUploadFromURL",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async stageBlock(e,t,r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-stageBlock",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,r,t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async stageBlockFromURL(e,t,r=0,n,s={}){ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-stageBlockFromURL",s,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!n?undefined:rangeToString({offset:r,count:n}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-commitBlockList",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async getBlockList(e,t={}){return ku.withSpan("BlockBlobClient-getBlockList",t,(async r=>{const n=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));if(!n.committedBlocks){n.committedBlocks=[]}if(!n.uncommittedBlocks){n.uncommittedBlocks=[]}return n}))}async uploadData(e,t={}){return ku.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(Dt){let r;if(e instanceof Buffer){r=e}else if(e instanceof ArrayBuffer){r=Buffer.from(e)}else{e=e;r=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.byteLength,t)}else{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}}))}async uploadBrowserData(e,t={}){return ku.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}))}async uploadSeekableInternal(e,t,r={}){let n=r.blockSize??0;if(n<0||n>Rn){throw new RangeError(`blockSize option must be >= 0 and <= ${Rn}`)}const s=r.maxSingleShotSize??Nn;if(s<0||s>Nn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Nn}`)}if(n===0){if(t>Rn*xn){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>s){n=Math.ceil(t/xn);if(n{if(t<=s){return utils_common_assertResponse(await this.upload(e(0,t),t,i))}const o=Math.floor((t-1)/n)+1;if(o>xn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${xn}`)}const a=[];const c=esm_randomUUID();let l=0;const A=new Batch(r.concurrency);for(let s=0;s{const A=utils_common_generateBlockID(c,s);const u=n*s;const d=s===o-1?t:u+n;const p=d-u;a.push(A);await this.stageBlock(A,e(u,p),p,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions});l+=p;if(r.onProgress){r.onProgress({loadedBytes:l})}}))}await A.do();return this.commitBlockList(a,i)}))}async uploadFile(e,t={}){return ku.withSpan("BlockBlobClient-uploadFile",t,(async r=>{const n=(await Zu(e)).size;return this.uploadSeekableInternal(((t,r)=>()=>ed(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),n,{...t,tracingOptions:r.tracingOptions})}))}async uploadStream(e,t=vn,r=5,n={}){if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return ku.withSpan("BlockBlobClient-uploadStream",n,(async s=>{let i=0;const o=esm_randomUUID();let a=0;const c=[];const l=new BufferScheduler(e,t,r,(async(e,t)=>{const r=utils_common_generateBlockID(o,i);c.push(r);i++;await this.stageBlock(r,e,t,{customerProvidedKey:n.customerProvidedKey,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions});a+=t;if(n.onProgress){n.onProgress({loadedBytes:a})}}),Math.ceil(r/4*3));await l.do();return utils_common_assertResponse(await this.commitBlockList(c,{...n,tracingOptions:s.tracingOptions}))}))}}class PageBlobClient extends Clients_BlobClient{pageBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-create",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async createIfNotExists(e,t={}){return ku.withSpan("PageBlobClient-createIfNotExists",t,(async r=>{try{const n={ifNoneMatch:On};const s=utils_common_assertResponse(await this.create(e,{...t,conditions:n,tracingOptions:r.tracingOptions}));return{succeeded:true,...s,_response:s._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-uploadPages",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(r,e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:n.conditions,transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async uploadPagesFromURL(e,t,r,n,s={}){s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-uploadPagesFromURL",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:n}),0,rangeToString({offset:r,count:n}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async clearPages(e=0,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-clearPages",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async getPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-getPageRanges",r,(async n=>{const s=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:n.tracingOptions}));return rangeResponseFromModel(s)}))}async listPageRangesSegment(e=0,t,r,n={}){return ku.withSpan("PageBlobClient-getPageRangesSegment",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,r,n={}){let s;if(!!r||r===undefined){do{s=await this.listPageRangesSegment(e,t,r,n);r=s.continuationToken;yield await s}while(r)}}async*listPageRangeItems(e=0,t,r={}){let n;for await(const s of this.listPageRangeItemSegments(e,t,n,r)){yield*ExtractPageRangeInfoItems(s)}}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const n=this.listPageRangeItems(e,t,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listPageRangeItemSegments(e,t,n.continuationToken,{maxPageSize:n.maxPageSize,...r})}}async getPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};return ku.withSpan("PageBlobClient-getPageRangesDiff",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesDiffSegment(e,t,r,n,s={}){return ku.withSpan("PageBlobClient-getPageRangesDiffSegment",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:s?.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,r,n,s){let i;if(!!n||n===undefined){do{i=await this.listPageRangesDiffSegment(e,t,r,n,s);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeDiffItems(e,t,r,n){let s;for await(const i of this.listPageRangeDiffItemSegments(e,t,r,s,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,{...n});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n})}}async getPageRangesDiffForManagedDisks(e,t,r,n={}){n.conditions=n.conditions||{};return ku.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevSnapshotUrl:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async resize(e,t={}){t.conditions=t.conditions||{};return ku.withSpan("PageBlobClient-resize",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async updateSequenceNumber(e,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-updateSequenceNumber",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async startCopyIncremental(e,t={}){return ku.withSpan("PageBlobClient-startCopyIncremental",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(zn);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const td=": ";const rd=" ";const nd=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${qn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Ln.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const n=new Array(r);let s=0;let i=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===sd.UNLOCKED){this.keys[e]=sd.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=sd.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===sd.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let n;let s;if(typeof e==="string"&&(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){n=e;s=t}else if(e instanceof Clients_BlobClient){n=e.url;s=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}return ku.withSpan("BatchDeleteRequest-addSubRequest",r,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:n,credential:s},(async()=>{await new Clients_BlobClient(n,this.batchRequest.createPipeline(s)).delete(e)}))}))}async setBlobAccessTier(e,t,r,n){let s;let i;let o;if(typeof e==="string"&&(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){s=e;i=t;o=r}else if(e instanceof Clients_BlobClient){s=e.url;i=e.credential;o=t;n=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return ku.withSpan("BatchSetTierRequest-addSubRequest",n,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:s,credential:i},(async()=>{await new Clients_BlobClient(s,this.batchRequest.createPipeline(i)).setAccessTier(o,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${qn}${Fn.CONTENT_TYPE}: application/http${qn}${Fn.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const r=new Pipeline([]);r._credential=e;r._corePipeline=t;return r}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${Fn.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${Vn}${qn}`].join(qn);for(const[t,r]of e.headers){this.body+=`${t}: ${r}${qn}`}this.body+=qn}preAddSubRequest(e){if(this.operationCount>=_n){throw new RangeError(`Cannot exceed ${_n} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${qn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let r="";for(const[t]of e.headers){if(utils_common_iEqual(t,Fn.X_MS_VERSION)){r=t}}if(r!==""){e.headers.delete(r)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(!t){n=newPipeline(new AnonymousCredential,r)}else{n=newPipeline(t,r)}const s=new StorageContextClient(e,getCoreClientOptions(n));const i=utils_common_getURLPath(e);if(i&&i!=="/"){this.serviceOrContainerContext=s.container}else{this.serviceOrContainerContext=s.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const n=new BlobBatch;for(const s of e){if(typeof s==="string"){await n.deleteBlob(s,t,r)}else{await n.deleteBlob(s,t)}}return this.submitBatch(n)}async setBlobsAccessTier(e,t,r,n){const s=new BlobBatch;for(const i of e){if(typeof i==="string"){await s.setBlobAccessTier(i,t,r,n)}else{await s.setBlobAccessTier(i,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return ku.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const r=e.getHttpRequestBody();const n=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(r),e.getMultiPartContentType(),r,{...t}));const s=new BatchResponseParser(n,e.getSubRequests());const i=await s.parseBatchResponse();const o={_response:n._response,contentType:n.contentType,errorCode:n.errorCode,requestId:n.requestId,clientRequestId:n.clientRequestId,version:n.version,subResponses:i.subResponses,subResponsesSucceededCount:i.subResponsesSucceededCount,subResponsesFailedCount:i.subResponsesFailedCount};return o}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,r){let n;let s;r=r||{};if(isPipelineLike(t)){s=e;n=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){s=e;n=newPipeline(t,r)}else if(!t&&typeof t!=="string"){s=e;n=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const i=t;const o=utils_common_extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);s=utils_common_appendToURLPath(o.url,encodeURIComponent(i));if(!r.proxyOptions){r.proxyOptions=proxyPolicy_getDefaultProxySettings(o.proxyUri)}n=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){s=utils_common_appendToURLPath(o.url,encodeURIComponent(i))+"?"+o.accountSas;n=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(s,n);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return ku.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return ku.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return ku.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new Clients_BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ku.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return ku.withSpan("ContainerClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const r=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={_response:r._response,blobPublicAccess:r.blobPublicAccess,date:r.date,etag:r.etag,errorCode:r.errorCode,lastModified:r.lastModified,requestId:r.requestId,clientRequestId:r.clientRequestId,signedIdentifiers:[],version:r.version};for(const e of r){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}n.signedIdentifiers.push({accessPolicy:t,id:e.id})}return n}))}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("ContainerClient-setAccessPolicy",r,(async n=>{const s=[];for(const e of t||[]){s.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:r.abortSignal,access:e,containerAcl:s,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,n={}){return ku.withSpan("ContainerClient-uploadBlockBlob",n,(async n=>{const s=this.getBlockBlobClient(e);const i=await s.upload(t,r,n);return{blockBlobClient:s,response:i}}))}async deleteBlob(e,t={}){return ku.withSpan("ContainerClient-deleteBlob",t,(async r=>{let n=this.getBlobClient(e);if(t.versionId){n=n.withVersion(t.versionId)}return n.delete(r)}))}async listBlobFlatSegment(e,t={}){return ku.withSpan("ContainerClient-listBlobFlatSegment",t,(async r=>{const n=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:r.tracingOptions}));const s={...n,_response:{...n._response,parsedBody:ConvertInternalResponseOfListBlobFlat(n._response.parsedBody)},segment:{...n.segment,blobItems:n.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return s}))}async listBlobHierarchySegment(e,t,r={}){return ku.withSpan("ContainerClient-listBlobHierarchySegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...r,tracingOptions:n.tracingOptions}));const i={...s,_response:{...s._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(s._response.parsedBody)},segment:{...s.segment,blobItems:s.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:s.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return i}))}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listBlobFlatSegment(e,t);e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async*listHierarchySegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.listBlobHierarchySegment(e,t,r);t=n.continuationToken;yield await n}while(t)}}async*listItemsByHierarchy(e,t={}){let r;for await(const n of this.listHierarchySegments(e,r,t)){const e=n.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const n={...t,...r.length>0?{include:r}:{}};const s=this.listItemsByHierarchy(e,n);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async findBlobsByTagsSegment(e,t,r={}){return ku.withSpan("ContainerClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async getAccountInfo(e={}){return ku.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const r=e.version?e.version:wn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const n=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const i=AccountSASResourceTypes.parse(e.resourceTypes).toString();let o;if(r>="2020-12-06"){o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const a=t.computeHMACSHA256(o);return{sasQueryParameters:new SASQueryParameters(r,a,n.toString(),s,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:o}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const r=utils_common_extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(r.proxyUri)}const n=newPipeline(e,t);return new BlobServiceClient(r.url,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){n=newPipeline(t,r)}else{n=newPipeline(new AnonymousCredential,r)}super(e,n);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return ku.withSpan("BlobServiceClient-createContainer",t,(async t=>{const r=this.getContainerClient(e);const n=await r.create(t);return{containerClient:r,containerCreateResponse:n}}))}async deleteContainer(e,t={}){return ku.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const r=this.getContainerClient(e);return r.delete(t)}))}async undeleteContainer(e,t,r={}){return ku.withSpan("BlobServiceClient-undeleteContainer",r,(async n=>{const s=this.getContainerClient(r.destinationContainerName||e);const i=s["storageClientContext"].container;const o=utils_common_assertResponse(await i.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:n.tracingOptions}));return{containerClient:s,containerUndeleteResponse:o}}))}async getProperties(e={}){return ku.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return ku.withSpan("BlobServiceClient-setProperties",t,(async r=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:r.tracingOptions}))))}async getStatistics(e={}){return ku.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ku.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return ku.withSpan("BlobServiceClient-listContainersSegment",t,(async r=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:r.tracingOptions}))))}async findBlobsByTagsSegment(e,t,r={}){return ku.withSpan("BlobServiceClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listContainersSegment(e,t);r.containerItems=r.containerItems||[];e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async getUserDelegationKey(e,t,r={}){return ku.withSpan("BlobServiceClient-getUserDelegationKey",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}));const i={signedObjectId:s.signedObjectId,signedTenantId:s.signedTenantId,signedStartsOn:new Date(s.signedStartsOn),signedExpiresOn:new Date(s.signedExpiresOn),signedService:s.signedService,signedVersion:s.signedVersion,value:s.value};const o={_response:s._response,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,date:s.date,errorCode:s.errorCode,...i};return o}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).toString();return utils_common_appendToURLQuery(this.url,s)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).stringToSign}}var id;(function(e){e["AES256"]="AES256"})(id||(id={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class errors_InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf 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(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore 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`;super(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var od=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);core.info(`Sent ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadUtils_uploadCacheArchiveSDK(e,t,r){return od(this,void 0,void 0,(function*(){var n;const s=new BlobClient(e);const i=s.getBlockBlobClient();const o=new UploadProgress((n=r===null||r===void 0?void 0:r.archiveSizeBytes)!==null&&n!==void 0?n:0);const a={blockSize:r===null||r===void 0?void 0:r.uploadChunkSize,concurrency:r===null||r===void 0?void 0:r.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer();core.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);const e=yield i.uploadFile(t,a);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){core.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{o.stopDisplayTimer()}}))}var ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function requestUtils_isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[G.Hv.BadGateway,G.Hv.ServiceUnavailable,G.Hv.GatewayTimeout];return t.includes(e)}function sleep(e){return ad(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r){return ad(this,arguments,void 0,(function*(e,t,r,n=P,s=M,o=undefined){let a="";let c=1;while(c<=n){let l=undefined;let A=undefined;let u=false;try{l=yield t()}catch(e){if(o){l=o(e)}u=true;a=e.message}if(l){A=r(l);if(!isServerErrorStatusCode(A)){return l}}if(A){u=isRetryableStatusCode(A);a=`Cache service responded with ${A}`}i.Yz(`${e} - Attempt ${c} of ${n} failed with error: ${a}`);if(!u){i.Yz(`${e} - Error is not retryable`);break}yield sleep(s);c++}throw Error(`${e} failed: ${a}`)}))}function requestUtils_retryTypedResponse(e,t){return ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.statusCode),r,n,(e=>{if(e instanceof G.Kg){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function requestUtils_retryHttpClientResponse(e,t){return ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.message.statusCode),r,n)}))}var cd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return cd(this,void 0,void 0,(function*(){const r=S.promisify(b.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;i.Yz(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);i.pq(`Received ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadCacheHttpClient(e,t){return cd(this,void 0,void 0,(function*(){const r=c.createWriteStream(t);const n=new G.Qq("actions/cache");const s=yield requestUtils_retryHttpClientResponse("downloadCache",(()=>cd(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(L,(()=>{s.message.destroy();i.Yz(`Aborting download, socket timed out after ${L} ms`)}));yield pipeResponseToStream(s,r);const o=s.message.headers["content-length"];if(o){const e=parseInt(o);const r=getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{i.Yz("Unable to validate download, no Content-Length header")}}))}function downloadCacheHttpClientConcurrent(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=yield c.promises.open(t,"w");const i=new G.Qq("actions/cache",undefined,{socketTimeout:r.timeoutInMs,keepAlive:true});try{const t=yield requestUtils_retryHttpClientResponse("downloadCacheMetadata",(()=>cd(this,void 0,void 0,(function*(){return yield i.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const a=parseInt(o);if(Number.isNaN(a)){throw new Error(`Could not interpret Content-Length: ${a}`)}const c=[];const l=4*1024*1024;for(let t=0;tcd(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(i,e,t,r)}))})}c.reverse();let A=0;let u=0;const d=new DownloadProgress(a);d.startDisplayTimer();const p=d.onProgress();const m=[];let h;const waitAndWrite=()=>cd(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(m));yield s.write(e.buffer,0,e.count,e.offset);A--;delete m[e.offset];u+=e.count;p({loadedBytes:u})}));while(h=c.pop()){m[h.offset]=h.promiseGetter();A++;if(A>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)){yield waitAndWrite()}}while(A>0){yield waitAndWrite()}}finally{i.dispose();yield s.close()}}))}function downloadSegmentRetry(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=5;let i=0;while(true){try{const s=3e4;const i=yield promiseWithTimeout(s,downloadSegment(e,t,r,n));if(typeof i==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return i}catch(e){if(i>=s){throw e}i++}}}))}function downloadSegment(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=yield requestUtils_retryHttpClientResponse("downloadCachePart",(()=>cd(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${r}-${r+n-1}`})}))));if(!s.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:r,count:n,buffer:yield s.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const o=yield s.getProperties();const a=(n=o.contentLength)!==null&&n!==void 0?n:-1;if(a<0){i.Yz("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,Hu.constants.MAX_LENGTH);const n=new DownloadProgress(a);const i=c.openSync(t,"w");try{n.startDisplayTimer();const t=new AbortController;const o=t.signal;while(!n.isDone()){const l=n.segmentOffset+n.segmentSize;const A=Math.min(e,a-l);n.nextSegment(A);const u=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(l,A,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:n.onProgress()}));if(u==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(u)){c.writeFileSync(i,u)}}}finally{n.stopDisplayTimer();c.closeSync(i)}}}))}const promiseWithTimeout=(e,t)=>cd(void 0,void 0,void 0,(function*(){let r;const n=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,n]).then((e=>{clearTimeout(r);return e}))}));function options_getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;core.debug(`Use Azure SDK: ${t.useAzureSdk}`);core.debug(`Upload concurrency: ${t.uploadConcurrency}`);core.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}i.Yz(`Use Azure SDK: ${t.useAzureSdk}`);i.Yz(`Download concurrency: ${t.downloadConcurrency}`);i.Yz(`Request timeout (ms): ${t.timeoutInMs}`);i.Yz(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);i.Yz(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);i.Yz(`Lookup only: ${t.lookupOnly}`);return t}function config_isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const r=t==="GITHUB.COM";const n=t.endsWith(".GHE.COM");const s=t.endsWith(".LOCALHOST");return!r&&!n&&!s}function config_getCacheServiceVersion(){if(config_isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=config_getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var ld=n(8658);function user_agent_getUserAgentString(){return`@actions/cache-${ld.version}`}var Ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;i.Yz(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new Y.tZ(e);return new G.Qq(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const o=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const a=yield requestUtils_retryTypedResponse("getCacheEntry",(()=>Ad(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(o))}))));if(a.statusCode===204){if(i._o()){yield printCachesListForDiagnostics(e[0],n,s)}return null}if(!requestUtils_isSuccessStatusCode(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode}`)}const c=a.result;const l=c===null||c===void 0?void 0:c.archiveLocation;if(!l){throw new Error("Cache not found.")}i.Pq(l);i.Yz(`Cache Result:`);i.Yz(JSON.stringify(c));return c}))}function printCachesListForDiagnostics(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=`caches?key=${encodeURIComponent(e)}`;const s=yield requestUtils_retryTypedResponse("listCache",(()=>Ad(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(n))}))));if(s.statusCode===200){const t=s.result;const n=t===null||t===void 0?void 0:t.totalCount;if(n&&n>0){i.Yz(`No matching cache found for cache key '${e}', version '${r} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){i.Yz(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=new J.URL(e);const s=getDownloadOptions(r);if(n.hostname.endsWith(".blob.core.windows.net")){if(s.useAzureSdk){yield downloadCacheStorageSDK(e,t,s)}else if(s.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,s)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=createHttpClient();const s=utils.getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield retryTypedResponse("reserveCache",(()=>Ad(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),i)}))));return o}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,n,s){return Ad(this,void 0,void 0,(function*(){core.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${getContentRange(n,s)}`);const i={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,s)};const o=yield retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${s})`,(()=>Ad(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),i)}))));if(!isSuccessStatusCode(o.message.statusCode)){throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,n){return Ad(this,void 0,void 0,(function*(){const s=utils.getArchiveFileSizeInBytes(r);const i=getCacheApiUrl(`caches/${t.toString()}`);const o=fs.openSync(r,"r");const a=getUploadOptions(n);const c=utils.assertDefined("uploadConcurrency",a.uploadConcurrency);const l=utils.assertDefined("uploadChunkSize",a.uploadChunkSize);const A=[...new Array(c).keys()];core.debug("Awaiting all uploads");let u=0;try{yield Promise.all(A.map((()=>Ad(this,void 0,void 0,(function*(){while(ufs.createReadStream(r,{fd:o,start:n,end:a,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),n,a)}})))))}finally{fs.closeSync(o)}return}))}function commitCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n={size:r};return yield retryTypedResponse("commitCache",(()=>Ad(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,r,n){return Ad(this,void 0,void 0,(function*(){const s=getUploadOptions(n);if(s.useAzureSdk){if(!r){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(r,t,n)}else{const r=createHttpClient();core.debug("Upload cache");yield uploadFile(r,e,t,n);core.debug("Commiting cache");const s=utils.getArchiveFileSizeInBytes(t);core.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const i=yield commitCache(r,e,s);if(!isSuccessStatusCode(i.statusCode)){throw new Error(`Cache service responded with ${i.statusCode} during commit cache.`)}core.info("Cache saved successfully")}}))}var ud=n(4420);var dd=n(8886);class CacheScope$Type extends dd.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){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.pospd}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=fd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return r.then((e=>yd.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=Cd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return r.then((e=>Ed.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return r.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return r.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return r.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const r=t.searchParams.get("sig");if(r){(0,i.Pq)(r);(0,i.Pq)(encodeURIComponent(r))}}catch(t){(0,i.Yz)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.Yz)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Id=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,r,n){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const s=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(r){this.baseRetryIntervalMilliseconds=r}if(n){this.retryMultiplier=n}this.httpClient=new G.Qq(e,[new Y.tZ(s)])}request(e,t,r,n){return Id(this,void 0,void 0,(function*(){const s=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.Yz)(`[Request] ${t} ${s}`);const o={"Content-Type":r};try{const{body:e}=yield this.retryableRequest((()=>Id(this,void 0,void 0,(function*(){return this.httpClient.post(s,JSON.stringify(n),o)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Id(this,void 0,void 0,(function*(){let t=0;let r="";let n="";while(t0){(0,i.$e)(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${r}`)}}catch(e){if(e instanceof SyntaxError){(0,i.Yz)(`Raw Body: ${n}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}s=true;r=e.message}if(!s){throw new Error(`Received non-retryable error: ${r}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${r}`)}const o=this.getExponentialRetryTimeMilliseconds(t);(0,i.pq)(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${r}. Retrying request in ${o} ms...`);yield this.sleep(o);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[G.Hv.BadGateway,G.Hv.GatewayTimeout,G.Hv.InternalServerError,G.Hv.ServiceUnavailable];return t.includes(e)}sleep(e){return Id(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const r=t*this.retryMultiplier;return Math.trunc(Math.random()*(r-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var Qd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const bd=process.platform==="win32";function getTarPath(){return Qd(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=U;if(e){return{path:e,type:T.GNU}}else if((0,c.existsSync)(t)){return{path:t,type:T.BSD}}break}case"darwin":{const e=yield x.K7("gtar",false);if(e){return{path:e,type:T.GNU}}else{return{path:yield x.K7("tar",true),type:T.BSD}}}default:break}return{path:yield x.K7("tar",true),type:T.GNU}}))}function getTarArgs(e,t,r){return Qd(this,arguments,void 0,(function*(e,t,r,n=""){const s=[`"${e.path}"`];const i=getCacheFileName(t);const a="cache.tar";const c=getWorkingDirectory();const l=e.type===T.BSD&&t!==k.Gzip&&bd;switch(r){case"create":s.push("--posix","-cf",l?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--exclude",l?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",c.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--files-from",H);break;case"extract":s.push("-xf",l?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",c.replace(new RegExp(`\\${o.sep}`,"g"),"/"));break;case"list":s.push("-tf",l?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P");break}if(e.type===T.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t){return Qd(this,arguments,void 0,(function*(e,t,r=""){let n;const s=yield getTarPath();const i=yield getTarArgs(s,e,t,r);const o=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const a=s.type===T.BSD&&e!==k.Gzip&&bd;if(a&&t!=="create"){n=[[...o].join(" "),[...i].join(" ")]}else{n=[[...i].join(" "),[...o].join(" ")]}if(a){return n}return[n.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return Qd(this,void 0,void 0,(function*(){const n=e.type===T.BSD&&t!==k.Gzip&&bd;switch(t){case k.Zstd:return n?["zstd -d --long=30 --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",bd?'"zstd -d --long=30"':"unzstd --long=30"];case k.ZstdWithoutLong:return n?["zstd -d --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",bd?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return Qd(this,void 0,void 0,(function*(){const r=getCacheFileName(t);const n=e.type===T.BSD&&t!==k.Gzip&&bd;switch(t){case k.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",bd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case k.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",bd?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return Qd(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,a.m)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function tar_listTar(e,t){return Qd(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}function extractTar(e,t){return Qd(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield x.U$(r);const n=yield getCommands(t,"extract",e);yield execCommands(n)}))}function tar_createTar(e,t,r){return Qd(this,void 0,void 0,(function*(){writeFileSync(path.join(e,ManifestFilename),t.join("\n"));const n=yield getCommands(r,"create");yield execCommands(n,e)}))}var Sd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=config_getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){const o=config_getCacheServiceVersion();i.Yz(`Cache service version: ${o}`);checkPaths(e);switch(o){case"v2":return yield restoreCacheV2(e,t,r,n,s);case"v1":default:return yield restoreCacheV1(e,t,r,n,s)}}))}function restoreCacheV1(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){r=r||[];const a=[t,...r];i.Yz("Resolved Keys:");i.Yz(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}const c=yield getCompressionMethod();let l="";try{const t=yield getCacheEntry(a,e,{compressionMethod:c,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(n===null||n===void 0?void 0:n.lookupOnly){i.pq("Lookup only - skipping download");return t.cacheKey}l=o.join(yield createTempDirectory(),getCacheFileName(c));i.Yz(`Archive Path: ${l}`);yield downloadCache(t.archiveLocation,l,n);if(i._o()){yield tar_listTar(l,c)}const r=getArchiveFileSizeInBytes(l);i.pq(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield extractTar(l,c);i.pq("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof G.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to restore: ${e.message}`)}else{i.$e(`Failed to restore: ${e.message}`)}}}finally{try{yield unlinkFile(l)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){n=Object.assign(Object.assign({},n),{useAzureSdk:true});r=r||[];const a=[t,...r];i.Yz("Resolved Keys:");i.Yz(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}let c="";try{const l=internalCacheTwirpClient();const A=yield getCompressionMethod();const u={key:t,restoreKeys:r,version:getCacheVersion(e,A,s)};const d=yield l.GetCacheEntryDownloadURL(u);if(!d.ok){i.Yz(`Cache not found for version ${u.version} of keys: ${a.join(", ")}`);return undefined}const p=u.key!==d.matchedKey;if(p){i.pq(`Cache hit for restore-key: ${d.matchedKey}`)}else{i.pq(`Cache hit for: ${d.matchedKey}`)}if(n===null||n===void 0?void 0:n.lookupOnly){i.pq("Lookup only - skipping download");return d.matchedKey}c=o.join(yield createTempDirectory(),getCacheFileName(A));i.Yz(`Archive path: ${c}`);i.Yz(`Starting download of archive to: ${c}`);yield downloadCache(d.signedDownloadUrl,c,n);const m=getArchiveFileSizeInBytes(c);i.pq(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`);if(i._o()){yield tar_listTar(c,A)}yield extractTar(c,A);i.pq("Cache restored successfully");return d.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof G.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to restore: ${e.message}`)}else{i.$e(`Failed to restore: ${e.message}`)}}}finally{try{if(c){yield unlinkFile(c)}}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){const s=getCacheServiceVersion();core.debug(`Cache service version: ${s}`);checkPaths(e);checkKey(t);switch(s){case"v2":return yield saveCacheV2(e,t,r,n);case"v1":default:return yield saveCacheV1(e,t,r,n)}}))}function saveCacheV1(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){var s,i,o,a,c;const l=yield utils.getCompressionMethod();let A=-1;const u=yield utils.resolvePaths(e);core.debug("Cache Paths:");core.debug(`${JSON.stringify(u)}`);if(u.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.`)}const d=yield utils.createTempDirectory();const p=path.join(d,utils.getCacheFileName(l));core.debug(`Archive Path: ${p}`);try{yield createTar(d,u,l);if(core.isDebug()){yield listTar(p,l)}const m=10*1024*1024*1024;const h=utils.getArchiveFileSizeInBytes(p);core.debug(`File Size: ${h}`);if(h>m&&!isGhes()){throw new Error(`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the 10GB limit, not saving cache.`)}core.debug("Reserving Cache");const g=yield cacheHttpClient.reserveCache(t,e,{compressionMethod:l,enableCrossOsArchive:n,cacheSize:h});if((s=g===null||g===void 0?void 0:g.result)===null||s===void 0?void 0:s.cacheId){A=(i=g===null||g===void 0?void 0:g.result)===null||i===void 0?void 0:i.cacheId}else if((g===null||g===void 0?void 0:g.statusCode)===400){throw new Error((a=(o=g===null||g===void 0?void 0:g.error)===null||o===void 0?void 0:o.message)!==null&&a!==void 0?a:`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(c=g===null||g===void 0?void 0:g.error)===null||c===void 0?void 0:c.message}`)}core.debug(`Saving Cache (ID: ${A})`);yield cacheHttpClient.saveCache(A,p,"",r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){core.info(`Failed to save: ${t.message}`)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to save: ${t.message}`)}else{core.warning(`Failed to save: ${t.message}`)}}}finally{try{yield utils.unlinkFile(p)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return A}))}function saveCacheV2(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){r=Object.assign(Object.assign({},r),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const s=yield utils.getCompressionMethod();const i=cacheTwirpClient.internalCacheTwirpClient();let o=-1;const a=yield utils.resolvePaths(e);core.debug("Cache Paths:");core.debug(`${JSON.stringify(a)}`);if(a.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const c=yield utils.createTempDirectory();const l=path.join(c,utils.getCacheFileName(s));core.debug(`Archive Path: ${l}`);try{yield createTar(c,a,s);if(core.isDebug()){yield listTar(l,s)}const A=utils.getArchiveFileSizeInBytes(l);core.debug(`File Size: ${A}`);r.archiveSizeBytes=A;core.debug("Reserving Cache");const u=utils.getCacheVersion(e,s,n);const d={key:t,version:u};let p;try{const e=yield i.CreateCacheEntry(d);if(!e.ok){if(e.message){core.warning(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}p=e.signedUploadUrl}catch(e){core.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}core.debug(`Attempting to upload cache located at: ${l}`);yield cacheHttpClient.saveCache(o,l,p,r);const m={key:t,version:u,sizeBytes:`${A}`};const h=yield i.FinalizeCacheEntryUpload(m);core.debug(`FinalizeCacheEntryUploadResponse: ${h.ok}`);if(!h.ok){if(h.message){throw new FinalizeCacheError(h.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}o=parseInt(h.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){core.info(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){core.warning(t.message)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to save: ${t.message}`)}else{core.warning(`Failed to save: ${t.message}`)}}}finally{try{yield utils.unlinkFile(l)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return o}))}},3838:(e,t,r)=>{r.d(t,{Yz:()=>core_debug,z3:()=>error,dN:()=>exportVariable,V4:()=>getInput,pq:()=>info,_o:()=>isDebug,LZ:()=>saveState,C1:()=>setFailed,uH:()=>setOutput,Pq:()=>core_setSecret,$e:()=>warning});var n=r(857);function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var i=r(6982);var o=r(9896);function file_command_issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${toCommandValue(t)}${n.EOL}`,{encoding:"utf8"})}function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${i.randomUUID()}`;const s=toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(s.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${n.EOL}${s}${n.EOL}${r}`}var a=r(6928);var c=r(4942);var l=r(2145);var A=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return A(this,void 0,void 0,(function*(){var t;const r=oidc_utils_OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return A(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}debug(`ID token url is ${t}`);const r=yield oidc_utils_OidcClient.getCall(t);setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var u=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{access:d,appendFile:p,writeFile:m}=o.promises;const h="GITHUB_STEP_SUMMARY";const g="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return u(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[h];if(!e){throw new Error(`Unable to find environment variable for $${h}. Check if your runtime environment supports job summaries.`)}try{yield d(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return u(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?m:p;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return u(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(i,r,o)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const i=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const f=new Summary;const y=null&&f;const C=null&&f;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var E=r(5260);var B=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const getWindowsInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>B(void 0,void 0,void 0,(function*(){var e,t,r,n;const{stdout:s}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=s.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(r=s.match(/ProductName:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,r]=e.trim().split("\n");return{name:t,version:r}}));const I=n.platform();const Q=n.arch();const b=I==="win32";const S=I==="darwin";const w=I==="linux";function getDetails(){return B(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield b?getWindowsInfo():S?getMacOsInfo():getLinuxInfo()),{platform:I,arch:Q,isWindows:b,isMacOS:S,isLinux:w})}))}var N=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var R;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(R||(R={}));function exportVariable(e,t){const r=toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return file_command_issueFileCommand("ENV",prepareKeyValueMessage(e,t))}command_issueCommand("set-env",{name:e},r)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return file_command_issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(n.EOL);command_issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=R.Failure;error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+n.EOL)}function startGroup(e){issue("group",e)}function endGroup(){issue("endgroup")}function group(e,t){return N(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return file_command_issueFileCommand("STATE",prepareKeyValueMessage(e,t))}command_issueCommand("save-state",{name:e},toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return N(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}},5260:(t,r,n)=>{n.d(r,{m:()=>exec});var s=n(3193);var i=n(857);var o=n(4434);var a=n(5317);var c=n(6928);var l=n(8701);var A=n(90);const u=e(import.meta.url)("timers");var d=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const p=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=t?"":"[command]";if(p){if(this._isCmdFile()){s+=r;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let n=t+e.toString();let s=n.indexOf(i.EOL);while(s>-1){const e=n.substring(0,s);r(e);n=n.substring(s+i.EOL.length);s=n.indexOf(i.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(p){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(p){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let s=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(s&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return d(this,void 0,void 0,(function*(){if(!A.Qh(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield l.K7(this.toolPath,true);return new Promise(((e,t)=>d(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield A.t2(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=a.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let c="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let r=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let i=0;i0){t.push(s);s=""}continue}append(o)}if(s.length>0){t.push(s.trim())}return t}class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,u.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var m=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function exec(e,t,r){return m(this,void 0,void 0,(function*(){const n=argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];t=n.slice(1).concat(t||[]);const i=new ToolRunner(s,t,r);return i.exec()}))}function getExecOutput(e,t,r){return m(this,void 0,void 0,(function*(){var n,s;let i="";let o="";const a=new StringDecoder("utf8");const c=new StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const A=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=c.write(e);if(A){A(e)}};const stdOutListener=e=>{i+=a.write(e);if(l){l(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));i+=a.end();o+=c.end();return{exitCode:d,stdout:i,stderr:o}}))}},2145:(e,t,r)=>{r.d(t,{tZ:()=>BearerCredentialHandler});var n=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},4942:(e,t,r)=>{r.d(t,{Qq:()=>HttpClient,Kg:()=>HttpClientError,Hv:()=>A});var n=r(8611);var s=r.t(n,2);var i=r(5692);var o=r.t(i,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var a=r(770);var c=r(6752);var l=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var A;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(A||(A={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u||(u={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(d={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const p=[A.MovedPermanently,A.ResourceMoved,A.SeeOther,A.TemporaryRedirect,A.PermanentRedirect];const m=[A.BadGateway,A.ServiceUnavailable,A.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const g=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((e=>l(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((e=>l(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return l(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return l(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return l(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return l(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e){return l(this,arguments,void 0,(function*(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let i=this._prepareRequest(e,s,n);const o=this._allowRetries&&h.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(i,r);if(c&&c.message&&c.message.statusCode===A.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,i,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&p.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const o=c.message.headers["location"];if(!o){break}const a=new URL(o);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,a,n);c=yield this.requestRaw(i,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;s.on("socket",(e=>{i=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i=n.parsedUrl.protocol==="https:";n.httpModule=i?o:s;const a=i?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){n=typeof e==="number"?e.toString():e}}const s=e[t];if(s!==undefined){return typeof s==="number"?s.toString():s}if(n!==undefined){return n}return r}_getExistingOrDefaultContentTypeHeader(e,t){let r;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[u.ContentType];if(e){if(typeof e==="number"){r=String(e)}else if(Array.isArray(e)){r=e.join(", ")}else{r=e}}}const n=e[u.ContentType];if(n!==undefined){if(typeof n==="number"){return String(n)}else if(Array.isArray(n)){return n.join(", ")}else{return n}}if(r!==undefined){return r}return t}_getAgent(e){let t;const r=getProxyUrl(e);const s=r&&r.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const o=e.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s=r.protocol==="https:";if(o){n=s?a.httpsOverHttps:a.httpsOverHttp}else{n=s?a.httpOverHttps:a.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=o?new i.Agent(e):new n.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new c.kT(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const r=process.env["ACTIONS_ORCHESTRATION_ID"];if(r){const e=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return l(this,void 0,void 0,(function*(){e=Math.min(g,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return l(this,void 0,void 0,(function*(){return new Promise(((r,n)=>l(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const i={statusCode:s,result:null,headers:{}};if(s===A.NotFound){r(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,dateTimeDeserializer)}else{o=JSON.parse(a)}i.result=o}i.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=i.result;n(t)}else{r(i)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},90:(e,t,r)=>{r.d(t,{$1:()=>c,Ck:()=>l,Cy:()=>u,H8:()=>y,Qh:()=>isRooted,YN:()=>g,dJ:()=>h,h_:()=>readlink,k6:()=>o,m3:()=>a,rm:()=>p,t2:()=>exists,vr:()=>tryGetExecutablePath,y1:()=>f});var n=r(9896);var s=r(6928);var i=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{chmod:o,copyFile:a,lstat:c,mkdir:l,open:A,readdir:u,rename:d,rm:p,rmdir:m,stat:h,symlink:g,unlink:f}=n.promises;const y=process.platform==="win32";function readlink(e){return i(this,void 0,void 0,(function*(){const t=yield n.promises.readlink(e);if(y&&!t.endsWith("\\")){return`${t}\\`}return t}))}const C=268435456;const E=n.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield h(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return i(this,arguments,void 0,(function*(e,t=false){const r=t?yield h(e):yield c(e);return r.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(y){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return i(this,void 0,void 0,(function*(){let r=undefined;try{r=yield h(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){const r=s.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const i of t){e=n+i;r=undefined;try{r=yield h(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){try{const t=s.dirname(e);const r=s.basename(e).toUpperCase();for(const n of yield u(t)){if(r===n.toUpperCase()){e=s.join(t,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(y){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}},8701:(e,t,r)=>{r.d(t,{K7:()=>which,U$:()=>mkdirP,Yz:()=>rmRF,cp:()=>cp});var n=r(2613);var s=r(6928);var i=r(90);var o=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function cp(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){const{force:n,recursive:o,copySourceDirectory:a}=readCopyOptions(r);const c=(yield i.t2(t))?yield i.dJ(t):null;if(c&&c.isFile()&&!n){return}const l=c&&c.isDirectory()&&a?s.join(t,s.basename(e)):t;if(!(yield i.t2(e))){throw new Error(`no such file or directory: ${e}`)}const A=yield i.dJ(e);if(A.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,l,0,n)}}else{if(s.relative(e,l)===""){throw new Error(`'${l}' and '${e}' are the same file`)}yield copyFile(e,l,n)}}))}function mv(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){if(yield ioUtil.exists(t)){let n=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));n=yield ioUtil.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return o(this,void 0,void 0,(function*(){if(i.H8){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield i.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return o(this,void 0,void 0,(function*(){(0,n.ok)(e,"a path argument must be provided");yield i.Ck(e,{recursive:true})}))}function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(i.H8){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(i.H8&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(s.delimiter)){if(e){t.push(e)}}}if(i.Qh(e)){const r=yield i.vr(e,t);if(r){return[r]}return[]}if(e.includes(s.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield i.vr(s.join(o,e),t);if(r){n.push(r)}}return n}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield i.Cy(e);for(const o of s){const s=`${e}/${o}`;const a=`${t}/${o}`;const c=yield i.$1(s);if(c.isDirectory()){yield cpDirRecursive(s,a,r,n)}else{yield copyFile(s,a,n)}}yield i.k6(t,(yield i.dJ(e)).mode)}))}function copyFile(e,t,r){return o(this,void 0,void 0,(function*(){if((yield i.$1(e)).isSymbolicLink()){try{yield i.$1(t);yield i.y1(t)}catch(e){if(e.code==="EPERM"){yield i.k6(t,"0666");yield i.y1(t)}}const r=yield i.h_(e);yield i.YN(r,t,i.H8?"junction":null)}else if(!(yield i.t2(t))||r){yield i.m3(e,t)}}))}},9805:(e,t,r)=>{r.d(t,{e8:()=>cacheDir,bq:()=>downloadTool,JE:()=>extractZip,I6:()=>find});var n=r(3838);var s=r(8701);var i=r(6982);var o=r(9896);var a=r(2088);var c=r(857);var l=r(5317);var A=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const u={readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(o.existsSync(e)){r=o.readFileSync(e).toString()}else if(o.existsSync(t)){r=o.readFileSync(t).toString()}return r}};function _findMatch(e,t,r,n){return A(this,void 0,void 0,(function*(){const s=os.platform();let i;let o;let a;for(const i of r){const r=i.version;debug(`check ${r} satisfies ${e}`);if(semver.satisfies(r,e)&&(!t||i.stable===t)){a=i.files.find((e=>{debug(`${e.arch}===${n} && ${e.platform}===${s}`);let t=e.arch===n&&e.platform===s;if(t&&e.platform_version){const r=_getOsVersion();if(r===e.platform_version){t=true}else{t=semver.satisfies(r,e.platform_version)}}return t}));if(a){debug(`matched ${i.version}`);o=i;break}}}if(o&&a){i=Object.assign({},o);i.files=[a]}return i}))}function _getOsVersion(){const e=os.platform();let t="";if(e==="darwin"){t=cp.execSync("sw_vers -productVersion").toString()}else if(e==="linux"){const e=u.readLinuxVersionFile();if(e){const r=e.split("\n");for(const e of r){const r=e.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){t=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return t}function _readLinuxVersionFile(){return u.readLinuxVersionFile()}var d=r(6928);var p=r(4942);var m=r(2203);var h=r(9023);var g=r(2613);var f=r(5260);var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return y(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}var C=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}const E=process.platform==="win32";const B=process.platform==="darwin";const I="actions/tool-cache";function downloadTool(e,t,r,o){return C(this,void 0,void 0,(function*(){t=t||d.join(_getTempDirectory(),i.randomUUID());yield s.U$(d.dirname(t));n.Yz(`Downloading ${e}`);n.Yz(`Destination ${t}`);const a=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const A=new RetryHelper(a,c,l);return yield A.execute((()=>C(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,o)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}function downloadToolAttempt(e,t,r,i){return C(this,void 0,void 0,(function*(){if(o.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const a=new p.Qq(I,[],{allowRetries:false});if(r){n.Yz("set auth");if(i===undefined){i={}}i.authorization=r}const c=yield a.get(e,i);if(c.message.statusCode!==200){const t=new HTTPError(c.message.statusCode);n.Yz(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw t}const l=h.promisify(m.pipeline);const A=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const u=A();let d=false;try{yield l(u,o.createWriteStream(t));n.Yz("download complete");d=true;return t}finally{if(!d){n.Yz("download failed");try{yield s.Yz(t)}catch(e){n.Yz(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return C(this,void 0,void 0,(function*(){ok(E,"extract7z() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=core.isDebug()?"-bb1":"-bb0";const n=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield exec(`"${r}"`,n,s)}finally{process.chdir(n)}}else{const r=path.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${s}' -Target '${i}'`;const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const c={silent:true};try{const e=yield io.which("powershell",true);yield exec(`"${e}"`,a,c)}finally{process.chdir(n)}}return t}))}function extractTar(e,t){return C(this,arguments,void 0,(function*(e,t,r="xz"){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);core.debug("Checking tar --version");let n="";yield exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});core.debug(n.trim());const s=n.toUpperCase().includes("GNU TAR");let i;if(r instanceof Array){i=r}else{i=[r]}if(core.isDebug()&&!r.includes("v")){i.push("-v")}let o=t;let a=e;if(E&&s){i.push("--force-local");o=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(s){i.push("--warning=no-unknown-keyword");i.push("--overwrite")}i.push("-C",o,"-f",a);yield exec(`tar`,i);return t}))}function extractXar(e,t){return C(this,arguments,void 0,(function*(e,t,r=[]){ok(B,"extractXar() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(core.isDebug()){n.push("-v")}const s=yield io.which("xar",true);yield exec(`"${s}"`,_unique(n));return t}))}function extractZip(e,t){return C(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(E){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}function extractZipWin(e,t){return C(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=yield s.K7("pwsh",false);if(o){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];n.Yz(`Using pwsh at path: ${o}`);yield(0,f.m)(`"${o}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const o=yield s.K7("powershell",true);n.Yz(`Using powershell at path: ${o}`);yield(0,f.m)(`"${o}"`,t)}}))}function extractZipNix(e,t){return C(this,void 0,void 0,(function*(){const r=yield s.K7("unzip",true);const i=[e];if(!n._o()){i.unshift("-q")}i.unshift("-o");yield(0,f.m)(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return C(this,void 0,void 0,(function*(){r=a.clean(r)||r;i=i||c.arch();n.Yz(`Caching tool ${t} ${r} ${i}`);n.Yz(`source dir: ${e}`);if(!o.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const l=yield _createToolPath(t,r,i);for(const t of o.readdirSync(e)){const r=d.join(e,t);yield s.cp(r,l,{recursive:true})}_completeToolPath(t,r,i);return l}))}function cacheFile(e,t,r,n,s){return C(this,void 0,void 0,(function*(){n=semver.clean(n)||n;s=s||os.arch();core.debug(`Caching tool ${r} ${n} ${s}`);core.debug(`source file: ${e}`);if(!fs.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const i=yield _createToolPath(r,n,s);const o=path.join(i,t);core.debug(`destination file ${o}`);yield io.cp(e,o);_completeToolPath(r,n,s);return i}))}function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||c.arch();if(!isExplicitVersion(t)){const n=findAllVersions(e,r);const s=evaluateVersions(n,t);t=s}let s="";if(t){t=a.clean(t)||"";const i=d.join(_getCacheDirectory(),e,t,r);n.Yz(`checking cache: ${i}`);if(o.existsSync(i)&&o.existsSync(`${i}.complete`)){n.Yz(`Found tool in cache ${e} ${t} ${r}`);s=i}else{n.Yz("not found")}}return s}function findAllVersions(e,t){const r=[];t=t||c.arch();const n=d.join(_getCacheDirectory(),e);if(o.existsSync(n)){const e=o.readdirSync(n);for(const s of e){if(isExplicitVersion(s)){const e=d.join(n,s,t||"");if(o.existsSync(e)&&o.existsSync(`${e}.complete`)){r.push(s)}}}}return r}function getManifestFromRepo(e,t,r){return C(this,arguments,void 0,(function*(e,t,r,n="master"){let s=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`;const o=new httpm.HttpClient("tool-cache");const a={};if(r){core.debug("set auth");a.authorization=r}const c=yield o.getJson(i,a);if(!c.result){return s}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let A=yield(yield o.get(l,a)).readBody();if(A){A=A.replace(/^\uFEFF/,"");try{s=JSON.parse(A)}catch(e){core.debug("Invalid json")}}return s}))}function findFromManifest(e,t,r){return C(this,arguments,void 0,(function*(e,t,r,n=os.arch()){const s=yield mm._findMatch(e,t,r,n);return s}))}function _createExtractFolder(e){return C(this,void 0,void 0,(function*(){if(!e){e=d.join(_getTempDirectory(),i.randomUUID())}yield s.U$(e);return e}))}function _createToolPath(e,t,r){return C(this,void 0,void 0,(function*(){const i=d.join(_getCacheDirectory(),e,a.clean(t)||t,r||"");n.Yz(`destination ${i}`);const o=`${i}.complete`;yield s.Yz(i);yield s.Yz(o);yield s.U$(i);return i}))}function _completeToolPath(e,t,r){const s=d.join(_getCacheDirectory(),e,a.clean(t)||t,r||"");const i=`${s}.complete`;o.writeFileSync(i,"");n.Yz("finished caching tool")}function isExplicitVersion(e){const t=a.clean(e)||"";n.Yz(`isExplicit: ${t}`);const r=a.valid(t)!=null;n.Yz(`explicit? ${r}`);return r}function evaluateVersions(e,t){let r="";n.Yz(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(a.gt(e,t)){return 1}return-1}));for(let n=e.length-1;n>=0;n--){const s=e[n];const i=a.satisfies(s,t);if(i){r=s;break}}if(r){n.Yz(`matched: ${r}`)}else{n.Yz("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,g.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,g.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.0","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.3"},"devDependencies":{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete r[e]}return s.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var s=[];s.d=0;n.then((e=>{i[t]=e;resolveQueue(s)}),(e=>{i[r]=e;resolveQueue(s)}));var i={};i[e]=e=>e(s);return i}}var o={};o[e]=e=>{};o[t]=n;return o}));__nccwpck_require__.a=(n,s,i)=>{var o;i&&((o=[]).d=-1);var a=new Set;var c=n.exports;var l;var A;var u;var d=new Promise(((e,t)=>{u=t;A=e}));d[t]=c;d[e]=e=>(o&&e(o),a.forEach(e),d["catch"]((e=>{})));n.exports=d;s((n=>{l=wrapDeps(n);var s;var getResult=()=>l.map((e=>{if(e[r])throw e[r];return e[t]}));var i=new Promise((t=>{s=()=>t(getResult);s.r=0;var fnQueue=e=>e!==o&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));l.map((t=>t[e](fnQueue)))}));return s.r?i:getResult()}),(e=>(e?u(d[r]=e):A(c),resolveQueue(o))));o&&o.d<0&&(o.d=0)}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(6492);n=await n; \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(8522);const{isValidClientWindowBits:i}=r(8625);const{MessageSizeExceededError:o}=r(8707);const a=Buffer.from([0,0,255,255]);const c=Symbol("kBuffer");const l=Symbol("kLength");const A=4*1024*1024;class PerMessageDeflate{#j;#p={};#S=false;#K=null;constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#S){r(new o);return}if(!this.#j){let e=s;if(this.#p.serverMaxWindowBits){if(!i(this.#p.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}try{this.#j=n({windowBits:e})}catch(e){r(e);return}this.#j[c]=[];this.#j[l]=0;this.#j.on("data",(e=>{if(this.#S){return}this.#j[l]+=e.length;if(this.#j[l]>A){this.#S=true;this.#j.removeAllListeners();this.#j.destroy();this.#j=null;if(this.#K){const e=this.#K;this.#K=null;e(new o)}return}this.#j[c].push(e)}));this.#j.on("error",(e=>{this.#j=null;r(e)}))}this.#K=r;this.#j.write(e);if(t){this.#j.write(a)}this.#j.flush((()=>{if(this.#S||!this.#j){return}const e=Buffer.concat(this.#j[c],this.#j[l]);this.#j[c].length=0;this.#j[l]=0;this.#K=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,r)=>{const{Writable:n}=r(7075);const s=r(4589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(736);const{kReadyState:A,kSentClose:u,kResponse:d,kReceivedClose:p}=r(1216);const{channels:m}=r(2414);const{isValidStatusCode:h,isValidOpcode:g,failWebsocketConnection:f,websocketMessageReceived:y,utf8Decode:C,isControlFrame:E,isTextBinaryFrame:B,isContinuationFrame:I}=r(8625);const{WebsocketFrameSend:Q}=r(3264);const{closeWebSocketConnection:b}=r(6897);const{PerMessageDeflate:S}=r(9469);class ByteParser extends n{#X=[];#Z=0;#ee=false;#E=i.INFO;#te={};#re=[];#ne;constructor(e,t){super();this.ws=e;this.#ne=t==null?new Map:t;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new S(t))}}_write(e,t,r){this.#X.push(e);this.#Z+=e.length;this.#ee=true;this.run(r)}run(e){while(this.#ee){if(this.#E===i.INFO){if(this.#Z<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const A=t[0]&32;const u=t[0]&16;if(!g(n)){f(this.ws,"Invalid opcode received");return e()}if(s){f(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#ne.has("permessage-deflate")){f(this.ws,"Expected RSV1 to be clear.");return}if(A!==0||u!==0){f(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!B(n)){f(this.ws,"Invalid frame type was fragmented.");return}if(B(n)&&this.#re.length>0){f(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&a){f(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&E(n)){f(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#re.length===0&&!this.#te.compressed){f(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#te.payloadLength=c;this.#E=i.READ_DATA}else if(c===126){this.#E=i.PAYLOADLENGTH_16}else if(c===127){this.#E=i.PAYLOADLENGTH_64}if(B(n)){this.#te.binaryType=n;this.#te.compressed=l!==0}this.#te.opcode=n;this.#te.masked=s;this.#te.fin=r;this.#te.fragmented=a}else if(this.#E===i.PAYLOADLENGTH_16){if(this.#Z<2){return e()}const t=this.consume(2);this.#te.payloadLength=t.readUInt16BE(0);this.#E=i.READ_DATA}else if(this.#E===i.PAYLOADLENGTH_64){if(this.#Z<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){f(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=n;this.#E=i.READ_DATA}else if(this.#E===i.READ_DATA){if(this.#Z{if(t){f(this.ws,t.message);return}this.#re.push(r);if(!this.#te.fin){this.#E=i.INFO;this.#ee=true;this.run(e);return}y(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#E=i.INFO;this.#re.length=0;this.run(e)}));this.#ee=false;break}}}}}consume(e){if(e>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#X[0].length===e){this.#Z-=this.#X[0].length;return this.#X.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#X[0];const{length:s}=n;if(s+r===e){t.set(this.#X.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#X[0]=n.subarray(e-r);break}else{t.set(this.#X.shift(),r);r+=n.length}}this.#Z-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!h(t)){return{code:1002,reason:"Invalid status code",error:true}}let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}try{r=C(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:r,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:r}=this.#te;if(t===o.CLOSE){if(r===1){f(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(e);if(this.#te.closeInfo.error){const{code:e,reason:t}=this.#te.closeInfo;b(this.ws,e,t,t.length);f(this.ws,t);return false}if(this.ws[u]!==l.SENT){let e=c;if(this.#te.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#te.closeInfo.code,0)}const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.CLOSE),(e=>{if(!e){this.ws[u]=l.SENT}}))}this.ws[A]=a.CLOSING;this.ws[p]=true;return false}else if(t===o.PING){if(!this.ws[p]){const t=new Q(e);this.ws[d].socket.write(t.createFrame(o.PONG));if(m.ping.hasSubscribers){m.ping.publish({payload:e})}}}else if(t===o.PONG){if(m.pong.hasSubscribers){m.pong.publish({payload:e})}}return true}get closingInfo(){return this.#te.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,r)=>{const{WebsocketFrameSend:n}=r(3264);const{opcodes:s,sendHints:i}=r(736);const o=r(4660);const a=Buffer[Symbol.species];class SendQueue{#se=new o;#ie=false;#oe;constructor(e){this.#oe=e}add(e,t,r){if(r!==i.blob){const n=createFrame(e,r);if(!this.#ie){this.#oe.write(n,t)}else{const e={promise:null,callback:t,frame:n};this.#se.push(e)}return}const n={promise:e.arrayBuffer().then((e=>{n.promise=null;n.frame=createFrame(e,r)})),callback:t,frame:null};this.#se.push(n);if(!this.#ie){this.#ae()}}async#ae(){this.#ie=true;const e=this.#se;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#ie=false}}function createFrame(e,t){return new n(toBuffer(e,t)).createFrame(t===i.string?s.TEXT:s.BINARY)}function toBuffer(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new a(e);case i.typedArray:return new a(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:i,kBinaryType:o,kWebSocketURL:a}=r(1216);const{states:c,opcodes:l}=r(736);const{ErrorEvent:A,createFastMessageEvent:u}=r(5188);const{isUtf8:d}=r(4573);const{collectASequenceOfCodePointsFast:p,removeHTTPWhitespace:m}=r(1900);function isConnecting(e){return e[n]===c.CONNECTING}function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=(e,t)=>new Event(e,t),n={}){const s=r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===l.TEXT){try{s=f(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===l.BINARY){if(e[o]==="blob"){s=new Blob([r])}else{s=toArrayBuffer(r)}}fireEvent("message",e,u,{origin:e[a].origin,data:s})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[i]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new A(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===l.CLOSE||e===l.PING||e===l.PONG}function isContinuationFrame(e){return e===l.CONTINUATION}function isTextBinaryFrame(e){return e===l.TEXT||e===l.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const r=new Map;while(t.position57){return false}}const t=Number.parseInt(e,10);return t>=8&&t<=15}const h=typeof process.versions.icu==="string";const g=h?new TextDecoder("utf-8",{fatal:true}):undefined;const f=h?g.decode.bind(g):function(e){if(d(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:f,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,r)=>{const{webidl:n}=r(5893);const{URLSerializer:s}=r(1900);const{environmentSettingsObject:i}=r(3168);const{staticPropertyDescriptors:o,states:a,sentCloseFrameState:c,sendHints:l}=r(736);const{kWebSocketURL:A,kReadyState:u,kController:d,kBinaryType:p,kResponse:m,kSentClose:h,kByteParser:g}=r(1216);const{isConnecting:f,isEstablished:y,isClosing:C,isValidSubprotocol:E,fireEvent:B}=r(8625);const{establishWebSocketConnection:I,closeWebSocketConnection:Q}=r(6897);const{ByteParser:b}=r(1652);const{kEnumerableProperty:S,isBlobLike:w}=r(3440);const{getGlobalDispatcher:N}=r(2581);const{types:R}=r(7975);const{ErrorEvent:x,CloseEvent:v}=r(5188);const{SendQueue:D}=r(3900);class WebSocket extends EventTarget{#M={open:null,error:null,close:null,message:null};#ce=0;#le="";#ne="";#Ae;constructor(e,t=[]){super();n.util.markAsUncloneable(this);const r="WebSocket constructor";n.argumentLengthCheck(arguments,1,r);const s=n.converters["DOMString or sequence or WebSocketInit"](t,r,"options");e=n.converters.USVString(e,r,"url");t=s.protocols;const o=i.settingsObject.baseUrl;let a;try{a=new URL(e,o)}catch(e){throw new DOMException(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>E(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[A]=new URL(a.href);const l=i.settingsObject;this[d]=I(a,t,l,this,((e,t)=>this.#ue(e,t)),s);this[u]=WebSocket.CONNECTING;this[h]=c.NOT_SENT;this[p]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);const r="WebSocket.close";if(e!==undefined){e=n.converters["unsigned short"](e,r,"code",{clamp:true})}if(t!==undefined){t=n.converters.USVString(t,r,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let s=0;if(t!==undefined){s=Buffer.byteLength(t);if(s>123){throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError")}}Q(this,e,t,s)}send(e){n.brandCheck(this,WebSocket);const t="WebSocket.send";n.argumentLengthCheck(arguments,1,t);e=n.converters.WebSocketSendData(e,t,"data");if(f(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!y(this)||C(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#ce+=t;this.#Ae.add(e,(()=>{this.#ce-=t}),l.string)}else if(R.isArrayBuffer(e)){this.#ce+=e.byteLength;this.#Ae.add(e,(()=>{this.#ce-=e.byteLength}),l.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#ce+=e.byteLength;this.#Ae.add(e,(()=>{this.#ce-=e.byteLength}),l.typedArray)}else if(w(e)){this.#ce+=e.size;this.#Ae.add(e,(()=>{this.#ce-=e.size}),l.blob)}}get readyState(){n.brandCheck(this,WebSocket);return this[u]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#ce}get url(){n.brandCheck(this,WebSocket);return s(this[A])}get extensions(){n.brandCheck(this,WebSocket);return this.#ne}get protocol(){n.brandCheck(this,WebSocket);return this.#le}get onopen(){n.brandCheck(this,WebSocket);return this.#M.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#M.open){this.removeEventListener("open",this.#M.open)}if(typeof e==="function"){this.#M.open=e;this.addEventListener("open",e)}else{this.#M.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#M.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#M.error){this.removeEventListener("error",this.#M.error)}if(typeof e==="function"){this.#M.error=e;this.addEventListener("error",e)}else{this.#M.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#M.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#M.close){this.removeEventListener("close",this.#M.close)}if(typeof e==="function"){this.#M.close=e;this.addEventListener("close",e)}else{this.#M.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#M.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#M.message){this.removeEventListener("message",this.#M.message)}if(typeof e==="function"){this.#M.message=e;this.addEventListener("message",e)}else{this.#M.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[p]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[p]="blob"}else{this[p]=e}}#ue(e,t){this[m]=e;const r=new b(this,t);r.on("drain",onParserDrain);r.on("error",onParserError.bind(this));e.socket.ws=this;this[g]=r;this.#Ae=new D(e.socket);this[u]=a.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#ne=n}const s=e.headersList.get("sec-websocket-protocol");if(s!==null){this.#le=s}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=a.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=a.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=a.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=a.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:S,readyState:S,bufferedAmount:S,onopen:S,onerror:S,onclose:S,close:S,onmessage:S,binaryType:S,send:S,extensions:S,protocol:S,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e,t,r){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e,t,r)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:n.converters.any,defaultValue:()=>N()},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(w(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||R.isArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};function onParserDrain(){this.ws[m].socket.resume()}function onParserError(e){let t;let r;if(e instanceof v){t=e.reason;r=e.code}else{t=e.message}B("error",this,(()=>new x("error",{error:e,message:t})));Q(this,r)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},7030:t=>{t.exports=e(import.meta.url)("node:net")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},8658:(e,t,r)=>{const n=r(4012);e.exports={version:n.version}},6492:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(8161);var s=r(6760);var i=r(1455);var o=r(3838);var a=r(8570);var c=r(9805);var l=r(8701);var A=r(2088);var u=r(5807);var d=r(4318);var p=r(6269);function getInputs(){const e={required:false,trimWhitespace:true};return{version:(0,o.V4)("version",e)||"latest",cache_prefix:(0,o.V4)("cache_prefix",e)||"",dir:(0,s.resolve)((0,o.V4)("dir",e)||(0,n.tmpdir)()),db_user:(0,o.V4)("db_user",e)||"wordpress",db_password:(0,o.V4)("db_password",e)||"wordpress",db_name:(0,o.V4)("db_name",e)||"wordpress_test",db_host:(0,o.V4)("db_host",e)||"127.0.0.1",has_cache:(0,a.w3)()&&!(0,d.yz)(),has_toolcache:process.env.RUNNER_TOOL_CACHE!==undefined,semver:undefined}}function resolveSemVer(e,t){t.semver=(0,A.coerce)(e)?.format();if(!t.semver){t.has_cache=false;t.has_toolcache=false}}async function cacheTool(e,t,r){if(r.has_toolcache){(0,o.pq)(`📦 Caching ${e} as ${t} ${r.semver}…`);const n=await(0,c.e8)(e,t,r.semver);(0,o.pq)(`ℹ️ Saved cache to ${n}`)}}async function findCached(e,t,r){if(r.has_toolcache&&r.semver){(0,o.pq)(`ℹ️ Checking tool cache for ${t} ${r.semver}…`);const n=(0,c.I6)(t,r.semver);if(n){const a=(0,s.resolve)(n);(0,o.pq)(`🚀 Using cached ${e} from ${a}`);await(0,i.symlink)(a,`${r.dir}/${t}`);return true}(0,o.pq)(`😔 ${t} ${r.semver} was not found in the tool cache`)}if(r.has_cache){const n=`2:${r.cache_prefix}:${t}:${r.semver}`;(0,o.pq)(`ℹ️ Checking cache key ${n} for ${t}…`);const i=await(0,a.P3)([t],n);if(i){(0,o.pq)(`🚀 Using cached ${e}, key is ${n}`);await cacheTool((0,s.join)(r.dir,t),t,r);return true}(0,o.LZ)(`dir_${t}`,r.dir);(0,o.LZ)(`cache_key_${t}`,n)}return false}async function downloadWordPress(e,t){const r=(0,s.join)(t.dir,"wordpress.zip");try{if(await findCached("WordPress","wordpress",t)){return}(0,o.pq)(`📥 Downloading WordPress…`);const n=await(0,c.bq)(e,r);const s=await(0,c.JE)(n,t.dir);await cacheTool(`${s}/wordpress`,"wordpress",t)}finally{await(0,l.Yz)(r)}}async function downloadTestLibrary(e,t){if(await findCached("WordPress Test Library","wordpress-tests-lib",t)){return}(0,o.pq)(`📥 Downloading WordPress Test Library…`);await(0,l.U$)((0,s.join)(t.dir,"wordpress-tests-lib"));const r=new u.z;r.setConfig({silent:true});const[,,n]=await Promise.all([r.checkout(`${e}/tests/phpunit/includes/`,`${t.dir}/wordpress-tests-lib/includes`),r.checkout(`${e}/tests/phpunit/data/`,`${t.dir}/wordpress-tests-lib/data`),(0,d.GP)(`${e}/wp-tests-config-sample.php`)]);await Promise.all([(0,l.Yz)(`${t.dir}/wordpress-tests-lib/includes/.svn`),(0,l.Yz)(`${t.dir}/wordpress-tests-lib/data/.svn`),(0,i.writeFile)((0,s.join)(t.dir,"wordpress-tests-lib","wp-tests-config-sample.php"),n)]);await cacheTool(`${t.dir}/wordpress-tests-lib`,"wordpress-tests-lib",t)}async function configureWordPress(e){const t=(0,s.join)(e.dir,"wordpress-tests-lib");const r=(await(0,i.readFile)((0,s.join)(t,"wp-tests-config-sample.php"),"utf8")).replace("youremptytestdbnamehere",e.db_name).replace("yourusernamehere",e.db_user).replace("yourpasswordhere",e.db_password).replace("localhost",e.db_host).replace("dirname( __FILE__ ) . '/src/'",`'${e.dir}/wordpress/'`);return(0,i.writeFile)((0,s.join)(e.dir,"wordpress-tests-lib","wp-tests-config.php"),r)}async function run(){try{const e=getInputs();if(!await(0,d.Q7)(e.dir)){throw new Error(`Directory ${e.dir} does not exist`)}(0,o.pq)("🤔 Determining WordPress version…");const t=await(0,p.Eq)(e.version);(0,o.pq)(`ℹ️ WordPress version: ${t}`);(0,o.uH)("wp_version",t);resolveSemVer(t,e);await Promise.all([(0,l.Yz)((0,s.join)(e.dir,"wordpress")),(0,l.Yz)((0,s.join)(e.dir,"wordpress-tests-lib")),(0,l.Yz)((0,s.join)(e.dir,"wordpress.zip"))]);(0,o.pq)(`ℹ️ Cache is available: ${e.has_cache?"yes":"no"}`);(0,o.pq)(`ℹ️ Tool cache is available: ${e.has_toolcache?"yes":"no"}`);const r=(0,p.dL)(t);const n=(0,p.hE)(t);const i=process.env.GITHUB_WORKSPACE;try{process.env.GITHUB_WORKSPACE=e.dir;await Promise.all([downloadWordPress(r,e),downloadTestLibrary(n,e)])}finally{process.env.GITHUB_WORKSPACE=i}(0,o.pq)("⚙️ Configuring WordPress…");await configureWordPress(e);(0,o.dN)("WP_TESTS_DIR",(0,s.join)(e.dir,"wordpress-tests-lib"));(0,o.uH)("wp_directory",(0,s.join)(e.dir,"wordpress"));(0,o.uH)("wptl_directory",(0,s.join)(e.dir,"wordpress-tests-lib"));(0,o.LZ)("ok_to_save_cache","yes");(0,o.pq)("✅ Success")}catch(e){const t=e instanceof Error?e:new Error("An unknown error occurred",{cause:e});(0,o.C1)(`❌ ${t.message}`)}}await run();t()}catch(m){t(m)}}),1)},4318:(e,t,r)=>{r.d(t,{GP:()=>downloadAsText,M7:()=>sortVersions,Q7:()=>isDir,yz:()=>isGHES});var n=r(1455);var s=r(4942);function sortVersions(e){return e.sort(((e,t)=>{const r=e.split(".");const n=t.split(".");for(let e=0;e{r.d(t,{dL:()=>getWordPressDownloadUrl,hE:()=>getWordPressTestLibraryBaseUrl,Eq:()=>resolveWordPressVersion});var n=r(4942);var s=r(4318);async function getLatestVersion(){const e=new n.Qq;const t=await e.getJson("http://api.wordpress.org/core/version-check/1.7/");if(t.statusCode===200&&t.result){return t.result.offers[0].version}throw new Error(`Failed to fetch WordPress versions: error ${t.statusCode}`)}async function getLatestBranchVersion(e){const t=new n.Qq;const r=await t.getJson("https://api.wordpress.org/core/version-check/1.7/");if(r.statusCode===200&&r.result){const t=r.result.offers.filter((t=>t.version.startsWith(e))).map((e=>e.version));const n=(0,s.M7)(t);return n[0]}throw new Error(`Failed to fetch WordPress versions: error ${r.statusCode}`)}const i="https://wordpress.org/nightly-builds/wordpress-latest.zip";const o="https://wordpress.org/wordpress-";const a="https://develop.svn.wordpress.org/";function resolveWordPressVersion(e){if(e==="nightly"||e==="trunk"){return Promise.resolve("nightly")}if(e==="latest"){return getLatestVersion()}if(e.endsWith(".x")){return getLatestBranchVersion(e.slice(0,-2))}return Promise.resolve(e)}function getWordPressDownloadUrl(e){if(e==="nightly"){return i}return`${o}${e}.zip`}function getWordPressTestLibraryBaseUrl(e){const t=e==="nightly"?"trunk":`tags/${e}`;return`${a}${t}`}},8570:(t,r,n)=>{n.d(r,{w3:()=>isFeatureAvailable,P3:()=>restoreCache});var s={};n.r(s);n.d(s,{AccessPolicy:()=>bs,AppendBlobAppendBlockExceptionHeaders:()=>oa,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ca,AppendBlobAppendBlockFromUrlHeaders:()=>aa,AppendBlobAppendBlockHeaders:()=>ia,AppendBlobCreateExceptionHeaders:()=>sa,AppendBlobCreateHeaders:()=>na,AppendBlobSealExceptionHeaders:()=>Aa,AppendBlobSealHeaders:()=>la,ArrowConfiguration:()=>Vs,ArrowField:()=>Gs,BlobAbortCopyFromURLExceptionHeaders:()=>Ro,BlobAbortCopyFromURLHeaders:()=>No,BlobAcquireLeaseExceptionHeaders:()=>uo,BlobAcquireLeaseHeaders:()=>Ao,BlobBreakLeaseExceptionHeaders:()=>Eo,BlobBreakLeaseHeaders:()=>Co,BlobChangeLeaseExceptionHeaders:()=>yo,BlobChangeLeaseHeaders:()=>fo,BlobCopyFromURLExceptionHeaders:()=>wo,BlobCopyFromURLHeaders:()=>So,BlobCreateSnapshotExceptionHeaders:()=>Io,BlobCreateSnapshotHeaders:()=>Bo,BlobDeleteExceptionHeaders:()=>$i,BlobDeleteHeaders:()=>Wi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>io,BlobDeleteImmutabilityPolicyHeaders:()=>so,BlobDownloadExceptionHeaders:()=>Gi,BlobDownloadHeaders:()=>Vi,BlobFlatListSegment:()=>ws,BlobGetAccountInfoExceptionHeaders:()=>ko,BlobGetAccountInfoHeaders:()=>Do,BlobGetPropertiesExceptionHeaders:()=>Ji,BlobGetPropertiesHeaders:()=>Yi,BlobGetTagsExceptionHeaders:()=>Lo,BlobGetTagsHeaders:()=>Mo,BlobHierarchyListSegment:()=>Ds,BlobItemInternal:()=>Ns,BlobName:()=>Rs,BlobPrefix:()=>ks,BlobPropertiesInternal:()=>xs,BlobQueryExceptionHeaders:()=>Po,BlobQueryHeaders:()=>To,BlobReleaseLeaseExceptionHeaders:()=>mo,BlobReleaseLeaseHeaders:()=>po,BlobRenewLeaseExceptionHeaders:()=>go,BlobRenewLeaseHeaders:()=>ho,BlobServiceProperties:()=>rs,BlobServiceStatistics:()=>us,BlobSetExpiryExceptionHeaders:()=>Zi,BlobSetExpiryHeaders:()=>Xi,BlobSetHttpHeadersExceptionHeaders:()=>to,BlobSetHttpHeadersHeaders:()=>eo,BlobSetImmutabilityPolicyExceptionHeaders:()=>no,BlobSetImmutabilityPolicyHeaders:()=>ro,BlobSetLegalHoldExceptionHeaders:()=>ao,BlobSetLegalHoldHeaders:()=>oo,BlobSetMetadataExceptionHeaders:()=>lo,BlobSetMetadataHeaders:()=>co,BlobSetTagsExceptionHeaders:()=>Uo,BlobSetTagsHeaders:()=>Fo,BlobSetTierExceptionHeaders:()=>vo,BlobSetTierHeaders:()=>xo,BlobStartCopyFromURLExceptionHeaders:()=>bo,BlobStartCopyFromURLHeaders:()=>Qo,BlobTag:()=>Is,BlobTags:()=>Bs,BlobUndeleteExceptionHeaders:()=>Ki,BlobUndeleteHeaders:()=>ji,Block:()=>Ms,BlockBlobCommitBlockListExceptionHeaders:()=>Ea,BlockBlobCommitBlockListHeaders:()=>Ca,BlockBlobGetBlockListExceptionHeaders:()=>Ia,BlockBlobGetBlockListHeaders:()=>Ba,BlockBlobPutBlobFromUrlExceptionHeaders:()=>ma,BlockBlobPutBlobFromUrlHeaders:()=>pa,BlockBlobStageBlockExceptionHeaders:()=>ga,BlockBlobStageBlockFromURLExceptionHeaders:()=>ya,BlockBlobStageBlockFromURLHeaders:()=>fa,BlockBlobStageBlockHeaders:()=>ha,BlockBlobUploadExceptionHeaders:()=>da,BlockBlobUploadHeaders:()=>ua,BlockList:()=>Ps,BlockLookupList:()=>Ts,ClearRange:()=>Us,ContainerAcquireLeaseExceptionHeaders:()=>xi,ContainerAcquireLeaseHeaders:()=>Ri,ContainerBreakLeaseExceptionHeaders:()=>Mi,ContainerBreakLeaseHeaders:()=>Pi,ContainerChangeLeaseExceptionHeaders:()=>Fi,ContainerChangeLeaseHeaders:()=>Li,ContainerCreateExceptionHeaders:()=>li,ContainerCreateHeaders:()=>ci,ContainerDeleteExceptionHeaders:()=>pi,ContainerDeleteHeaders:()=>di,ContainerFilterBlobsExceptionHeaders:()=>Ni,ContainerFilterBlobsHeaders:()=>wi,ContainerGetAccessPolicyExceptionHeaders:()=>fi,ContainerGetAccessPolicyHeaders:()=>gi,ContainerGetAccountInfoExceptionHeaders:()=>qi,ContainerGetAccountInfoHeaders:()=>zi,ContainerGetPropertiesExceptionHeaders:()=>ui,ContainerGetPropertiesHeaders:()=>Ai,ContainerItem:()=>ms,ContainerListBlobFlatSegmentExceptionHeaders:()=>Oi,ContainerListBlobFlatSegmentHeaders:()=>Ui,ContainerListBlobHierarchySegmentExceptionHeaders:()=>_i,ContainerListBlobHierarchySegmentHeaders:()=>Hi,ContainerProperties:()=>hs,ContainerReleaseLeaseExceptionHeaders:()=>Di,ContainerReleaseLeaseHeaders:()=>vi,ContainerRenameExceptionHeaders:()=>Qi,ContainerRenameHeaders:()=>Ii,ContainerRenewLeaseExceptionHeaders:()=>Ti,ContainerRenewLeaseHeaders:()=>ki,ContainerRestoreExceptionHeaders:()=>Bi,ContainerRestoreHeaders:()=>Ei,ContainerSetAccessPolicyExceptionHeaders:()=>Ci,ContainerSetAccessPolicyHeaders:()=>yi,ContainerSetMetadataExceptionHeaders:()=>hi,ContainerSetMetadataHeaders:()=>mi,ContainerSubmitBatchExceptionHeaders:()=>Si,ContainerSubmitBatchHeaders:()=>bi,CorsRule:()=>cs,DelimitedTextConfiguration:()=>zs,FilterBlobItem:()=>Es,FilterBlobSegment:()=>Cs,GeoReplication:()=>ds,JsonTextConfiguration:()=>qs,KeyInfo:()=>gs,ListBlobsFlatSegmentResponse:()=>Ss,ListBlobsHierarchySegmentResponse:()=>vs,ListContainersSegmentResponse:()=>ps,Logging:()=>ns,Metrics:()=>as,PageBlobClearPagesExceptionHeaders:()=>Vo,PageBlobClearPagesHeaders:()=>qo,PageBlobCopyIncrementalExceptionHeaders:()=>ra,PageBlobCopyIncrementalHeaders:()=>ta,PageBlobCreateExceptionHeaders:()=>Ho,PageBlobCreateHeaders:()=>Oo,PageBlobGetPageRangesDiffExceptionHeaders:()=>jo,PageBlobGetPageRangesDiffHeaders:()=>$o,PageBlobGetPageRangesExceptionHeaders:()=>Wo,PageBlobGetPageRangesHeaders:()=>Jo,PageBlobResizeExceptionHeaders:()=>Xo,PageBlobResizeHeaders:()=>Ko,PageBlobUpdateSequenceNumberExceptionHeaders:()=>ea,PageBlobUpdateSequenceNumberHeaders:()=>Zo,PageBlobUploadPagesExceptionHeaders:()=>zo,PageBlobUploadPagesFromURLExceptionHeaders:()=>Yo,PageBlobUploadPagesFromURLHeaders:()=>Go,PageBlobUploadPagesHeaders:()=>_o,PageList:()=>Ls,PageRange:()=>Fs,QueryFormat:()=>_s,QueryRequest:()=>Os,QuerySerialization:()=>Hs,RetentionPolicy:()=>ss,ServiceFilterBlobsExceptionHeaders:()=>ai,ServiceFilterBlobsHeaders:()=>oi,ServiceGetAccountInfoExceptionHeaders:()=>ni,ServiceGetAccountInfoHeaders:()=>ri,ServiceGetPropertiesExceptionHeaders:()=>$s,ServiceGetPropertiesHeaders:()=>Ws,ServiceGetStatisticsExceptionHeaders:()=>Ks,ServiceGetStatisticsHeaders:()=>js,ServiceGetUserDelegationKeyExceptionHeaders:()=>ti,ServiceGetUserDelegationKeyHeaders:()=>ei,ServiceListContainersSegmentExceptionHeaders:()=>Zs,ServiceListContainersSegmentHeaders:()=>Xs,ServiceSetPropertiesExceptionHeaders:()=>Js,ServiceSetPropertiesHeaders:()=>Ys,ServiceSubmitBatchExceptionHeaders:()=>ii,ServiceSubmitBatchHeaders:()=>si,SignedIdentifier:()=>Qs,StaticWebsite:()=>ls,StorageError:()=>As,UserDelegationKey:()=>ys});var i=n(3838);var o=n(6928);var a=n(5260);var c=n(9896);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;core.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;core.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;core.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;core.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;core.debug(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}var l=n(2613);const A=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(A&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=path.dirname(e);if(A&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){assert(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);assert(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(A){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();assert(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();assert(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}assert(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||A&&e.endsWith("\\")){}else{e+=path.sep}return e+t}function hasAbsoluteRoot(e){assert(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(A){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){assert(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(A){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function normalizeSeparators(e){e=e||"";if(A){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(path.sep)){return e}if(e===path.sep){return e}if(A&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var u;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(u||(u={}));const d=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const r of e){const e=d?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const n of e){const e=d?n.searchPath.toUpperCase():n.searchPath;if(t[e]==="included"){continue}let s=false;let i=e;let o=pathHelper.dirname(i);while(o!==i){if(t[o]){s=true;break}i=o;o=pathHelper.dirname(i)}if(!s){r.push(n.searchPath);t[e]="included"}}return r}function match(e,t){let r=MatchKind.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var p=n(857);var m=n(3772);const h=process.platform==="win32";class internal_path_Path{constructor(e){this.segments=[];if(typeof e==="string"){assert(e,`Parameter 'itemPath' must not be empty`);e=pathHelper.safeTrimTrailingSeparator(e);if(!pathHelper.hasRoot(e)){this.segments=e.split(path.sep)}else{let t=e;let r=pathHelper.dirname(t);while(r!==t){const e=path.basename(t);this.segments.unshift(e);t=r;r=pathHelper.dirname(t)}this.segments.unshift(t)}}else{assert(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;tinternal_pattern_Pattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new Path(o).toString();this.rootRegExp=new RegExp(internal_pattern_Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const a={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};s=f?s.replace(/\\/g,"/"):s;this.minimatch=new g(s,a)}match(e){if(this.segments[this.segments.length-1]==="**"){e=pathHelper.normalizeSeparators(e);if(!e.endsWith(path.sep)&&this.isImplicitPattern===false){e=`${e}${path.sep}`}}else{e=pathHelper.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?MatchKind.Directory:MatchKind.All}return MatchKind.None}partialMatch(e){e=pathHelper.safeTrimTrailingSeparator(e);if(pathHelper.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){assert(e,"pattern cannot be empty");const r=new Path(e).segments.map((e=>internal_pattern_Pattern.getLiteral(e)));assert(r.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);assert(!pathHelper.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=pathHelper.normalizeSeparators(e);if(e==="."||e.startsWith(`.${path.sep}`)){e=internal_pattern_Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${path.sep}`)){t=t||os.homedir();assert(t,"Unable to determine HOME directory");assert(pathHelper.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=internal_pattern_Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=pathHelper.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=internal_pattern_Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=pathHelper.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=internal_pattern_Pattern.globEscape(t)+e.substr(1)}else{e=pathHelper.ensureAbsoluteRoot(internal_pattern_Pattern.globEscape(process.cwd()),e)}return pathHelper.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=s;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var C=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var E=undefined&&undefined.__await||function(e){return this instanceof E?(this.v=e,this):new E(e)};var B=undefined&&undefined.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),s[Symbol.asyncIterator]=function(){return this},s;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(n[e]){s[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof E?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};const I=process.platform==="win32";class internal_globber_DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=globOptionsHelper.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return y(this,void 0,void 0,(function*(){var e,t,r,n;const s=[];try{for(var i=true,o=C(this.globGenerator()),a;a=yield o.next(),e=a.done,!e;i=true){n=a.value;i=false;const e=n;s.push(e)}}catch(e){t={error:e}}finally{try{if(!i&&!e&&(r=o.return))yield r.call(o)}finally{if(t)throw t.error}}return s}))}globGenerator(){return B(this,arguments,(function*globGenerator_1(){const e=globOptionsHelper.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of patternHelper.getSearchPaths(t)){core.debug(`Search path '${e}'`);try{yield E(fs.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new SearchState(e,1))}const n=[];while(r.length){const s=r.pop();const i=patternHelper.match(t,s.path);const o=!!i||patternHelper.partialMatch(t,s.path);if(!i&&!o){continue}const a=yield E(internal_globber_DefaultGlobber.stat(s,e,n));if(!a){continue}if(e.excludeHiddenFiles&&path.basename(s.path).match(/^\./)){continue}if(a.isDirectory()){if(i&MatchKind.Directory&&e.matchDirectories){yield yield E(s.path)}else if(!o){continue}const t=s.level+1;const n=(yield E(fs.promises.readdir(s.path))).map((e=>new SearchState(path.join(s.path,e),t)));r.push(...n.reverse())}else if(i&MatchKind.File){yield yield E(s.path)}}}))}static create(e,t){return y(this,void 0,void 0,(function*(){const r=new internal_globber_DefaultGlobber(t);if(I){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new Pattern(e))}}r.searchPaths.push(...patternHelper.getSearchPaths(r.patterns));return r}))}static stat(e,t,r){return y(this,void 0,void 0,(function*(){let n;if(t.followSymbolicLinks){try{n=yield fs.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){core.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield fs.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield fs.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===t))){core.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n}))}}var Q=n(6982);var b=n(2203);var S=n(9023);var w=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var N=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};function hashFiles(e,t){return w(this,arguments,void 0,(function*(e,t,r=false){var n,s,i,o;var a;const c=r?core.info:core.debug;let l=false;const A=t?t:(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const u=crypto.createHash("sha256");let d=0;try{for(var p=true,m=N(e.globGenerator()),h;h=yield m.next(),n=h.done,!n;p=true){o=h.value;p=false;const e=o;c(e);if(!e.startsWith(`${A}${path.sep}`)){c(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){c(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const r=util.promisify(stream.pipeline);yield r(fs.createReadStream(e),t);u.write(t.digest());d++;if(!l){l=true}}}catch(e){s={error:e}}finally{try{if(!p&&!n&&(i=m.return))yield i.call(m)}finally{if(s)throw s.error}}u.end();if(l){c(`Found ${d} files to hash.`);return u.digest("hex")}else{c(`No matches found for glob`);return""}}))}var R=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function create(e,t){return R(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return R(this,arguments,void 0,(function*(e,t="",r,n=false){let s=true;if(r&&typeof r.followSymbolicLinks==="boolean"){s=r.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:s});return _hashFiles(i,t,n)}))}var x=n(8701);var v=n(2088);var D;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(D||(D={}));var k;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(k||(k={}));var T;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(T||(T={}));const P=2;const M=5e3;const L=5e3;const F=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const U=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const O="cache.tar";const H="manifest.txt";const _=10*Math.pow(1024,3);var z=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var q=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,s){r=e[t](r),settle(n,s,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};const V="1.0";function createTempDirectory(){return z(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let r;if(e){r=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){r="/Users"}else{r="/home"}}t=o.join(r,"actions","temp")}const r=o.join(t,Q.randomUUID());yield x.U$(r);return r}))}function getArchiveFileSizeInBytes(e){return c.statSync(e).size}function resolvePaths(e){return z(this,void 0,void 0,(function*(){var t,r,n,s;var i;const o=[];const a=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const c=yield glob.create(e.join("\n"),{implicitDescendants:false});try{for(var l=true,A=q(c.globGenerator()),u;u=yield A.next(),t=u.done,!t;l=true){s=u.value;l=false;const e=s;const t=path.relative(a,e).replace(new RegExp(`\\${path.sep}`,"g"),"/");core.debug(`Matched: ${t}`);if(t===""){o.push(".")}else{o.push(`${t}`)}}}catch(e){r={error:e}}finally{try{if(!l&&!t&&(n=A.return))yield n.call(A)}finally{if(r)throw r.error}}return o}))}function unlinkFile(e){return z(this,void 0,void 0,(function*(){return S.promisify(c.unlink)(e)}))}function getVersion(e){return z(this,arguments,void 0,(function*(e,t=[]){let r="";t.push("--version");i.Yz(`Checking ${e} ${t.join(" ")}`);try{yield a.m(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}})}catch(e){i.Yz(e.message)}r=r.trim();i.Yz(r);return r}))}function getCompressionMethod(){return z(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=v.clean(e);i.Yz(`zstd version: ${t}`);if(e===""){return k.Gzip}else{return k.ZstdWithoutLong}}))}function getCacheFileName(e){return e===k.Gzip?D.Gzip:D.Zstd}function getGnuTarPathOnWindows(){return z(this,void 0,void 0,(function*(){if(c.existsSync(F)){return F}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?x.K7("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,r=false){const n=e.slice();if(t){n.push(t)}if(process.platform==="win32"&&!r){n.push("windows-only")}n.push(V);return Q.createHash("sha256").update(n.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var G=n(4942);var Y=n(2145);var J=n(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}var W=n(8161);var $=n(7975);const j=e(import.meta.url)("node:process");function log(e,...t){j.stderr.write(`${$.format(e,...t)}${W.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){X=e;Z=[];ee=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){ee.push(e.substring(1))}else{Z.push(e)}}for(const e of te){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of ee){if(namespaceMatches(e,t)){return false}}for(const t of Z){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let r=t;if(t.indexOf("**")!==-1){const e=[];let n="";for(const r of t){if(r==="*"&&n==="*"){continue}else{n=r;e.push(r)}}r=e.join("")}let n=0;let s=0;const i=r.length;const o=e.length;let a=-1;let c=-1;while(n=0){s=a+1;n=c+1;if(n===o){return false}while(e[n]!==r[s]){n++;if(n===o){return false}}c=n;n++;s++;continue}else{return false}}const l=n===e.length;const A=s===r.length;const u=s===r.length-1&&r[s]==="*";return l&&(A||u)}function disable(){const e=X||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:re.log,namespace:e,extend:extend});function debug(...r){if(!t.enabled){return}if(r.length>0){r[0]=`${e} ${r[0]}`}t.log(...r)}te.push(t);return t}function destroy(){const e=te.indexOf(this);if(e>=0){te.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return se.includes(e)}function createLoggerContext(e){const t=new Set;const r=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let n;const s=ne(e.namespace);s.log=(...e)=>{ne.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${se.join(",")}`)}n=e;const r=[];for(const e of t){if(shouldEnable(e)){r.push(e.namespace)}}ne.enable(r.join(","))}if(r){if(isTypeSpecRuntimeLogLevel(r)){contextSetLogLevel(r)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(e){return Boolean(n&&ie[e.level]<=ie[n])}function createLogger(e,r){const n=Object.assign(e.extend(r),{level:r});patchLogMethod(e,n);if(shouldEnable(n)){const e=ne.disable();ne.enable(e+","+n.namespace)}t.add(n);return n}function contextGetLogLevel(){return n}function contextCreateClientLogger(e){const t=s.extend(e);patchLogMethod(s,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:s}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(e){oe.setLogLevel(e)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(e){return oe.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,r]of this._headersMap){t[e]=r.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const ce=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!ce.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!ce.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((r=>{if(e.name&&r.policy.name===e.name||e.phase&&r.options.phase===e.phase){t.push(r.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const r=this.getOrderedPolicies();const n=r.reduceRight(((e,t)=>r=>t.sendRequest(r,e)),(t=>e.sendRequest(t)));return n(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const r=createPhase("Serialize");const n=createPhase("None");const s=createPhase("Deserialize");const i=createPhase("Retry");const o=createPhase("Sign");const a=[r,n,s,i,o];function getPhase(e){if(e==="Retry"){return i}else if(e==="Serialize"){return r}else if(e==="Deserialize"){return s}else if(e==="Sign"){return o}else{return n}}for(const e of this._policies){const r=e.policy;const n=e.options;const s=r.name;if(t.has(s)){throw new Error("Duplicate policy names not allowed in pipeline")}const i={policy:r,dependsOn:new Set,dependants:new Set};if(n.afterPhase){i.afterPhase=getPhase(n.afterPhase);i.afterPhase.hasAfterPolicies=true}t.set(s,i);const o=getPhase(n.phase);o.policies.add(i)}for(const e of this._policies){const{policy:r,options:n}=e;const s=r.name;const i=t.get(s);if(!i){throw new Error(`Missing node for policy ${s}`)}if(n.afterPolicies){for(const e of n.afterPolicies){const r=t.get(e);if(r){i.dependsOn.add(r);r.dependants.add(i)}}}if(n.beforePolicies){for(const e of n.beforePolicies){const r=t.get(e);if(r){r.dependsOn.add(i);i.dependants.add(r)}}}}function walkPhase(r){r.hasRun=true;for(const n of r.policies){if(n.afterPhase&&(!n.afterPhase.hasRun||n.afterPhase.policies.size)){continue}if(n.dependsOn.size===0){e.push(n.policy);for(const e of n.dependants){e.dependsOn.delete(n)}t.delete(n.policy.name);r.policies.delete(n)}}}function walkPhases(){for(const e of a){walkPhase(e);if(e.policies.size>0&&e!==n){if(!n.hasRun){walkPhase(n)}return}if(e.hasAfterPolicies){walkPhase(n)}}}let c=0;while(t.size>0){c++;const t=e.length;walkPhases();if(e.length<=t&&c>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const r=typeof e.message==="string";return t&&r}return false}const le=$.inspect.custom;const Ae="REDACTED";const ue=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const de=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=ue.concat(e);t=de.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,r)=>{if(r instanceof Error){return{...r,name:r.name,message:r.message}}if(e==="headers"){return this.sanitizeHeaders(r)}else if(e==="url"){return this.sanitizeUrl(r)}else if(e==="query"){return this.sanitizeQuery(r)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(r)||isObject(r)){if(t.has(r)){return"[Circular]"}t.add(r)}return r}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,Ae)}}return t.toString()}sanitizeHeaders(e){const t={};for(const r of Object.keys(e)){if(this.allowedHeaderNames.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=Ae}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const r of Object.keys(e)){if(this.allowedQueryParameters.has(r.toLowerCase())){t[r]=e[r]}else{t[r]=Ae}}return t}}const pe=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,le,{value:()=>`RestError: ${this.message} \n ${pe.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var me=n(7067);const he=e(import.meta.url)("node:https");var ge=n(8522);var fe=n(7075);const ye=createClientLogger("ts-http-runtime");const Ce={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends fe.Transform{loadedBytes=0;progressCallback;_transform(e,t,r){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});r()}catch(e){r(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let r;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}r=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",r)}let n;if(e.timeout>0){n=setTimeout((()=>{const r=new Sanitizer;ye.info(`request to '${r.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const s=e.headers.get("Accept-Encoding");const i=s?.includes("gzip")||s?.includes("deflate");let o=typeof e.body==="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){const t=getBodyLength(o);if(t!==null){e.headers.set("Content-Length",t)}}let a;try{if(o&&e.onUploadProgress){const t=e.onUploadProgress;const r=new ReportTransform(t);r.on("error",(e=>{ye.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(o)){o.pipe(r)}else{r.end(o)}o=r}const r=await this.makeRequest(e,t,o);if(n!==undefined){clearTimeout(n)}const s=getResponseHeaders(r);const c=r.statusCode??0;const l={status:c,headers:s,request:e};if(e.method==="HEAD"){r.resume();return l}a=i?getDecodedResponseStream(r,s):r;const A=e.onDownloadProgress;if(A){const e=new ReportTransform(A);e.on("error",(e=>{ye.error("Error in download progress",e)}));a.pipe(e);a=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(l.status)){l.readableStreamBody=a}else{l.bodyAsText=await streamToText(a)}return l}finally{if(e.abortSignal&&r){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(o)){t=isStreamComplete(o)}let n=Promise.resolve();if(nodeHttpClient_isReadableStream(a)){n=isStreamComplete(a)}Promise.all([t,n]).then((()=>{if(r){e.abortSignal?.removeEventListener("abort",r)}})).catch((e=>{ye.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,r){const n=new URL(e.url);const s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const i=e.agent??this.getOrCreateAgent(e,s);const o={agent:i,hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((n,i)=>{const a=s?me.request(o,n):he.request(o,n);a.once("error",(t=>{i(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");a.destroy(e);i(e)}));if(r&&nodeHttpClient_isReadableStream(r)){r.pipe(a)}else if(r){if(typeof r==="string"||Buffer.isBuffer(r)){a.end(r)}else if(isArrayBuffer(r)){a.end(ArrayBuffer.isView(r)?Buffer.from(r.buffer):Buffer.from(r))}else{ye.error("Unrecognized body type",r);i(new restError_RestError("Unrecognized body type"))}}else{a.end()}}))}getOrCreateAgent(e,t){const r=e.disableKeepAlive;if(t){if(r){return me.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new me.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(r&&!e.tlsSettings){return he.globalAgent}const t=e.tlsSettings??Ce;let n=this.cachedHttpsAgents.get(t);if(n&&n.options.keepAlive===!r){return n}ye.info("No cached TLS Agent exist, creating a new Agent");n=new he.Agent({keepAlive:!r,...t});this.cachedHttpsAgents.set(t,n);return n}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const r of Object.keys(e.headers)){const n=e.headers[r];if(Array.isArray(n)){if(n.length>0){t.set(r,n[0])}}else if(n){t.set(r,n)}}return t}function getDecodedResponseStream(e,t){const r=t.get("Content-Encoding");if(r==="gzip"){const t=ge.createGunzip();e.pipe(t);return t}else if(r==="deflate"){const t=ge.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,r)=>{const n=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){n.push(e)}else{n.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(n).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){r(e)}else{r(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Ee="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??ye.info;const r=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Ee,async sendRequest(e,n){if(!t.enabled){return n(e)}t(`Request: ${r.sanitize(e)}`);const s=await n(e);t(`Response status code: ${s.status}`);t(`Headers: ${r.sanitize(s.headers)}`);return s}}}const Be="redirectPolicy";const Ie=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:r=false}=e;return{name:Be,async sendRequest(e,n){const s=await n(e);return handleRedirect(n,s,t,r)}}}async function handleRedirect(e,t,r,n,s=0){const{request:i,status:o,headers:a}=t;const c=a.get("location");if(c&&(o===300||o===301&&Ie.includes(i.method)||o===302&&Ie.includes(i.method)||o===303&&i.method==="POST"||o===307)&&s{let i=undefined;let o=undefined;const rejectOnAbort=()=>s(new AbortError(r?.abortErrorMsg?r?.abortErrorMsg:Se));const removeListeners=()=>{if(r?.abortSignal&&o){r.abortSignal.removeEventListener("abort",o)}};o=()=>{if(i){clearTimeout(i)}removeListeners();return rejectOnAbort()};if(r?.abortSignal&&r.abortSignal.aborted){return rejectOnAbort()}i=setTimeout((()=>{removeListeners();n(t)}),e);if(r?.abortSignal){r.abortSignal.addEventListener("abort",o)}}))}function parseHeaderValueAsNumber(e,t){const r=e.headers.get(t);if(!r)return;const n=Number(r);if(Number.isNaN(n))return;return n}const we="Retry-After";const Ne=["retry-after-ms","x-ms-retry-after-ms",we];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of Ne){const r=parseHeaderValueAsNumber(e,t);if(r===0||r){const e=t===we?1e3:1;return r*e}}const t=e.headers.get(we);if(!t)return;const r=Date.parse(t);const n=r-Date.now();return Number.isFinite(n)?Math.max(0,n):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Re=1e3;const xe=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Re;const r=e.maxRetryDelayInMs??xe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:i}){const o=isSystemError(i);const a=o&&e.ignoreSystemErrors;const c=isExponentialRetryResponse(s);const l=c&&e.ignoreHttpStatusCodes;const A=s&&(isThrottlingRetryResponse(s)||!c);if(A||l||a){return{skipStrategy:true}}if(i&&!o&&!c){return{errorToThrow:i}}return calculateRetryDelay(n,{retryDelayInMs:t,maxRetryDelayInMs:r})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const ve="0.3.4";const De=3;const ke=createClientLogger("ts-http-runtime retryPolicy");const Te="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:De}){const r=t.logger||ke;return{name:Te,async sendRequest(n,s){let i;let o;let a=-1;e:while(true){a+=1;i=undefined;o=undefined;try{r.info(`Retry ${a}: Attempting to send request`,n.requestId);i=await s(n);r.info(`Retry ${a}: Received a response from request`,n.requestId)}catch(e){r.error(`Retry ${a}: Received an error from request`,n.requestId);o=e;if(!e||o.name!=="RestError"){throw e}i=o.response}if(n.abortSignal?.aborted){r.error(`Retry ${a}: Request aborted.`);const e=new AbortError;throw e}if(a>=(t.maxRetries??De)){r.info(`Retry ${a}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(o){throw o}else if(i){return i}else{throw new Error("Maximum retries reached with no response or error to throw")}}r.info(`Retry ${a}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||r;e.info(`Retry ${a}: Processing retry strategy ${t.name}.`);const s=t.retry({retryCount:a,response:i,responseError:o});if(s.skipStrategy){e.info(`Retry ${a}: Skipped.`);continue t}const{errorToThrow:c,retryAfterInMs:l,redirectTo:A}=s;if(c){e.error(`Retry ${a}: Retry strategy ${t.name} throws error:`,c);throw c}if(l||l===0){e.info(`Retry ${a}: Retry strategy ${t.name} retries after ${l}`);await helpers_delay(l,undefined,{abortSignal:n.abortSignal});continue e}if(A){e.info(`Retry ${a}: Retry strategy ${t.name} redirects to ${A}`);n.url=A;continue e}}if(o){r.info(`None of the retry strategies could work with the received error. Throwing it.`);throw o}if(i){r.info(`None of the retry strategies could work with the received response. Returning it.`);return i}}}}}const Pe="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Pe,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??De}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Me=typeof window!=="undefined"&&typeof window.document!=="undefined";const Le=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Fe=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ue=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Oe=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const He=Oe&&!Ue&&!Fe;const _e=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const ze="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[r,n]of e.entries()){t[r]??=[];t[r].push(n)}return t}function formDataPolicy_formDataPolicy(){return{name:ze,async sendRequest(e,t){if(Oe&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[r,n]of Object.entries(e)){if(Array.isArray(n)){for(const e of n){t.append(r,e.toString())}}else{t.append(r,n.toString())}}return t.toString()}async function prepareFormData(e,t){const r=t.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",r??"multipart/form-data");const n=[];for(const[t,r]of Object.entries(e)){for(const e of Array.isArray(r)?r:[r]){if(typeof e==="string"){n.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const r=e.name||"blob";const s=httpHeaders_createHttpHeaders();s.set("Content-Disposition",`form-data; name="${t}"; filename="${r}"`);s.set("Content-Type",e.type||"application/octet-stream");n.push({headers:s,body:e})}}}t.multipartBody={parts:n}}var qe=n(3669);var Ve=n(1970);const Ge="HTTPS_PROXY";const Ye="HTTP_PROXY";const Je="ALL_PROXY";const We="NO_PROXY";const $e="proxyPolicy";const je=[];let Ke=false;const Xe=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(Ge);const t=getEnvironmentValue(Je);const r=getEnvironmentValue(Ye);return e||t||r}function isBypassed(e,t,r){if(t.length===0){return false}const n=new URL(e).hostname;if(r?.has(n)){return r.get(n)}let s=false;for(const e of t){if(e[0]==="."){if(n.endsWith(e)){s=true}else{if(n.length===e.length-1&&n===e.slice(1)){s=true}}}else{if(n===e){s=true}}}r?.set(n,s);return s}function loadNoProxy(){const e=getEnvironmentValue(We);Ke=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const r=t.protocol?t.protocol+"//":"";return{host:r+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,r){if(e.agent){return}const n=new URL(e.url);const s=n.protocol!=="https:";if(e.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const i=e.headers.toJSON();if(s){if(!t.httpProxyAgent){t.httpProxyAgent=new Ve.HttpProxyAgent(r,{headers:i})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new qe.HttpsProxyAgent(r,{headers:i})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!Ke){je.push(...loadNoProxy())}const r=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const n={};return{name:$e,async sendRequest(e,s){if(!e.proxySettings&&r&&!isBypassed(e.url,t?.customNoProxyList??je,t?.customNoProxyList?undefined:Xe)){setProxyAgentOnRequest(e,n,r)}else if(e.proxySettings){setProxyAgentOnRequest(e,n,getUrlFromProxySettings(e.proxySettings))}return s(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function typeGuards_isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:r}=await e.read();if(t){return}yield r}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return b.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return b.Readable.from(Buffer.from(e))}else if(typeGuards_isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return b.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[r,n]of e){t+=`${r}: ${n}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(typeGuards_isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const r of e){const e=getLength(r);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,r){const n=[bytesEncoding_stringToUint8Array(`--${r}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${r}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const s=getTotalLength(n);if(s){e.headers.set("Content-Length",s)}e.body=await concat(n)}const Ze="multipartPolicy";const et=70;const tt=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>et){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!tt.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Ze,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let r=e.multipartBody.boundary;const n=e.headers.get("Content-Type")??"multipart/mixed";const s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s){throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`)}const[,i,o]=s;if(o&&r&&o!==r){throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`)}r??=o;if(r){assertValidBoundary(r)}else{r=generateBoundary()}e.headers.set("Content-Type",`${i}; boundary=${r}`);await buildRequestBody(e,e.multipartBody.parts,r);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let rt=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!rt){rt=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const nt="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:nt,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!n){return r(t)}if(n.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`)}t.headers.set(n.name,e.credential.key);return r(t)}}}const st="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:st,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!n){return r(t)}const{username:s,password:i}=e.credential;const o=uint8ArrayToString(stringToUint8Array(`${s}:${i}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${o}`);return r(t)}}}const it="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:it,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!n){return r(t)}const s=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}const ot="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:ot,async sendRequest(t,r){ensureSecureConnection(t,e);const n=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!n){return r(t)}const s=await e.credential.getOAuth2Token(n.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${s}`);return r(t)}}}let at;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:r,authSchemes:n,allowInsecureConnection:s}=e;if(r){if(isApiKeyCredential(r)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBasicCredential(r)){t.addPolicy(basicAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isBearerTokenCredential(r)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}else if(isOAuth2TokenCredential(r)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:n,credential:r,allowInsecureConnection:s}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!at){at=createDefaultHttpClient()}return at}function getHeaderValue(e,t){if(e.headers){const r=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(r){return e.headers[r]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:r}=e;if(r===null||r===undefined){return undefined}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return"text/plain; charset=UTF-8"}if(r instanceof Blob){return r.type||"application/octet-stream"}if(isBinaryBody(r)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const r=e.dispositionType??"form-data";let n=r;if(e.name){n+=`; name=${escapeDispositionField(e.name)}`}let s=undefined;if(e.filename){s=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){s=t}}if(s){n+=`; filename=${escapeDispositionField(s)}`}return n}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const r=getContentDisposition(e);const n=createHttpHeaders(e.headers??{});if(t){n.set("content-type",t)}if(r){n.set("content-disposition",r)}const s=normalizeBody(e.body,t);return{headers:n,body:s}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,r,n={},s){const i=s??getCachedDefaultHttpsClient();const o=buildPipelineRequest(e,t,n);try{const e=await r.sendRequest(i,o);const t=e.headers.toJSON();const s=e.readableStreamBody??e.browserStreamBody;const a=n.responseAsStream||s!==undefined?undefined:getResponseBody(e);const c=s??a;if(n?.onResponse){n.onResponse({...e,request:o,rawHeaders:t,parsedBody:a})}return{request:o,headers:t,status:`${e.status}`,body:c}}catch(e){if(isRestError(e)&&e.response&&n.onResponse){const{response:t}=e;const r=t.headers.toJSON();n?.onResponse({...t,request:o,rawHeaders:r},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(e===undefined){return undefined}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(isBlob(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,r={}){const n=getRequestContentType(r);const{body:s,multipartBody:i}=getRequestBody(r.body,n);const o=createHttpHeaders({...r.headers?r.headers:{},accept:r.accept??r.headers?.accept??"application/json",...n&&{"content-type":n}});return createPipelineRequest({url:t,method:e,body:s,multipartBody:i,headers:o,allowInsecureConnection:r.allowInsecureConnection,abortSignal:r.abortSignal,onUploadProgress:r.onUploadProgress,onDownloadProgress:r.onDownloadProgress,timeout:r.timeout,enableBrowserStreams:true,streamResponseStatusCodes:r.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isBlob(e)){return{body:e}}if(isReadableStream(e)||typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const r=t.split(";")[0];switch(r){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const r=t.split(";")[0];const n=e.bodyAsText??"";if(r==="text/plain"){return String(n)}try{return n?JSON.parse(n):undefined}catch(t){if(r==="application/json"){throw createParseError(e,t)}return String(n)}}function createParseError(e,t){const r=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const n=t.code??RestError.PARSE_ERROR;return new RestError(r,{code:n,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const r=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;r.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:n,httpClient:s}=t;const i=t.endpoint??e;const client=(e,...t)=>{const getUrl=r=>buildRequestUrl(i,e,t,{allowInsecureConnection:n,...r});return{get:(e={})=>buildOperation("GET",getUrl(e),r,e,n,s),post:(e={})=>buildOperation("POST",getUrl(e),r,e,n,s),put:(e={})=>buildOperation("PUT",getUrl(e),r,e,n,s),patch:(e={})=>buildOperation("PATCH",getUrl(e),r,e,n,s),delete:(e={})=>buildOperation("DELETE",getUrl(e),r,e,n,s),head:(e={})=>buildOperation("HEAD",getUrl(e),r,e,n,s),options:(e={})=>buildOperation("OPTIONS",getUrl(e),r,e,n,s),trace:(e={})=>buildOperation("TRACE",getUrl(e),r,e,n,s)}};return{path:client,pathUnchecked:client,pipeline:r}}function buildOperation(e,t,r,n,s,i){s=n.allowInsecureConnection??s;return{then:function(o,a){return sendRequest(e,t,r,{...n,allowInsecureConnection:s},i).then(o,a)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,r,{...n,allowInsecureConnection:s,responseAsStream:true},i)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const r=typeof e==="string"?t:e;const n=r.body?.error??r.body;const s=typeof e==="string"?e:n?.message??`Unexpected status code: ${r.status}`;return new RestError(s,{statusCode:statusCodeToNumber(r.status),code:n?.code,request:r.request,response:toPipelineResponse(r)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const ct=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const At=ct.logger;function esm_setLogLevel(e){ct.setLogLevel(e)}function esm_getLogLevel(){return ct.getLogLevel()}function esm_createClientLogger(e){return ct.createClientLogger(e)}const ut=esm_createClientLogger("core-rest-pipeline");const dt="agentPolicy";function agentPolicy_agentPolicy(e){return{name:dt,sendRequest:async(t,r)=>{if(!t.agent){t.agent=e}return r(t)}}}const pt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:pt,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const mt="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const ht="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:ht,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ft="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:ft,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const yt="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:yt,sendRequest:async(t,r)=>{if(!t.tlsSettings){t.tlsSettings=e}return r(t)}}}const Ct=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:ut.info,...e})}const Et=Be;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if(j&&j.versions){const t=`${W.type()} ${W.release()}; ${W.arch()}`;const r=j.versions;if(r.bun){e.set("Bun",`${r.bun} (${t})`)}else if(r.deno){e.set("Deno",`${r.deno} (${t})`)}else if(r.node){e.set("Node",`${r.node} (${t})`)}}}const Bt="1.22.3";const It=3;function userAgent_getUserAgentString(e){const t=[];for(const[r,n]of e){const e=n?`${r}/${n}`:r;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Bt);await util_userAgentPlatform_setPlatformSpecificData(t);const r=userAgent_getUserAgentString(t);const n=e?`${e} ${r}`:r;return n}const Qt=userAgent_getUserAgentHeaderName();const bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:bt,async sendRequest(e,r){if(!e.headers.has(Qt)){e.headers.set(Qt,await t)}return r(e)}}}var St=n(7598);async function computeSha256Hmac(e,t,r){const n=Buffer.from(e,"base64");return createHmac("sha256",n).update(t).digest(r)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=t??{};return new Promise(((t,i)=>{function rejectOnAbort(){i(new AbortError_AbortError(s??"The operation was aborted."))}function removeListeners(){n?.removeEventListener("abort",onAbort)}function onAbort(){r?.();removeListeners();rejectOnAbort()}if(n?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();i(e)}))}catch(e){i(e)}n?.addEventListener("abort",onAbort)}))}const wt="The delay was aborted.";function delay_delay(e,t){let r;const{abortSignal:n,abortErrorMsg:s}=t??{};return createAbortablePromise((t=>{r=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??wt})}function delay_calculateRetryDelay(e,t){const r=t.retryDelayInMs*Math.pow(2,e);const n=Math.min(t.maxRetryDelayInMs,r);const s=n/2+getRandomIntegerInclusive(0,n/2);return{retryAfterInMs:s}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,r){return tspRuntime.computeSha256Hmac(e,t,r)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const Nt=Me;const Rt=Ue;const xt=Fe;const vt=Oe;const Dt=Oe;const kt=He;const Tt=_e;const Pt=Le;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const Mt={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Lt=Symbol("rawContent");function hasRawContent(e){return typeof e[Lt]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[Lt]()}else{return e}}function createFileFromStream(e,t,r={}){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:r.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[Lt]:e}}function createFile(e,t,r={}){if(isNodeLike){return{...Mt,type:r.type??"",lastModified:r.lastModified??(new Date).getTime(),webkitRelativePath:r.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[Lt]:()=>e}}else{return new File([toArrayBuffer(e)],t,r)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const Ft=Ze;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(t,r)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,r)}}}const Ut=pt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const Ht=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const _t=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const zt="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:zt,async sendRequest(t,r){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return r(t)}}}const qt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const Vt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Gt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(Gt.span,e.span)}if(e.namespace){t=t.setValue(Gt.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const r=new TracingContextImpl(this);r._contextMap.set(e,t);return r}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var Yt=n(8914);const Jt=Yt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...r){return t(...r)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!Jt.instrumenterImplementation){Jt.instrumenterImplementation=createDefaultInstrumenter()}return Jt.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:r,packageVersion:n}=e;function startSpan(e,s,i){const o=getInstrumenter().startSpan(e,{...i,packageName:r,packageVersion:n,tracingContext:s?.tracingOptions?.tracingContext});let a=o.tracingContext;const c=o.span;if(!a.getValue(Gt.namespace)){a=a.setValue(Gt.namespace,t)}c.setAttribute("az.namespace",a.getValue(Gt.namespace));const l=Object.assign({},s,{tracingOptions:{...s?.tracingOptions,tracingContext:a}});return{span:c,updatedOptions:l}}async function withSpan(e,t,r,n){const{span:s,updatedOptions:i}=startSpan(e,t,n);try{const e=await withContext(i.tracingOptions.tracingContext,(()=>Promise.resolve(r(i,s))));s.setStatus({status:"success"});return e}catch(e){s.setStatus({status:"error",error:e});throw e}finally{s.end()}}function withContext(e,t,...r){return getInstrumenter().withContext(e,t,...r)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Wt=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const $t="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const r=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const n=tryCreateTracingClient();return{name:$t,async sendRequest(e,s){if(!n){return s(e)}const i=await t;const o={"http.url":r.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":i,requestId:e.requestId};if(i){o["http.user_agent"]=i}const{span:a,tracingContext:c}=tryCreateSpan(n,e,o)??{};if(!a||!c){return s(e)}try{const t=await n.withContext(c,s,e);tryProcessResponse(a,t);return t}catch(e){tryProcessError(a,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Bt})}catch(e){ut.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,r){try{const{span:n,updatedOptions:s}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return undefined}const i=e.createRequestHeaders(s.tracingOptions.tracingContext);for(const[e,r]of Object.entries(i)){t.headers.set(e,r)}return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(e){ut.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const r=t.headers.get("x-ms-request-id");if(r){e.setAttribute("serviceRequestId",r)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){ut.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let r=true;function cleanup(){if(r){e.removeEventListener("abort",listener);r=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const jt="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:jt,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:r,cleanup:n}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=r;try{return await t(e)}finally{n?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(Dt){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(Dt){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:r,cleanup:n}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=r;return await e.sendRequest(t)}finally{n?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const Kt=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Xt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Zt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const er=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:er,...t})}const tr={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,r){async function tryGetAccessToken(){if(Date.now()e.getToken(t,a);r=beginRefresh(tryGetAccessToken,i.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then((e=>{r=null;n=e;s=a.tenantId;return n})).catch((e=>{r=null;n=null;s=undefined;throw e}))}return r}return async(e,t)=>{const r=Boolean(t.claims);const i=s!==t.tenantId;if(r){n=null}const a=i||r||o.mustRefresh;if(a){return refresh(e,t)}if(o.shouldRefresh){refresh(e,t)}return n}}const rr="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:true};const i=await r(t,s);if(i){e.request.headers.set("Authorization",`Bearer ${i.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:r}=e;const n=await e.getAccessToken(r,{enableCae:true,claims:t});if(!n){return false}e.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:r,challengeCallbacks:n}=e;const s=e.logger||ut;const i={authorizeRequest:n?.authorizeRequest?.bind(n)??defaultAuthorizeRequest,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)};const o=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:rr,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await i.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:o,logger:s});let n;let a;let c;[n,a]=await trySendRequest(e,t);if(isChallengeResponse(n)){let l=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(l){let i;try{i=atob(l)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`);return n}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(c){[n,a]=await trySendRequest(e,t)}}else if(i.authorizeRequestOnChallenge){c=await i.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:e,response:n,getAccessToken:o,logger:s});if(c){[n,a]=await trySendRequest(e,t)}if(isChallengeResponse(n)){l=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(l){let i;try{i=atob(l)}catch(e){s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`);return n}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:n,request:e,getAccessToken:o,logger:s},i);if(c){[n,a]=await trySendRequest(e,t)}}}}}if(a){throw a}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const r=/(\w+)="([^"]*)"/g;const n=[];let s;while((s=t.exec(e))!==null){const e=s[1];const t=s[2];const i={};let o;while((o=r.exec(t))!==null){i[o[1]]=o[2]}n.push({scheme:e,params:i})}return n}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const nr="auxiliaryAuthenticationHeaderPolicy";const sr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:r,request:n}=e;const s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(t,s))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:r}=e;const n=e.logger||coreLogger;const s=new WeakMap;return{name:nr,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){n.info(`${nr} header will not be set due to empty credentials.`);return i(e)}const o=[];for(const i of t){let t=s.get(i);if(!t){t=createTokenCycler(i);s.set(i,t)}o.push(sendAuthorizeRequest({scopes:Array.isArray(r)?r:[r],request:e,getAccessToken:t,logger:n}))}const a=(await Promise.all(o)).filter((e=>Boolean(e)));if(a.length===0){n.warning(`None of the auxiliary tokens are valid. ${sr} header will not be set.`);return i(e)}e.headers.set(sr,a.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const ir="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:ir,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===ir))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const or="$";const ar="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return cr.test(e)}const lr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return lr.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const r=e.parsedHeaders;if(e.request.method==="HEAD"){return{...r,body:e.parsedBody}}const n=t&&t.bodyMapper;const s=Boolean(n?.nullable);const i=n?.type.name;if(i==="Stream"){return{...r,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const o=i==="Composite"&&n.type.modelProperties||{};const a=Object.keys(o).some((e=>o[e].serializedName===""));if(i==="Sequence"||a){const t=e.parsedBody??[];for(const r of Object.keys(o)){if(o[r].serializedName){t[r]=e.parsedBody?.[r]}}if(r){for(const e of Object.keys(r)){t[e]=r[e]}}return s&&!e.parsedBody&&!r&&Object.getOwnPropertyNames(o).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:isPrimitiveBody(e.parsedBody,i)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,r){const failValidation=(e,n)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${n}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:r,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:i,MaxItems:o,MaxLength:a,MinItems:c,MinLength:l,MultipleOf:A,Pattern:u,UniqueItems:d}=e.constraints;if(r!==undefined&&t>=r){failValidation("ExclusiveMaximum",r)}if(n!==undefined&&t<=n){failValidation("ExclusiveMinimum",n)}if(s!==undefined&&t>s){failValidation("InclusiveMaximum",s)}if(i!==undefined&&to){failValidation("MaxItems",o)}if(a!==undefined&&t.length>a){failValidation("MaxLength",a)}if(c!==undefined&&t.lengthr.indexOf(e)!==t))){failValidation("UniqueItems",d)}}}serialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar}};let i={};const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Sequence$/i)!==null){i=[]}if(e.isConstant){t=e.defaultValue}const{required:a,nullable:c}=e;if(a&&c&&t===undefined){throw new Error(`${r} cannot be undefined.`)}if(a&&!c&&(t===undefined||t===null)){throw new Error(`${r} cannot be null or undefined.`)}if(!a&&c===false&&t===null){throw new Error(`${r} cannot be null.`)}if(t===undefined||t===null){i=t}else{if(o.match(/^any$/i)!==null){i=t}else if(o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){i=serializeBasicTypes(o,r,t)}else if(o.match(/^Enum$/i)!==null){const n=e;i=serializeEnumType(r,n.type.allowedValues,t)}else if(o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){i=serializeDateTypes(o,t,r)}else if(o.match(/^ByteArray$/i)!==null){i=serializeByteArrayType(r,t)}else if(o.match(/^Base64Url$/i)!==null){i=serializeBase64UrlType(r,t)}else if(o.match(/^Sequence$/i)!==null){i=serializeSequenceType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Dictionary$/i)!==null){i=serializeDictionaryType(this,e,t,r,Boolean(this.isXML),s)}else if(o.match(/^Composite$/i)!==null){i=serializeCompositeType(this,e,t,r,Boolean(this.isXML),s)}}return i}deserialize(e,t,r,n={xml:{}}){const s={xml:{rootName:n.xml.rootName??"",includeRoot:n.xml.includeRoot??false,xmlCharKey:n.xml.xmlCharKey??ar},ignoreUnknownProperties:n.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let i;const o=e.type.name;if(!r){r=e.serializedName}if(o.match(/^Composite$/i)!==null){i=deserializeCompositeType(this,e,t,r,s)}else{if(this.isXML){const e=s.xml.xmlCharKey;if(t[or]!==undefined&&t[e]!==undefined){t=t[e]}}if(o.match(/^Number$/i)!==null){i=parseFloat(t);if(isNaN(i)){i=t}}else if(o.match(/^Boolean$/i)!==null){if(t==="true"){i=true}else if(t==="false"){i=false}else{i=t}}else if(o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){i=t}else if(o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){i=new Date(t)}else if(o.match(/^UnixTime$/i)!==null){i=unixTimeToDate(t)}else if(o.match(/^ByteArray$/i)!==null){i=decodeString(t)}else if(o.match(/^Base64Url$/i)!==null){i=base64UrlToByteArray(t)}else if(o.match(/^Sequence$/i)!==null){i=deserializeSequenceType(this,e,t,r,s)}else if(o.match(/^Dictionary$/i)!==null){i=deserializeDictionaryType(this,e,t,r,s)}}if(e.isConstant){i=e.defaultValue}return i}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let r="";if(e){const n=e.split(".");for(const e of n){if(e.charAt(e.length-1)==="\\"){r+=e.substr(0,e.length-1)+"."}else{r+=e;t.push(r);r=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error(`${t} with value ${r} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error(`${t} with value "${r}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&isValidUuid(r))){throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error(`${t} with value ${r} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof r;if(e!=="string"&&typeof r.pipe!=="function"&&typeof r.tee!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return r}function serializeEnumType(e,t,r){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const n=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return r}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,r){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,r,n,s,i){if(!Array.isArray(r)){throw new Error(`${n} must be of type Array.`)}let o=t.type.element;if(!o||typeof o!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}.`)}if(o.type.name==="Composite"&&o.type.className){o=e.modelMappers[o.type.className]??o}const a=[];for(let t=0;te!==s));if(a){o[s]=e.serialize(c,r[s],n+'["'+s+'"]',i)}}}return o}return r}function getXmlObjectValue(e,t,r,n){if(!r||!e.xmlNamespace){return t}const s=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const i={[s]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[or]){return t}else{const e={...t};e[or]=i;return e}}const o={};o[n.xml.xmlCharKey]=t;o[or]=i;return o}function isSpecialXmlProperty(e,t){return[or,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,r,n,s){const i=s.xml.xmlCharKey??ar;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,r,"serializedName")}const o=resolveModelProperties(e,t,n);let a={};const c=[];for(const l of Object.keys(o)){const A=o[l];const u=splitSerializeName(o[l].serializedName);c.push(u[0]);const{serializedName:d,xmlName:p,xmlElementName:m}=A;let h=n;if(d!==""&&d!==undefined){h=n+"."+d}const g=A.headerCollectionPrefix;if(g){const t={};for(const n of Object.keys(r)){if(n.startsWith(g)){t[n.substring(g.length)]=e.deserialize(A.type.value,r[n],h,s)}c.push(n)}a[l]=t}else if(e.isXML){if(A.xmlIsAttribute&&r[or]){a[l]=e.deserialize(A,r[or][p],h,s)}else if(A.xmlIsMsText){if(r[i]!==undefined){a[l]=r[i]}else if(typeof r==="string"){a[l]=r}}else{const t=m||p||d;if(A.xmlIsWrapped){const t=r[p];const n=t?.[m]??[];a[l]=e.deserialize(A,n,h,s);c.push(p)}else{const n=r[t];a[l]=e.deserialize(A,n,h,s);c.push(t)}}}else{let n;let i=r;let c=0;for(const e of u){if(!i)break;c++;i=i[e]}if(i===null&&c{for(const t in o){const r=splitSerializeName(o[t].serializedName);if(r[0]===e){return false}}return true};for(const t in r){if(isAdditionalProperty(t)){a[t]=e.deserialize(l,r[t],n+'["'+t+'"]',s)}}}else if(r&&!s.ignoreUnknownProperties){for(const e of Object.keys(r)){if(a[e]===undefined&&!c.includes(e)&&!isSpecialXmlProperty(e,s)){a[e]=r[e]}}}return a}function deserializeDictionaryType(e,t,r,n,s){const i=t.type.value;if(!i||typeof i!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){const t={};for(const o of Object.keys(r)){t[o]=e.deserialize(i,r[o],n,s)}return t}return r}function deserializeSequenceType(e,t,r,n,s){let i=t.type.element;if(!i||typeof i!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${n}`)}if(r){if(!Array.isArray(r)){r=[r]}if(i.type.name==="Composite"&&i.type.className){i=e.modelMappers[i.type.className]??i}const t=[];for(let o=0;o0){if(s.isConstant){i=s.defaultValue}else{let t=getPropertyFromParameterPath(e,n);if(!t.propertyFound&&r){t=getPropertyFromParameterPath(r,n)}let o=false;if(!t.propertyFound){o=s.required||n[0]==="options"&&n.length===2}i=o?s.defaultValue:t.propertyValue}}}else{if(s.required){i={}}for(const t in n){const o=s.type.modelProperties[t];const a=n[t];const c=getOperationArgumentValueFromParameter(e,{parameterPath:a,mapper:o},r);if(c!==undefined){if(!i){i={}}i[t]=c}}}return i}function getPropertyFromParameterPath(e,t){const r={propertyFound:false};let n=0;for(;n=200&&r.status<300}if(c.headersMapper){i.parsedHeaders=a.serializer.deserialize(c.headersMapper,i.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return i}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,r,n){const s=200<=e.status&&e.status<300;const i=isOperationSpecEmpty(t)?s:!!r;if(i){if(r){if(!r.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const o=r??t.responses.default;const a=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const c=new Wt(a,{statusCode:e.status,request:e.request,response:e});if(!o&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw c}const l=o?.bodyMapper;const A=o?.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let s;if(l){let e=r;if(t.isXML&&l.type.name===Ar.Sequence){e=[];const t=l.xmlElementName;if(typeof r==="object"&&t){e=r[t]}}s=t.serializer.deserialize(l,e,"error.response.parsedBody",n)}const i=r.error||s||r;c.code=i.code;if(i.message){c.message=i.message}if(l){c.response.parsedBody=s}}if(e.headers&&A){c.response.parsedHeaders=t.serializer.deserialize(A,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){c.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:false}}async function parse(e,t,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){const i=r.bodyAsText;const o=r.headers.get("Content-Type")||"";const a=!o?[]:o.split(";").map((e=>e.toLowerCase()));try{if(a.length===0||a.some((t=>e.indexOf(t)!==-1))){r.parsedBody=JSON.parse(i);return r}else if(a.some((e=>t.indexOf(e)!==-1))){if(!s){throw new Error("Parsing XML not supported.")}const e=await s(i,n.xml);r.parsedBody=e;return r}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`;const n=e.code||Wt.PARSE_ERROR;const s=new Wt(t,{code:n,statusCode:r.status,request:r.request,response:r});throw s}}return r}function getStreamingResponseStatusCodes(e){const t=new Set;for(const r in e.responses){const n=e.responses[r];if(n.bodyMapper&&n.bodyMapper.type.name===Ar.Stream){t.add(Number(r))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:r}=e;let n;if(typeof t==="string"){n=t}else if(Array.isArray(t)){n=t.join(".")}else{n=r.serializedName}return n}const fr="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:fr,async sendRequest(e,r){const n=getOperationRequestInfo(e);const s=n?.operationSpec;const i=n?.operationArguments;if(s&&i){serializeHeaders(e,i,s);serializeRequestBody(e,i,s,t)}return r(e)}}}function serializeHeaders(e,t,r){if(r.headerParameters){for(const n of r.headerParameters){let s=getOperationArgumentValueFromParameter(t,n);if(s!==null&&s!==undefined||n.mapper.required){s=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n));const t=n.mapper.headerCollectionPrefix;if(t){for(const r of Object.keys(s)){e.headers.set(t+r,s[r])}}else{e.headers.set(n.mapper.serializedName||getPathStringFromParameter(n),s)}}}}const n=t.options?.requestOptions?.customHeaders;if(n){for(const t of Object.keys(n)){e.headers.set(t,n[t])}}}function serializeRequestBody(e,t,r,n=function(){throw new Error("XML serialization unsupported!")}){const s=t.options?.serializerOptions;const i={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??false,xmlCharKey:s?.xml.xmlCharKey??ar}};const o=i.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,r.requestBody);const s=r.requestBody.mapper;const{required:a,serializedName:c,xmlName:l,xmlElementName:A,xmlNamespace:u,xmlNamespacePrefix:d,nullable:p}=s;const m=s.type.name;try{if(e.body!==undefined&&e.body!==null||p&&e.body===null||a){const t=getPathStringFromParameter(r.requestBody);e.body=r.serializer.serialize(s,e.body,t,i);const a=m===Ar.Stream;if(r.isXML){const t=d?`xmlns:${d}`:"xmlns";const r=getXmlValueWithNamespace(u,t,m,e.body,i);if(m===Ar.Sequence){e.body=n(prepareXMLRootList(r,A||l||c,t,u),{rootName:l||c,xmlCharKey:o})}else if(!a){e.body=n(r,{rootName:l||c,xmlCharKey:o})}}else if(m===Ar.String&&(r.contentType?.match("text/plain")||r.mediaType==="text")){return}else if(!a){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,undefined," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){e.formData={};for(const n of r.formDataParameters){const s=getOperationArgumentValueFromParameter(t,n);if(s!==undefined&&s!==null){const t=n.mapper.serializedName||getPathStringFromParameter(n);e.formData[t]=r.serializer.serialize(n.mapper,s,getPathStringFromParameter(n),i)}}}}function getXmlValueWithNamespace(e,t,r,n,s){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};r[s.xml.xmlCharKey]=n;r[or]={[t]:e};return r}return n}function prepareXMLRootList(e,t,r,n){if(!Array.isArray(e)){e=[e]}if(!r||!n){return{[t]:e}}const s={[t]:e};s[or]={[r]:n};return s}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let yr;function getCachedDefaultHttpClient(){if(!yr){yr=esm_defaultHttpClient_createDefaultHttpClient()}return yr}const Cr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,r,n){const s=calculateUrlReplacements(t,r,n);let i=false;let o=replaceAll(e,s);if(t.path){let e=replaceAll(t.path,s);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){o=e;i=true}else{o=appendPath(o,e)}}const{queryParams:a,sequenceParams:c}=calculateQueryParameters(t,r,n);o=appendQueryParams(o,a,c,i);return o}function replaceAll(e,t){let r=e;for(const[e,n]of t){r=r.split(e).join(n)}return r}function calculateUrlReplacements(e,t,r){const n=new Map;if(e.urlParameters?.length){for(const s of e.urlParameters){let i=getOperationArgumentValueFromParameter(t,s,r);const o=getPathStringFromParameter(s);i=e.serializer.serialize(s.mapper,i,o);if(!s.skipEncoding){i=encodeURIComponent(i)}n.set(`{${s.mapper.serializedName||o}}`,i)}}return n}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const r=new URL(e);let n=r.pathname;if(!n.endsWith("/")){n=`${n}/`}if(t.startsWith("/")){t=t.substring(1)}const s=t.indexOf("?");if(s!==-1){const e=t.substring(0,s);const i=t.substring(s+1);n=n+e;if(i){r.search=r.search?`${r.search}&${i}`:i}}else{n=n+t}r.pathname=n;return r.toString()}function calculateQueryParameters(e,t,r){const n=new Map;const s=new Set;if(e.queryParameters?.length){for(const i of e.queryParameters){if(i.mapper.type.name==="Sequence"&&i.mapper.serializedName){s.add(i.mapper.serializedName)}let o=getOperationArgumentValueFromParameter(t,i,r);if(o!==undefined&&o!==null||i.mapper.required){o=e.serializer.serialize(i.mapper,o,getPathStringFromParameter(i));const t=i.collectionFormat?Cr[i.collectionFormat]:"";if(Array.isArray(o)){o=o.map((e=>{if(e===null||e===undefined){return""}return e}))}if(i.collectionFormat==="Multi"&&o.length===0){continue}else if(Array.isArray(o)&&(i.collectionFormat==="SSV"||i.collectionFormat==="TSV")){o=o.join(t)}if(!i.skipEncoding){if(Array.isArray(o)){o=o.map((e=>encodeURIComponent(e)))}else{o=encodeURIComponent(o)}}if(Array.isArray(o)&&(i.collectionFormat==="CSV"||i.collectionFormat==="Pipes")){o=o.join(t)}n.set(i.mapper.serializedName||getPathStringFromParameter(i),o)}}}return{queryParams:n,sequenceParams:s}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const r=e.split("&");for(const e of r){const[r,n]=e.split("=",2);const s=t.get(r);if(s){if(Array.isArray(s)){s.push(n)}else{t.set(r,[s,n])}}else{t.set(r,n)}}return t}function appendQueryParams(e,t,r,n=false){if(t.size===0){return e}const s=new URL(e);const i=simpleParseQueryParams(s.search);for(const[e,s]of t){const t=i.get(e);if(Array.isArray(t)){if(Array.isArray(s)){t.push(...s);const r=new Set(t);i.set(e,Array.from(r))}else{t.push(s)}}else if(t){if(Array.isArray(s)){s.unshift(t)}else if(r.has(e)){i.set(e,[t,s])}if(!n){i.set(e,s)}}else{i.set(e,s)}}const o=[];for(const[e,t]of i){if(typeof t==="string"){o.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const r of t){o.push(`${e}=${r}`)}}else{o.push(`${e}=${t}`)}}s.search=o.length?`?${o.join("&")}`:"";return s.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:r}of e.additionalPolicies){const e=r==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const r=t.baseUrl||this._endpoint;if(!r){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const n=getRequestUrl(r,t,e,this);const s=esm_pipelineRequest_createPipelineRequest({url:n});s.method=t.httpMethod;const i=getOperationRequestInfo(s);i.operationSpec=t;i.operationArguments=e;const o=t.contentType||this._requestContentType;if(o&&t.requestBody){s.headers.set("Content-Type",o)}const a=e.options;if(a){const e=a.requestOptions;if(e){if(e.timeout){s.timeout=e.timeout}if(e.onUploadProgress){s.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){s.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){i.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){s.allowInsecureConnection=true}}if(a.abortSignal){s.abortSignal=a.abortSignal}if(a.tracingOptions){s.tracingOptions=a.tracingOptions}}if(this._allowInsecureConnection){s.allowInsecureConnection=true}if(s.streamResponseStatusCodes===undefined){s.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(s);const r=flattenResponse(e,t.responses[e.status]);if(a?.onResponse){a.onResponse(e,r)}return r}catch(e){if(typeof e==="object"&&e?.response){const r=e.response;const n=flattenResponse(r,t.responses[e.statusCode]||t.responses["default"]);e.details=n;if(a?.onResponse){a.onResponse(r,n,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const r=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:r})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const r=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return r.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:r}=e;const n=e.logger||coreClientLogger;const s=r.headers.get("WWW-Authenticate");if(!s){n.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const i=parseCAEChallenge(s)||[];const o=i.find((e=>e.claims));if(!o){n.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const a=await e.getAccessToken(o.scope?[o.scope]:t,{claims:decodeStringToString(o.claims)});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}const Br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const r=getChallenge(e.response);if(r){const n=parseChallenge(r);const s=buildScopes(e,n);const i=extractTenantId(n);if(!i){return false}const o=await e.getAccessToken(s,{...t,tenantId:i});if(!o){return false}e.request.headers.set(Br.HeaderConstants.AUTHORIZATION,`${o.tokenType??"Bearer"} ${o.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const r=t.pathname.split("/");const n=r[1];if(n&&isUuid(n)){return n}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const r=new URL(t.resource_id);r.pathname=Br.DefaultScope;let n=r.toString();if(n==="https://disk.azure.com/.default"){n="https://disk.azure.com//.default"}return[n]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const r=`${t.trim()} `.split(" ").filter((e=>e));const n=r.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return n.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Ir=Symbol("Original PipelineRequest");const Qr=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const r=e;const n=r[Ir];const s=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=s;return n}else{const r=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:s,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){r[Qr]=t.originalRequest}return r}}function toWebResourceLike(e,t){const r=t?.originalRequest??e;const n={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(n,{get(t,s,i){if(s===Ir){return e}else if(s==="clone"){return()=>toWebResourceLike(toPipelineRequest(n,{originalRequest:r}),{createProxy:true,originalRequest:r})}return Reflect.get(t,s,i)},set(t,r,n,s){if(r==="keepAlive"){e.disableKeepAlive=!n}const i=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof r==="string"&&i.includes(r)){e[r]=n}return Reflect.set(t,r,n,s)}})}else{return n}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let r=0;r{const r=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(r)}}}class Expression{constructor(e,t={}){this.pattern=e;this.separator=t.separator||".";this.segments=this._parse(e);this._hasDeepWildcard=this.segments.some((e=>e.type==="deep-wildcard"));this._hasAttributeCondition=this.segments.some((e=>e.attrName!==undefined));this._hasPositionSelector=this.segments.some((e=>e.position!==undefined))}_parse(e){const t=[];let r=0;let n="";while(r0){const e=this.path[this.path.length-1];e.values=undefined}const n=this.path.length;if(!this.siblingStacks[n]){this.siblingStacks[n]=new Map}const s=this.siblingStacks[n];const i=r?`${r}:${e}`:e;const o=s.get(i)||0;let a=0;for(const e of s.values()){a+=e}s.set(i,o+1);const c={tag:e,position:a,counter:o};if(r!==null&&r!==undefined){c.namespace=r}if(t!==null&&t!==undefined){c.values=t}this.path.push(c)}pop(){if(this.path.length===0){return undefined}const e=this.path.pop();if(this.siblingStacks.length>this.path.length+1){this.siblingStacks.length=this.path.length+1}return e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];if(e!==null&&e!==undefined){t.values=e}}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:undefined}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:undefined}getAttrValue(e){if(this.path.length===0)return undefined;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(this.path.length===0)return false;const t=this.path[this.path.length-1];return t.values!==undefined&&e in t.values}getPosition(){if(this.path.length===0)return-1;return this.path[this.path.length-1].position??0}getCounter(){if(this.path.length===0)return-1;return this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=true){const r=e||this.separator;return this.path.map((e=>{if(t&&e.namespace){return`${e.namespace}:${e.tag}`}return e.tag})).join(r)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[];this.siblingStacks=[]}matches(e){const t=e.segments;if(t.length===0){return false}if(e.hasDeepWildcard()){return this._matchWithDeepWildcard(t)}return this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length){return false}for(let t=0;t=0&&t>=0){const n=e[r];if(n.type==="deep-wildcard"){r--;if(r<0){return true}const n=e[r];let s=false;for(let e=t;e>=0;e--){const i=e===this.path.length-1;if(this._matchSegment(n,this.path[e],i)){t=e-1;r--;s=true;break}}if(!s){return false}}else{const e=t===this.path.length-1;if(!this._matchSegment(n,this.path[t],e)){return false}t--;r--}}return r<0}_matchSegment(e,t,r){if(e.tag!=="*"&&e.tag!==t.tag){return false}if(e.namespace!==undefined){if(e.namespace!=="*"&&e.namespace!==t.namespace){return false}}if(e.attrName!==undefined){if(!r){return false}if(!t.values||!(e.attrName in t.values)){return false}if(e.attrValue!==undefined){const r=t.values[e.attrName];if(String(r)!==String(e.attrValue)){return false}}}if(e.position!==undefined){if(!r){return false}const n=t.counter??0;if(e.position==="first"&&n!==0){return false}else if(e.position==="odd"&&n%2!==1){return false}else if(e.position==="even"&&n%2!==0){return false}else if(e.position==="nth"){if(n!==e.positionValue){return false}}}return true}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e})));this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){const e=this;return new Proxy(e,{get(e,t,r){if(Rr.has(t)){return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. `+`Obtain a writable instance to mutate state.`)}}const n=Reflect.get(e,t,r);if(t==="path"||t==="siblingStacks"){return Object.freeze(Array.isArray(n)?n.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):n)}if(typeof n==="function"){return n.bind(e)}return n},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}const xr="\n";function toXml(e,t){let r="";if(t.format&&t.indentBy.length>0){r=xr}const n=[];if(t.stopNodes&&Array.isArray(t.stopNodes)){for(let e=0;et.maxNestedTags){throw new Error("Maximum nested tags exceeded")}if(!Array.isArray(e)){if(e!==undefined&&e!==null){let r=e.toString();r=replaceEntitiesValue(r,t);return r}return""}for(let a=0;a`;o=false;n.pop();continue}else if(l===t.commentPropName){i+=r+`\x3c!--${c[l][0][t.textNodeName]}--\x3e`;o=true;n.pop();continue}else if(l[0]==="?"){const e=attr_to_str(c[":@"],t,u);const s=l==="?xml"?"":r;let a=c[l][0][t.textNodeName];a=a.length!==0?" "+a:"";i+=s+`<${l}${a}${e}?>`;o=true;n.pop();continue}let d=r;if(d!==""){d+=t.indentBy}const p=attr_to_str(c[":@"],t,u);const m=r+`<${l}${p}`;let h;if(u){h=orderedJs2Xml_getRawContent(c[l],t)}else{h=arrToStr(c[l],t,d,n,s)}if(t.unpairedTags.indexOf(l)!==-1){if(t.suppressUnpairedNode)i+=m+">";else i+=m+"/>"}else if((!h||h.length===0)&&t.suppressEmptyNode){i+=m+"/>"}else if(h&&h.endsWith(">")){i+=m+`>${h}${r}`}else{i+=m+">";if(h&&r!==""&&(h.includes("/>")||h.includes("`}o=true;n.pop()}return i}function extractAttributeValues(e,t){if(!e||t.ignoreAttributes)return null;const r={};let n=false;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const i=s.startsWith(t.attributeNamePrefix)?s.substr(t.attributeNamePrefix.length):s;r[i]=e[s];n=true}return n?r:null}function orderedJs2Xml_getRawContent(e,t){if(!Array.isArray(e)){if(e!==undefined&&e!==null){return e.toString()}return""}let r="";for(let n=0;n`}else{r+=`<${i}${e}>${n}`}}}return r}function attr_to_str_raw(e,t){let r="";if(e&&!t.ignoreAttributes){for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let s=e[n];if(s===true&&t.suppressBooleanAttributes){r+=` ${n.substr(t.attributeNamePrefix.length)}`}else{r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}}}return r}function propName(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities){for(let r=0;r{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}const vr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false,maxNestedTags:100,jPath:true};function Builder(e){this.options=Object.assign({},vr,e);if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){this.options.stopNodes=this.options.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}this.stopNodeExpressions=[];if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){for(let e=0;e\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}const t=new Matcher;return this.j2x(e,0,t).val}};Builder.prototype.j2x=function(e,t,r){let n="";let s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}const i=this.options.jPath?r.toString():r;const o=this.checkStopNode(r);for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(typeof e[a]==="undefined"){if(this.isAttribute(a)){s+=""}}else if(e[a]===null){if(this.isAttribute(a)){s+=""}else if(a===this.options.cdataPropName){s+=""}else if(a[0]==="?"){s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar}}else if(e[a]instanceof Date){s+=this.buildTextValNode(e[a],a,"",t,r)}else if(typeof e[a]!=="object"){const c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,i)){n+=this.buildAttrPairStr(c,""+e[a],o)}else if(!c){if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);s+=this.replaceEntitiesValue(t)}else{r.push(a);const n=this.checkStopNode(r);r.pop();if(n){const r=""+e[a];if(r===""){s+=this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar}else{s+=this.indentate(t)+"<"+a+">"+r+""+e+"${e}`}else if(typeof e==="object"&&e!==null){const n=this.buildRawContent(e);const s=this.buildAttributesForStopNode(e);if(n===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${n}`}}}}else if(typeof n==="object"&&n!==null){const e=this.buildRawContent(n);const s=this.buildAttributesForStopNode(n);if(e===""){t+=`<${r}${s}/>`}else{t+=`<${r}${s}>${e}`}}else{t+=`<${r}>${n}`}}return t};Builder.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const r=e[this.options.attributesGroupName];for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e;const s=r[e];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}else{for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=this.isAttribute(r);if(n){const s=e[r];if(s===true&&this.options.suppressBooleanAttributes){t+=" "+n}else{t+=" "+n+'="'+s+'"'}}}}return t};Builder.prototype.buildObjectNode=function(e,t,r,n){if(e===""){if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}}else{let s=""+e+s}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&i.length===0){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar}else{let s=this.options.tagValueProcessor(t,e);s=this.replaceEntitiesValue(s);if(s===""){return this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar}else{return this.indentate(n)+"<"+t+r+">"+s+"0&&this.options.processEntities){for(let t=0;t"&&e[i]!==" "&&e[i]!=="\t"&&e[i]!=="\n"&&e[i]!=="\r";i++){c+=e[i]}c=c.trim();if(c[c.length-1]==="/"){c=c.substring(0,c.length-1);i--}if(!validateTagName(c)){let t;if(c.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+c+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,i))}const l=readAttributeStr(e,i);if(l===false){return getErrorObject("InvalidAttr","Attributes for '"+c+"' have open quote.",getLineNumberForPosition(e,i))}let A=l.value;i=l.index;if(A[A.length-1]==="/"){const r=i-A.length;A=A.substring(0,A.length-1);const s=validateAttributeString(A,t);if(s===true){n=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,r+s.err.line))}}else if(a){if(!l.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",getLineNumberForPosition(e,i))}else if(A.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,o))}else if(r.length===0){return getErrorObject("InvalidTag","Closing tag '"+c+"' has not been opened.",getLineNumberForPosition(e,o))}else{const t=r.pop();if(c!==t.tagName){let r=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+c+"'.",getLineNumberForPosition(e,o))}if(r.length==0){s=true}}}else{const a=validateAttributeString(A,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,i-A.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,i))}else if(t.unpairedTags.indexOf(c)!==-1){}else{r.push({tagName:c,tagStartPos:o})}n=true}for(i++;i0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const r=t;for(;t5&&n==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"){r--;if(r===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}}return t}const Or='"';const Hr="'";function readAttributeStr(e,t){let r="";let n="";let s=false;for(;t"){if(n===""){s=true;break}}r+=e[t]}if(n!==""){return false}return{value:r,index:t,tagClosed:s}}const _r=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const r=getAllMatches(e,_r);const n={};for(let e=0;e{if(Lr.includes(e)){return"__"+e}return e};const qr={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,r){return e},captureMetaData:false,maxNestedTags:100,strictReservedNames:true,jPath:true,onDangerousProperty:defaultOnDangerousProperty};function validatePropertyName(e,t){if(typeof e!=="string"){return}const r=e.toLowerCase();if(Lr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}if(Fr.some((e=>r===e.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}}function normalizeProcessEntities(e){if(typeof e==="boolean"){return{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}}if(typeof e==="object"&&e!==null){return{enabled:e.enabled!==false,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(e){const t=Object.assign({},qr,e);const r=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of r){if(e){validatePropertyName(e,t)}}if(t.onDangerousProperty===null){t.onDangerousProperty=defaultOnDangerousProperty}t.processEntities=normalizeProcessEntities(t.processEntities);if(t.stopNodes&&Array.isArray(t.stopNodes)){t.stopNodes=t.stopNodes.map((e=>{if(typeof e==="string"&&e.startsWith("*.")){return".."+e.substring(2)}return e}))}return t};let Vr;if(typeof Symbol!=="function"){Vr="@@xmlMetadata"}else{Vr=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]=Object.create(null)}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][Vr]={startIndex:t}}}static getMetaDataSymbol(){return Vr}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e;this.options=e}readDocType(e,t){const r=Object.create(null);let n=0;if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let s=1;let i=false,o=false;let a="";for(;t=this.options.maxEntityCount){throw new Error(`Entity count (${n+1}) exceeds maximum allowed (${this.options.maxEntityCount})`)}const e=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[s]={regx:RegExp(`&${e};`,"g"),val:i};n++}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:r}=this.readElementExp(e,t+1);t=r}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(hasSeq(e,"!--",t))o=true;else throw new Error(`Invalid DOCTYPE`);s++;a=""}else if(e[t]===">"){if(o){if(e[t-1]==="-"&&e[t-2]==="-"){o=false;s--}}else{s--}if(s===0){break}}else if(e[t]==="["){i=true}else{a+=e[t]}}if(s!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);const r=t;while(tthis.options.maxEntitySize){throw new Error(`Entity "${n}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}t--;return[n,s,t]}readNotationExp(e,t){t=skipWhitespace(e,t);const r=t;while(t{while(t1||i.length===1&&!a)){return e}else{const n=Number(r);const a=String(n);if(n===0)return n;if(a.search(/[eE]/)!==-1){if(t.eNotation)return n;else return e}else if(r.indexOf(".")!==-1){if(a==="0")return n;else if(a===o)return n;else if(a===`${s}${o}`)return n;else return e}let c=i?o:r;if(i){return c===a||s+c===a?n:e}else{return c===a||c===s+a?n:e}}}else{return e}}}const Wr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,r){if(!r.eNotation)return e;const n=t.match(Wr);if(n){let s=n[1]||"";const i=n[3].indexOf("e")===-1?"E":"e";const o=n[2];const a=s?e[o.length+1]===i:e[o.length]===i;if(o.length>1&&a)return e;else if(o.length===1&&(n[3].startsWith(`.${i}`)||n[3][0]===i)){return Number(t)}else if(o.length>0){if(r.leadingZeros&&!a){t=(n[1]||"")+n[3];return Number(t)}else return e}else{return Number(t)}}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(e,t,r){const n=t===Infinity;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return n?"Infinity":"-Infinity";case"original":default:return e}}function ignoreAttributes_getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const r of e){if(typeof r==="string"&&t===r){return true}if(r instanceof RegExp&&r.test(t)){return true}}}}return()=>false}function extractRawAttributes(e,t){if(!e)return{};const r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return{};const n={};for(const e in r){if(e.startsWith(t.attributeNamePrefix)){const s=e.substring(t.attributeNamePrefix.length);n[s]=r[e]}else{n[e]=r[e]}}return n}function extractNamespace(e){if(!e||typeof e!=="string")return undefined;const t=e.indexOf(":");if(t!==-1&&t>0){const r=e.substring(0,t);if(r!=="xmlns"){return r}}return undefined}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;this.matcher=new Matcher;this.readonlyMatcher=this.matcher.readOnly();this.isCurrentNodeStopNode=false;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e0){if(!o)e=this.replaceEntitiesValue(e,t,r);const n=this.options.jPath?r.toString():r;const a=this.options.tagValueProcessor(t,e,n,s,i);if(a===null||a===undefined){return e}else if(typeof a!==typeof e||a!==e){return a}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=r+t[1]}}return e}const $r=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,r){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const n=getAllMatches(e,$r);const s=n.length;const i={};const o={};for(let e=0;e0&&typeof t==="object"&&t.updateCurrent){t.updateCurrent(o)}for(let e=0;e",i,"Closing Tag is not closed.");let s=e.substring(i+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");if(e!==-1){s=s.substr(e+1)}}s=transformTagName(this.options.transformTagName,s,"",this.options).tagName;if(r){n=this.saveTextToParentTag(n,r,this.readonlyMatcher)}const o=this.matcher.getCurrentTag();if(s&&this.options.unpairedTags.indexOf(s)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}if(o&&this.options.unpairedTags.indexOf(o)!==-1){this.matcher.pop();this.tagsNodeStack.pop()}this.matcher.pop();this.isCurrentNodeStopNode=false;r=this.tagsNodeStack.pop();n="";i=t}else if(e[i+1]==="?"){let t=readTagExp(e,i,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)}this.addChild(r,e,this.readonlyMatcher,i)}i=t.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(i+4,t-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}i=t}else if(e.substr(i+1,2)==="!D"){const t=s.readDocType(e,i);this.docTypeEntities=t.entities;i=t.i}else if(e.substr(i+1,2)==="!["){const t=findClosingIndex(e,"]]>",i,"CDATA is not closed.")-2;const s=e.substring(i+9,t);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let o=this.parseTextData(s,r.tagname,this.readonlyMatcher,true,false,true,true);if(o==undefined)o="";if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}])}else{r.add(this.options.textNodeName,o)}i=t+2}else{let s=readTagExp(e,i,this.options.removeNSPrefix);if(!s){const t=e.substring(Math.max(0,i-50),Math.min(e.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${t}"`)}let o=s.tagName;const a=s.rawTagName;let c=s.tagExp;let l=s.attrExpPresent;let A=s.closeIndex;({tagName:o,tagExp:c}=transformTagName(this.options.transformTagName,o,c,this.options));if(this.options.strictReservedNames&&(o===this.options.commentPropName||o===this.options.cdataPropName||o===this.options.textNodeName||o===this.options.attributesGroupName)){throw new Error(`Invalid tag name: ${o}`)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,this.readonlyMatcher,false)}}const u=r;if(u&&this.options.unpairedTags.indexOf(u.tagname)!==-1){r=this.tagsNodeStack.pop();this.matcher.pop()}let d=false;if(c.length>0&&c.lastIndexOf("/")===c.length-1){d=true;if(o[o.length-1]==="/"){o=o.substr(0,o.length-1);c=o}else{c=c.substr(0,c.length-1)}l=o!==c}let p=null;let m={};let h=undefined;h=extractNamespace(a);if(o!==t.tagname){this.matcher.push(o,{},h)}if(o!==c&&l){p=this.buildAttributesMap(c,this.matcher,o);if(p){m=extractRawAttributes(p,this.options)}}if(o!==t.tagname){this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher)}const g=i;if(this.isCurrentNodeStopNode){let t="";if(d){i=s.closeIndex}else if(this.options.unpairedTags.indexOf(o)!==-1){i=s.closeIndex}else{const r=this.readStopNodeData(e,a,A+1);if(!r)throw new Error(`Unexpected end of ${a}`);i=r.i;t=r.tagContent}const n=new XmlNode(o);if(p){n[":@"]=p}n.add(this.options.textNodeName,t);this.matcher.pop();this.isCurrentNodeStopNode=false;this.addChild(r,n,this.readonlyMatcher,g)}else{if(d){({tagName:o,tagExp:c}=transformTagName(this.options.transformTagName,o,c,this.options));const e=new XmlNode(o);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);this.matcher.pop();this.isCurrentNodeStopNode=false}else if(this.options.unpairedTags.indexOf(o)!==-1){const e=new XmlNode(o);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);this.matcher.pop();this.isCurrentNodeStopNode=false;i=s.closeIndex;continue}else{const e=new XmlNode(o);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(r);if(p){e[":@"]=p}this.addChild(r,e,this.readonlyMatcher,g);r=e}n="";i=A}}}else{n+=e[i]}}return t.child};function addChild(e,t,r,n){if(!this.options.captureMetaData)n=undefined;const s=this.options.jPath?r.toString():r;const i=this.options.updateTag(t.tagname,s,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,n)}else{e.addChild(t,n)}}function OrderedObjParser_replaceEntitiesValue(e,t,r){const n=this.options.processEntities;if(!n||!n.enabled){return e}if(n.allowedTags){const s=this.options.jPath?r.toString():r;const i=Array.isArray(n.allowedTags)?n.allowedTags.includes(t):n.allowedTags(t,s);if(!i){return e}}if(n.tagFilter){const s=this.options.jPath?r.toString():r;if(!n.tagFilter(t,s)){return e}}for(const t of Object.keys(this.docTypeEntities)){const r=this.docTypeEntities[t];const s=e.match(r.regx);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}const t=e.length;e=e.replace(r.regx,r.val);if(n.maxExpandedLength){this.currentExpandedLength+=e.length-t;if(this.currentExpandedLength>n.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n.maxExpandedLength}`)}}}}for(const t of Object.keys(this.lastEntities)){const r=this.lastEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities){for(const t of Object.keys(this.htmlEntities)){const r=this.htmlEntities[t];const s=e.match(r.regex);if(s){this.entityExpansionCount+=s.length;if(n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`)}}e=e.replace(r.regex,r.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val);return e}function saveTextToParentTag(e,t,r,n){if(e){if(n===undefined)n=t.child.length===0;e=this.parseTextData(e,t.tagname,r,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,n);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t){if(!e||e.length===0)return false;for(let r=0;r",r,`${t} is not closed`);let o=e.substring(r+2,i).trim();if(o===t){s--;if(s===0){return{tagContent:e.substring(n,r),i:i}}}r=i}else if(e[r+1]==="?"){const t=findClosingIndex(e,"?>",r+1,"StopNode is not closed.");r=t}else if(e.substr(r+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",r+3,"StopNode is not closed.");r=t}else if(e.substr(r+1,2)==="!["){const t=findClosingIndex(e,"]]>",r,"StopNode is not closed.")-2;r=t}else{const n=readTagExp(e,r,">");if(n){const e=n&&n.tagName;if(e===t&&n.tagExp[n.tagExp.length-1]!=="/"){s++}r=n.closeIndex}}}}}function parseValue(e,t,r){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,r)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,r){const n=Number.parseInt(e,t);if(n>=0&&n<=1114111){return String.fromCodePoint(n)}else{return r+e+";"}}function transformTagName(e,t,r,n){if(e){const n=e(t);if(r===t){r=n}t=n}t=sanitizeName(t,n);return{tagName:t,tagExp:r}}function sanitizeName(e,t){if(Fr.includes(e)){throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}else if(Lr.includes(e)){return t.onDangerousProperty(e)}return e}const jr=XmlNode.getMetaDataSymbol();function stripAttributePrefix(e,t){if(!e||typeof e!=="object")return{};if(!t)return e;const r={};for(const n in e){if(n.startsWith(t)){const s=n.substring(t.length);r[s]=e[n]}else{r[n]=e[n]}}return r}function prettify(e,t,r,n){return compress(e,t,r,n)}function compress(e,t,r,n){let s;const i={};for(let o=0;o0)i[t.textNodeName]=s}else if(s!==undefined)i[t.textNodeName]=s;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e${i}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const r=zr.validate(e);if(r!==true){throw r}const n=new XMLParser(getParserOptions(t));const s=n.parse(e);if(s["?xml"]){delete s["?xml"]}if(!t.includeRoot){for(const e of Object.keys(s)){const t=s[e];return typeof t==="object"?Object.assign({},t):t}}return s}const Zr=esm_createClientLogger("storage-blob");var en=n(4434);class BuffersStream extends fe.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,r){super(r);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let n=0;for(const e of this.buffers){n+=e.byteLength}if(n=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let r=0;while(re-r){const n=this.byteOffsetInCurrentBuffer+e-r;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,n));this.pushedBytesLength+=e-r;this.byteOffsetInCurrentBuffer=n;r=e;break}else{const e=this.byteOffsetInCurrentBuffer+i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(i===s){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=i;r+=i}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var tn=n(4573);const rn=tn.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,r){this.capacity=e;this._size=0;const n=Math.ceil(e/rn);for(let t=0;t0){e[0]=e[0].slice(i)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new en.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,r,n,s,i){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(r<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${r}`)}if(s<=0){throw new RangeError(`concurrency must be larger than 0, current is ${s}`)}this.bufferSize=t;this.maxBuffers=r;this.readable=e;this.outgoingHandler=n;this.concurrency=s;this.encoding=i}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthr.getReadableStream()),r.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let nn;function cache_getCachedDefaultHttpClient(){if(!nn){nn=esm_defaultHttpClient_createDefaultHttpClient()}return nn}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const sn="1.0.0";const on={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const an={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const cn=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const ln=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_common_escape(r);t.pathname=r;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let r=getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=getValueInConnString(e,"AccountName");i=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!r){n=getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let n=getValueInConnString(e,"AccountName");if(!n){n=getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+padStart(t.toString(),r-e.length,"0");return base64encode(i)}async function utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,sanitizeURL(n))}else{t.set(r,n)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;ei}const o=s0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,an.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,an.CONTENT_ENCODING),this.getHeaderValueToSign(e,an.CONTENT_LENGTH),this.getHeaderValueToSign(e,an.CONTENT_MD5),this.getHeaderValueToSign(e,an.CONTENT_TYPE),this.getHeaderValueToSign(e,an.DATE),this.getHeaderValueToSign(e,an.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,an.IF_MATCH),this.getHeaderValueToSign(e,an.IF_NONE_MATCH),this.getHeaderValueToSign(e,an.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,an.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const r=this.factory.computeHMACSHA256(t);e.headers.set(an.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`);return e}getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let r="";r+=`/${this.factory.accountName}${t}`;const n=getURLQueries(e.url);const s={};if(n){const e=[];for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const r=t.toLowerCase();s[r]=n[t];e.push(r)}}e.sort();for(const t of e){r+=`\n${t}:${decodeURIComponent(s[t])}`}}return r}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const pn=esm_createClientLogger("storage-common");var mn;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(mn||(mn={}));function NewRetryPolicyFactory(e){return{create:(t,r)=>new StorageRetryPolicy(t,r,e)}}const hn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const gn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,r=hn){super(e,t);this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:hn.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):hn.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:hn.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:hn.maxRetryDelayInMs):hn.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:hn.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:hn.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,r){const n=e.clone();const s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||r%2===1;if(!s){n.url=setURLHost(n.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){n.url=setURLParameter(n.url,on.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let i;try{pn.info(`RetryPolicy: =====> Try=${r} ${s?"Primary":"Secondary"}`);i=await this._nextPolicy.sendRequest(n);if(!this.shouldRetry(s,r,i)){return i}t=t||!s&&i.status===404}catch(e){pn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(s,r,i,e)){throw e}}await this.delay(s,r,e.abortSignal);return this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,n){if(t>=this.retryOptions.maxTries){pn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(const e of s){if(n.name.toUpperCase().includes(e)||n.message.toUpperCase().includes(e)||n.code&&n.code.toString().toUpperCase()===e){pn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(r||n){const t=r?r.status:n?n.statusCode:0;if(!e&&t===404){pn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){pn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(r){if(r?.status>=400){const e=r.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(n?.code==="PARSE_ERROR"&&n?.message.startsWith(`Error "Error: Unclosed root tag`)){pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,r){let n=0;if(e){switch(this.retryOptions.retryPolicyType){case mn.EXPONENTIAL:n=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mn.FIXED:n=this.retryOptions.retryDelayInMs;break}}else{n=Math.random()*1e3}pn.info(`RetryPolicy: Delay for ${n}ms`);return utils_common_delay(n,r,gn)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const fn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:fn,async sendRequest(e,t){if(Dt){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,on.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(an.COOKIE);e.headers.delete(an.CONTENT_LENGTH);return t(e)}}}const yn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:yn,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const Cn="storageRetryPolicy";const En={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Bn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const In=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??En.retryPolicyType;const r=e.maxTries??En.maxTries;const n=e.retryDelayInMs??En.retryDelayInMs;const s=e.maxRetryDelayInMs??En.maxRetryDelayInMs;const i=e.secondaryHost??En.secondaryHost;const o=e.tryTimeoutInMs??En.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:s}){if(t>=r){pn.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${r}, no further try.`);return false}if(s){for(const e of Bn){if(s.name.toUpperCase().includes(e)||s.message.toUpperCase().includes(e)||s.code&&s.code.toString().toUpperCase()===e){pn.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(s?.code==="PARSE_ERROR"&&s?.message.startsWith(`Error "Error: Unclosed root tag`)){pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||s){const t=n?.status??s?.statusCode??0;if(!e&&t===404){pn.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){pn.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(an.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,r){let i=0;if(e){switch(t){case mn.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*n,s);break;case mn.FIXED:i=n;break}}else{i=Math.random()*1e3}pn.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:Cn,async sendRequest(e,t){if(o){e.url=setURLParameter(e.url,on.Parameters.TIMEOUT,String(Math.floor(o/1e3)))}const r=e.url;const n=i?setURLHost(e.url,i):undefined;let s=false;let a=1;let c=true;let l;let A;while(c){const i=s||!n||!["GET","HEAD","OPTIONS"].includes(e.method)||a%2===1;e.url=i?r:n;l=undefined;A=undefined;try{pn.info(`RetryPolicy: =====> Try=${a} ${i?"Primary":"Secondary"}`);l=await t(e);s=s||!i&&l.status===404}catch(e){if(esm_restError_isRestError(e)){pn.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);A=e}else{pn.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}c=shouldRetry({isPrimaryRetry:i,attempt:a,response:l,error:A});if(c){await utils_common_delay(calculateDelay(i,a),e.abortSignal,In)}a++}if(l){return l}throw A??new Wt("RetryPolicy failed without known error.")}}}const Qn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(an.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(an.CONTENT_LENGTH,Buffer.byteLength(t.body))}const r=[t.method.toUpperCase(),getHeaderValueToSign(t,an.CONTENT_LANGUAGE),getHeaderValueToSign(t,an.CONTENT_ENCODING),getHeaderValueToSign(t,an.CONTENT_LENGTH),getHeaderValueToSign(t,an.CONTENT_MD5),getHeaderValueToSign(t,an.CONTENT_TYPE),getHeaderValueToSign(t,an.DATE),getHeaderValueToSign(t,an.IF_MODIFIED_SINCE),getHeaderValueToSign(t,an.IF_MATCH),getHeaderValueToSign(t,an.IF_NONE_MATCH),getHeaderValueToSign(t,an.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,an.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const n=(0,St.createHmac)("sha256",e.accountKey).update(r,"utf8").digest("base64");t.headers.set(an.AUTHORIZATION,`SharedKey ${e.accountName}:${n}`)}function getHeaderValueToSign(e,t){const r=e.headers.get(t);if(!r){return""}if(t===an.CONTENT_LENGTH&&r==="0"){return""}return r}function getCanonicalizedHeadersString(e){let t=[];for(const[r,n]of e.headers){if(r.toLowerCase().startsWith(an.PREFIX_FOR_STORAGE)){t.push({name:r,value:n})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,r)=>{if(t>0&&e.name.toLowerCase()===r[t-1].name.toLowerCase()){return false}return true}));let r="";t.forEach((e=>{r+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return r}function getCanonicalizedResourceString(t){const r=getURLPath(t.url)||"/";let n="";n+=`/${e.accountName}${r}`;const s=getURLQueries(t.url);const i={};if(s){const e=[];for(const t in s){if(Object.prototype.hasOwnProperty.call(s,t)){const r=t.toLowerCase();i[r]=s[t];e.push(r)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}return{name:Qn,async sendRequest(e,t){signRequest(e);return t(e)}}}const bn="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:bn,async sendRequest(e,t){try{const r=await t(e);return r}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.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.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,St.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const Sn="12.31.0";const wn="2026-02-06";const Nn=256*1024*1024;const Rn=4e3*1024*1024;const xn=5e4;const vn=8*1024*1024;const Dn=4*1024*1024;const kn=5;const Tn=100*1e3;const Pn="https://storage.azure.com/.default";const Mn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ln={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Fn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const Un="";const On="*";const Hn=1*1024*1024;const _n=256;const zn=4*Hn;const qn="\r\n";const Vn="HTTP/1.1";const Gn="AES256";const Yn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Jn=["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"];const Wn=["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"];const $n="BlobUsesCustomerSpecifiedEncryption";const jn="BlobDoesNotUseCustomerSpecifiedEncryption";const Kn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const r=new Pipeline([],t);r._credential=e;return r}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const r=e.factories.filter((e=>!t.some((t=>t(e)))));if(r.length){const e=r.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(r),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...r}=e.options;let n=e._coreHttpClient;if(!n){n=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=n}let s=e._corePipeline;if(!s){const t=`azsdk-js-azure-storage-blob/${Sn}`;const n=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;s=createClientPipeline({...r,loggingOptions:{additionalAllowedHeaderNames:Jn,additionalAllowedQueryParameters:Wn,logger:Zr.info},userAgentOptions:{userAgentPrefix:n},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});s.removePolicy({phase:"Retry"});s.removePolicy({name:Ut});s.addPolicy(storageCorrectContentLengthPolicy());s.addPolicy(storageRetryPolicy(r.retryOptions),{phase:"Retry"});s.addPolicy(storageRequestFailureDetailsParserPolicy());s.addPolicy(storageBrowserPolicy());const i=processDownlevelPipeline(e);if(i){s.addPolicy(i.wrappedPolicies,i.afterRetry?{afterPhase:"Retry"}:undefined)}const o=getCredentialFromPipeline(e);if(isTokenCredential(o)){s.addPolicy(bearerTokenAuthenticationPolicy({credential:o,scopes:r.audience??Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(o instanceof StorageSharedKeyCredential){s.addPolicy(storageSharedKeyCredentialPolicy({accountName:o.accountName,accountKey:o.accountKey}),{phase:"Sign"})}e._corePipeline=s}return{...r,allowInsecureConnection:true,httpClient:n,pipeline:s}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const r of e.factories){if(isTokenCredential(r.credential)){t=r.credential}else if(isStorageSharedKeyCredential(r)){return r}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const r={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const n={log(e,t){},shouldLog(e){return false}};const s=e.create(r,n);const i=s.constructor.name;return t.some((e=>i.startsWith(e)))}var Xn;(function(e){e["AES256"]="AES256"})(Xn||(Xn={}));var Zn;(function(e){e["Backup"]="backup"})(Zn||(Zn={}));var es;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(es||(es={}));var ts;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ts||(ts={}));const rs={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ns={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const as={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const cs={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const ls={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const As={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const us={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const ds={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ps={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ms={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const hs={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const gs={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const ys={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Cs={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Es={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const Bs={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Is={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Qs={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const bs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Ss={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ws={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Ns={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const Rs={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const xs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const vs={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ds={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ks={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ts={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Ps={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const Ms={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Ls={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Fs={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Us={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Os={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Hs={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const _s={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const zs={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const qs={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const Vs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const Gs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ys={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ii={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Si={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wi={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ni={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ri={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Di={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ki={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ti={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mi={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Fi={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ui={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _i={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const qi={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Gi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $i={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xi={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Zi={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const eo={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ro={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const no={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const so={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const io={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oo={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const ao={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ao={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const uo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const po={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const mo={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ho={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const yo={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Co={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Eo={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bo={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Io={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const So={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wo={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const No={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ro={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Do={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const ko={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const To={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Po={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mo={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qo={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Jo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jo={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const la={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const Aa={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ua={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ha={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Ca={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ba={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qa={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const ba={parameterPath:"blobServiceProperties",mapper:rs};const Sa={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const wa={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Na={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ra={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xa={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const va={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Da={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ka={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ta={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pa={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ma={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const La={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Fa={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Ua={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Oa={parameterPath:"keyInfo",mapper:gs};const Ha={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _a={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const za={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const qa={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Va={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Ga={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Ya={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ja={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Wa={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const $a={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const ja={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ka={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Xa={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Za={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const ec={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const tc={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const rc={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nc={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sc={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const ic={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const oc={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const ac={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const cc={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const lc={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ac={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const uc={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dc={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const pc={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const mc={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const hc={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const gc={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const fc={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const yc={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Cc={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Ec={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Bc={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Ic={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const Qc={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const bc={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Sc={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const wc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Nc={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Rc={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const xc={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const vc={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Dc={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const kc={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Tc={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Pc={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const Mc={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const Lc={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const Fc={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Uc={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oc={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Hc={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const _c={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const zc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const qc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Vc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const Gc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Yc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const Jc={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wc={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const $c={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const jc={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kc={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Xc={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Zc={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const el={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const tl={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const rl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const nl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const sl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const il={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const ol={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const al={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const cl={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const ll={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Al={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ul={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const dl={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const pl={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const ml={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const hl={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const gl={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fl={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const yl={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Cl={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const El={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Bl={parameterPath:["options","queryRequest"],mapper:Os};const Il={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ql={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bl={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Sl={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const wl={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Nl={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const Rl={parameterPath:["options","tags"],mapper:Bs};const xl={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const vl={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Dl={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const kl={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Tl={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Pl={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ml={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ll={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Fl={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ul={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ol={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const Hl={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const _l={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const zl={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ql={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Vl={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Gl={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Yl={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Jl={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wl={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const $l={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const jl={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const Kl={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xl={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Zl={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const eA={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const tA={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const rA={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const nA={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sA={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const iA={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const oA={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const aA={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const cA={parameterPath:"blocks",mapper:Ts};const lA={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const AA={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},dA)}getProperties(e){return this.client.sendOperationRequest({options:e},pA)}getStatistics(e){return this.client.sendOperationRequest({options:e},mA)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},hA)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},gA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},fA)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},yA)}filterBlobs(e){return this.client.sendOperationRequest({options:e},CA)}}const uA=createSerializer(s,true);const dA={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ys},default:{bodyMapper:As,headersMapper:Js}},requestBody:ba,queryParameters:[Na,Ra,xa],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const pA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rs,headersMapper:Ws},default:{bodyMapper:As,headersMapper:$s}},queryParameters:[Na,Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const mA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:us,headersMapper:js},default:{bodyMapper:As,headersMapper:Ks}},queryParameters:[Na,xa,Ta],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const hA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ps,headersMapper:Xs},default:{bodyMapper:As,headersMapper:Zs}},queryParameters:[xa,Pa,Ma,La,Fa,Ua],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const gA={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:ys,headersMapper:ei},default:{bodyMapper:As,headersMapper:ti}},requestBody:Oa,queryParameters:[Na,xa,Ha],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const fA={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ri},default:{bodyMapper:As,headersMapper:ni}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};const yA={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:si},default:{bodyMapper:As,headersMapper:ii}},requestBody:za,queryParameters:[xa,qa],urlParameters:[wa],headerParameters:[Sa,va,Da,Va,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uA};const CA={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:oi},default:{bodyMapper:As,headersMapper:ai}},queryParameters:[xa,La,Fa,Ya,Ja],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:uA};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},BA)}getProperties(e){return this.client.sendOperationRequest({options:e},IA)}delete(e){return this.client.sendOperationRequest({options:e},QA)}setMetadata(e){return this.client.sendOperationRequest({options:e},bA)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},SA)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},wA)}restore(e){return this.client.sendOperationRequest({options:e},NA)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},RA)}submitBatch(e,t,r,n){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:r,options:n},xA)}filterBlobs(e){return this.client.sendOperationRequest({options:e},vA)}acquireLease(e){return this.client.sendOperationRequest({options:e},DA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},kA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},TA)}breakLease(e){return this.client.sendOperationRequest({options:e},PA)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},MA)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},LA)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},FA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},UA)}}const EA=createSerializer(s,true);const BA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ci},default:{bodyMapper:As,headersMapper:li}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,ja,Ka,Xa],isXML:true,serializer:EA};const IA={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ai},default:{bodyMapper:As,headersMapper:ui}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,Za],isXML:true,serializer:EA};const QA={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:di},default:{bodyMapper:As,headersMapper:pi}},queryParameters:[xa,Wa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc],isXML:true,serializer:EA};const bA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:mi},default:{bodyMapper:As,headersMapper:hi}},queryParameters:[xa,Wa,rc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec],isXML:true,serializer:EA};const SA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:gi},default:{bodyMapper:As,headersMapper:fi}},queryParameters:[xa,Wa,nc],urlParameters:[wa],headerParameters:[va,Da,ka,Za],isXML:true,serializer:EA};const wA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:yi},default:{bodyMapper:As,headersMapper:Ci}},requestBody:sc,queryParameters:[xa,Wa,nc],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,ja,Za,ec,tc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:EA};const NA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ei},default:{bodyMapper:As,headersMapper:Bi}},queryParameters:[xa,Wa,ic],urlParameters:[wa],headerParameters:[va,Da,ka,oc,ac],isXML:true,serializer:EA};const RA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ii},default:{bodyMapper:As,headersMapper:Qi}},queryParameters:[xa,Wa,cc],urlParameters:[wa],headerParameters:[va,Da,ka,lc,Ac],isXML:true,serializer:EA};const xA={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:bi},default:{bodyMapper:As,headersMapper:Si}},requestBody:za,queryParameters:[xa,qa,Wa],urlParameters:[wa],headerParameters:[Sa,va,Da,Va,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:EA};const vA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Cs,headersMapper:wi},default:{bodyMapper:As,headersMapper:Ni}},queryParameters:[xa,La,Fa,Ya,Ja,Wa],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const DA={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ri},default:{bodyMapper:As,headersMapper:xi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,dc,pc,mc],isXML:true,serializer:EA};const kA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:vi},default:{bodyMapper:As,headersMapper:Di}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,hc,gc],isXML:true,serializer:EA};const TA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ki},default:{bodyMapper:As,headersMapper:Ti}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,fc],isXML:true,serializer:EA};const PA={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Pi},default:{bodyMapper:As,headersMapper:Mi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,yc,Cc],isXML:true,serializer:EA};const MA={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Li},default:{bodyMapper:As,headersMapper:Fi}},queryParameters:[xa,Wa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,Ec,Bc],isXML:true,serializer:EA};const LA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ss,headersMapper:Ui},default:{bodyMapper:As,headersMapper:Oi}},queryParameters:[xa,Pa,Ma,La,Fa,Wa,Ic,Qc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const FA={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:vs,headersMapper:Hi},default:{bodyMapper:As,headersMapper:_i}},queryParameters:[xa,Pa,Ma,La,Fa,Wa,Ic,Qc,bc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};const UA={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:zi},default:{bodyMapper:As,headersMapper:qi}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:EA};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},HA)}getProperties(e){return this.client.sendOperationRequest({options:e},_A)}delete(e){return this.client.sendOperationRequest({options:e},zA)}undelete(e){return this.client.sendOperationRequest({options:e},qA)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},VA)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},GA)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},YA)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},JA)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},WA)}setMetadata(e){return this.client.sendOperationRequest({options:e},$A)}acquireLease(e){return this.client.sendOperationRequest({options:e},jA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},KA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},XA)}changeLease(e,t,r){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:r},ZA)}breakLease(e){return this.client.sendOperationRequest({options:e},eu)}createSnapshot(e){return this.client.sendOperationRequest({options:e},tu)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ru)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},nu)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},su)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},iu)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ou)}query(e){return this.client.sendOperationRequest({options:e},au)}getTags(e){return this.client.sendOperationRequest({options:e},cu)}setTags(e){return this.client.sendOperationRequest({options:e},lu)}}const OA=createSerializer(s,true);const HA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vi},default:{bodyMapper:As,headersMapper:Gi}},queryParameters:[xa,Sc,wc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Rc,xc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,serializer:OA};const _A={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Yi},default:{bodyMapper:As,headersMapper:Ji}},queryParameters:[xa,Sc,wc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,serializer:OA};const zA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Wi},default:{bodyMapper:As,headersMapper:$i}},queryParameters:[xa,Sc,wc,Fc],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,Lc],isXML:true,serializer:OA};const qA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ji},default:{bodyMapper:As,headersMapper:Ki}},queryParameters:[xa,ic],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const VA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xi},default:{bodyMapper:As,headersMapper:Zi}},queryParameters:[xa,Uc],urlParameters:[wa],headerParameters:[va,Da,ka,Oc,Hc],isXML:true,serializer:OA};const GA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eo},default:{bodyMapper:As,headersMapper:to}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc],isXML:true,serializer:OA};const YA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ro},default:{bodyMapper:As,headersMapper:no}},queryParameters:[xa,Sc,wc,Jc],urlParameters:[wa],headerParameters:[va,Da,ka,tc,Wc,$c],isXML:true,serializer:OA};const JA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:so},default:{bodyMapper:As,headersMapper:io}},queryParameters:[xa,Sc,wc,Jc],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const WA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oo},default:{bodyMapper:As,headersMapper:ao}},queryParameters:[xa,Sc,wc,jc],urlParameters:[wa],headerParameters:[va,Da,ka,Kc],isXML:true,serializer:OA};const $A={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:co},default:{bodyMapper:As,headersMapper:lo}},queryParameters:[xa,rc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc],isXML:true,serializer:OA};const jA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ao},default:{bodyMapper:As,headersMapper:uo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,dc,pc,mc,Tc,Pc,Mc],isXML:true,serializer:OA};const KA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:po},default:{bodyMapper:As,headersMapper:mo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,hc,gc,Tc,Pc,Mc],isXML:true,serializer:OA};const XA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ho},default:{bodyMapper:As,headersMapper:go}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,fc,Tc,Pc,Mc],isXML:true,serializer:OA};const ZA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fo},default:{bodyMapper:As,headersMapper:yo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,gc,Ec,Bc,Tc,Pc,Mc],isXML:true,serializer:OA};const eu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Co},default:{bodyMapper:As,headersMapper:Eo}},queryParameters:[xa,uc],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,yc,Cc,Tc,Pc,Mc],isXML:true,serializer:OA};const tu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Bo},default:{bodyMapper:As,headersMapper:Io}},queryParameters:[xa,Zc],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc],isXML:true,serializer:OA};const ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Qo},default:{bodyMapper:As,headersMapper:bo}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,Tc,Pc,Mc,Wc,$c,el,tl,rl,nl,sl,il,ol,al,cl,ll,Al],isXML:true,serializer:OA};const nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:So},default:{bodyMapper:As,headersMapper:wo}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,$a,Za,ec,tc,Tc,Pc,Mc,Wc,$c,Xc,el,rl,nl,sl,il,al,cl,Al,ul,dl,pl,ml,hl],isXML:true,serializer:OA};const su={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:No},default:{bodyMapper:As,headersMapper:Ro}},queryParameters:[xa,gl,yl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,fl],isXML:true,serializer:OA};const iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xo},202:{headersMapper:xo},default:{bodyMapper:As,headersMapper:vo}},queryParameters:[xa,Sc,wc,Cl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc,tl,El],isXML:true,serializer:OA};const ou={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Do},default:{bodyMapper:As,headersMapper:ko}},queryParameters:[Ra,xa,_a],urlParameters:[wa],headerParameters:[va,Da,ka],isXML:true,serializer:OA};const au={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},default:{bodyMapper:As,headersMapper:Po}},requestBody:Bl,queryParameters:[xa,Sc,Il],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:OA};const cu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Bs,headersMapper:Mo},default:{bodyMapper:As,headersMapper:Lo}},queryParameters:[xa,Sc,wc,Ql],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc,bl,Sl,wl,Nl],isXML:true,serializer:OA};const lu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Fo},default:{bodyMapper:As,headersMapper:Uo}},requestBody:Rl,queryParameters:[xa,wc,Ql],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,Za,Mc,bl,Sl,wl,Nl,xl,vl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:OA};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,r){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:r},uu)}uploadPages(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},du)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},pu)}uploadPagesFromURL(e,t,r,n,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:r,range:n,options:s},mu)}getPageRanges(e){return this.client.sendOperationRequest({options:e},hu)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},gu)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},fu)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},yu)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Cu)}}const Au=createSerializer(s,true);const uu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Oo},default:{bodyMapper:As,headersMapper:Ho}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,Dl,kl,Tl],isXML:true,serializer:Au};const du={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_o},default:{bodyMapper:As,headersMapper:zo}},requestBody:Ml,queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,Va,Za,ec,tc,Nc,vc,Dc,kc,Tc,Pc,Mc,Xc,xl,vl,Pl,Ll,Ul,Ol,Hl,_l],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Au};const pu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qo},default:{bodyMapper:As,headersMapper:Vo}},queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,Nc,vc,Dc,kc,Tc,Pc,Mc,Xc,Ol,Hl,_l,zl],isXML:true,serializer:Au};const mu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:As,headersMapper:Yo}},queryParameters:[xa,Fl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,rl,nl,sl,il,dl,pl,hl,Ul,Ol,Hl,_l,ql,Vl,Gl,Yl],isXML:true,serializer:Au};const hu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:Jo},default:{bodyMapper:As,headersMapper:Wo}},queryParameters:[xa,La,Fa,Sc,Jl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Tc,Pc,Mc],isXML:true,serializer:Au};const gu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ls,headersMapper:$o},default:{bodyMapper:As,headersMapper:jo}},queryParameters:[xa,La,Fa,Sc,Jl,Wl],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Nc,Tc,Pc,Mc,$l],isXML:true,serializer:Au};const fu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ko},default:{bodyMapper:As,headersMapper:Xo}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,kl],isXML:true,serializer:Au};const yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zo},default:{bodyMapper:As,headersMapper:ea}},queryParameters:[Ra,xa],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,Mc,Tl,jl],isXML:true,serializer:Au};const Cu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ta},default:{bodyMapper:As,headersMapper:ra}},queryParameters:[xa,Kl],urlParameters:[wa],headerParameters:[va,Da,ka,ec,tc,Tc,Pc,Mc,al],isXML:true,serializer:Au};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Bu)}appendBlock(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},Iu)}appendBlockFromUrl(e,t,r){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:r},Qu)}seal(e){return this.client.sendOperationRequest({options:e},bu)}}const Eu=createSerializer(s,true);const Bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:na},default:{bodyMapper:As,headersMapper:sa}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,cl,Al,Xl],isXML:true,serializer:Eu};const Iu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ia},default:{bodyMapper:As,headersMapper:oa}},requestBody:Ml,queryParameters:[xa,Zl],urlParameters:[wa],headerParameters:[va,Da,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,xl,vl,Pl,Ll,eA,tA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Eu};const Qu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:aa},default:{bodyMapper:As,headersMapper:ca}},queryParameters:[xa,Zl],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,Xc,rl,nl,sl,il,dl,pl,hl,xl,ql,Gl,eA,tA,rA],isXML:true,serializer:Eu};const bu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:la},default:{bodyMapper:As,headersMapper:Aa}},queryParameters:[xa,nA],urlParameters:[wa],headerParameters:[va,Da,ka,Za,ec,tc,Tc,Pc,tA],isXML:true,serializer:Eu};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,r){return this.client.sendOperationRequest({contentLength:e,body:t,options:r},wu)}putBlobFromUrl(e,t,r){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:r},Nu)}stageBlock(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:r,options:n},Ru)}stageBlockFromURL(e,t,r,n){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:r,options:n},xu)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},vu)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},Du)}}const Su=createSerializer(s,true);const wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ua},default:{bodyMapper:As,headersMapper:da}},requestBody:Ml,queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,xl,vl,Pl,Ll,sA],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Su};const Nu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pa},default:{bodyMapper:As,headersMapper:ma}},queryParameters:[xa],urlParameters:[wa],headerParameters:[va,Da,ka,Va,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Xc,el,rl,nl,sl,il,ol,al,cl,dl,pl,ml,hl,xl,sA,iA],isXML:true,serializer:Su};const Ru={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ha},default:{bodyMapper:As,headersMapper:ga}},requestBody:Ml,queryParameters:[xa,oA,aA],urlParameters:[wa],headerParameters:[va,Da,Va,Za,vc,Dc,kc,Xc,xl,vl,Pl,Ll],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Su};const xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fa},default:{bodyMapper:As,headersMapper:ya}},queryParameters:[xa,oA,aA],urlParameters:[wa],headerParameters:[va,Da,ka,Va,Za,vc,Dc,kc,Xc,rl,nl,sl,il,dl,pl,hl,ql,Gl,rA],isXML:true,serializer:Su};const vu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ca},default:{bodyMapper:As,headersMapper:Ea}},requestBody:cA,queryParameters:[xa,lA],urlParameters:[wa],headerParameters:[Qa,Sa,va,Da,$a,Za,ec,tc,vc,Dc,kc,Tc,Pc,Mc,_c,zc,qc,Vc,Gc,Yc,Wc,$c,Xc,el,cl,Al,xl,vl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Su};const Du={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:Ba},default:{bodyMapper:As,headersMapper:Ia}},queryParameters:[xa,Sc,lA,AA],urlParameters:[wa],headerParameters:[va,Da,ka,Za,Mc],isXML:true,serializer:Su};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const r={requestContentType:"application/json; charset=utf-8"};const n=`azsdk-js-azure-storage-blob/12.30.0`;const s=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;const i={...r,...t,userAgentOptions:{userAgentPrefix:s},endpoint:t.endpoint??t.baseUri??"{url}"};super(i);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const r={...t};if(r.path==="/{containerName}"||r.path==="/{containerName}/{blob}"){r.path=""}return super.sendOperationRequest(e,r)}}function utils_common_escapeURLPath(e){const t=new URL(e);let r=t.pathname;r=r||"/";r=utils_utils_common_escape(r);t.pathname=r;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const r=e.split(";");for(const e of r){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const r=e.split(";");for(const e of r){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=Yn}let r=utils_common_getValueInConnString(e,"BlobEndpoint");r=r.endsWith("/")?r.slice(0,-1):r;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let n="";let s="";let i=Buffer.from("accountKey","base64");let o="";s=utils_common_getValueInConnString(e,"AccountName");i=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!r){n=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}o=utils_common_getValueInConnString(e,"EndpointSuffix");if(!o){throw new Error("Invalid EndpointSuffix in the provided Connection String")}r=`${n}://${s}.blob.${o}`}if(!s){throw new Error("Invalid AccountName in the provided Connection String")}else if(i.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:r,accountName:s,accountKey:i,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let n=utils_common_getValueInConnString(e,"AccountName");if(!n){n=utils_common_getAccountNameFromUrl(r)}if(!r){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const r=new URL(e);let n=r.pathname;n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t;r.pathname=n;return r.toString()}function utils_common_setURLParameter(e,t,r){const n=new URL(e);const s=encodeURIComponent(t);const i=r?encodeURIComponent(r):undefined;const o=n.search===""?"?":n.search;const a=[];for(const e of o.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==s){a.push(e)}}}if(i){a.push(`${s}=${i}`)}n.search=a.length?`?${a.join("&")}`:"";return n.toString()}function utils_common_getURLParameter(e,t){const r=new URL(e);return r.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const r=new URL(e);r.hostname=t;return r.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const r=t.pathname;if(!r){throw new RangeError("Invalid url without valid path.")}let n=t.search||"";n=n.trim();if(n!==""){n=n.startsWith("?")?n:`?${n}`}return`${r}${n}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let r=t.split("&");r=r.filter((e=>{const t=e.indexOf("=");const r=e.lastIndexOf("=");return t>0&&t===r&&rs){e=e.slice(0,s)}const i=e+utils_common_padStart(t.toString(),r-e.length,"0");return utils_common_base64encode(i)}async function utils_utils_common_delay(e,t,r){return new Promise(((n,s)=>{let i;const abortHandler=()=>{if(i!==undefined){clearTimeout(i)}s(r)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}n()};i=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,r=" "){if(String.prototype.padStart){return e.padStart(t,r)}r=r||" ";if(e.length>t){return e}else{t=t-e.length;if(t>r.length){r+=r.repeat(t/r.length)}return r.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[r,n]of e){if(r.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(r,"*****")}else if(r.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(r,utils_common_sanitizeURL(n))}else{t.set(r,n)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let r;try{if(t.hostname.split(".")[1]==="blob"){r=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){r=t.pathname.split("/")[1]}else{r=""}return r}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&Kn.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.blobTagSet.push({key:r,value:n})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const r of e.blobTagSet){t[r.key]=r.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const r in e){const n=r.split("_");const s="or-";if(n[0].startsWith(s)){n[0]=n[0].substring(s.length)}const i={ruleId:n[1],replicationStatus:e[r]};const o=t.findIndex((e=>e.policyId===n[0]));if(o>-1){t[o].rules.push(i)}else{t.push({policyId:n[0],rules:[i]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let r=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)r=e.clearRange;let n=0;let s=0;while(n0&&r.length>0){e.push(`${t}=${r}`)}}}function generateBlobSASQueryParameters(e,t,r){return generateBlobSASQueryParametersInternal(e,t,r).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,r){const n=e.version?e.version:wn;const s=t instanceof StorageSharedKeyCredential?t:undefined;let i;if(s===undefined&&r!==undefined){i=new UserDelegationKeyCredential(r,t)}if(s===undefined&&i===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(n>="2020-12-06"){if(s!==undefined){return generateBlobSASQueryParameters20201206(e,s)}else{if(n>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,i)}else{return generateBlobSASQueryParametersUDK20201206(e,i)}}}if(n>="2018-11-09"){if(s!==undefined){return generateBlobSASQueryParameters20181109(e,s)}else{if(n>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,i)}else{return generateBlobSASQueryParametersUDK20181109(e,i)}}}if(n>="2015-04-05"){if(s!==undefined){return generateBlobSASQueryParameters20150405(e,s)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";if(e.blobName){r="b"}let n;if(e.permissions){if(e.blobName){n=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{n=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const s=[n?n:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const i=t.computeHMACSHA256(s);return{sasQueryParameters:new SASQueryParameters(e.version,i,n,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:s}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:i}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:i}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:i}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let r="c";let n=e.snapshotTime;if(e.blobName){r="b";if(e.snapshotTime){r="bs"}else if(e.versionId){r="bv";n=e.versionId}}let s;if(e.permissions){if(e.blobName){s=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[s?s:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,r,n,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const o=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,o,s,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:i}}function getCanonicalName(e,t,r){const n=[`/blob/${e}/${t}`];if(r){n.push(`/${r}`)}return n.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:wn;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const r=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=r.container}else{this._isContainer=false;this._containerOrBlobOperation=r.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-acquireLease",t,(async r=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:r.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-changeLease",t,(async r=>{const n=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));this._leaseId=e;return n}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 ku.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Un||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 ku.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==Un||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==Un||t.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 ku.withSpan("BlobLeaseClient-breakLease",t,(async r=>{const n={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(n))}))}}class RetriableReadableStream extends fe.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,r,n,s={}){super({highWaterMark:s.highWaterMark});this.getter=t;this.source=e;this.start=r;this.offset=r;this.end=r+n-1;this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0;this.onProgress=s.onProgress;this.options=s;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Dt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,r,n,s={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,n,s)}}const Pu=16;const Mu=new Uint8Array([79,98,106,1]);const Lu="avro.codec";const Fu="avro.schema";class AvroParser{static async readFixedBytes(e,t,r={}){const n=await e.read(t,{abortSignal:r.abortSignal});if(n.length!==t){throw new Error("Hit stream end.")}return n}static async readByte(e,t={}){const r=await AvroParser.readFixedBytes(e,1,t);return r[0]}static async readZigZagLong(e,t={}){let r=0;let n=0;let s,i,o;do{s=await AvroParser.readByte(e,t);i=s&128;r|=(s&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return n}return r>>1^-(r&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const r=await AvroParser.readByte(e,t);if(r===1){return true}else if(r===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const r=await AvroParser.readFixedBytes(e,4,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat32(0,true)}static async readDouble(e,t={}){const r=await AvroParser.readFixedBytes(e,8,t);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.getFloat64(0,true)}static async readBytes(e,t={}){const r=await AvroParser.readLong(e,t);if(r<0){throw new Error("Bytes size was negative.")}return e.read(r,{abortSignal:t.abortSignal})}static async readString(e,t={}){const r=await AvroParser.readBytes(e,t);const n=new TextDecoder;return n.decode(r)}static async readMapPair(e,t,r={}){const n=await AvroParser.readString(e,r);const s=await t(e,r);return{key:n,value:s}}static async readMap(e,t,r={}){const readPairMethod=(e,r={})=>AvroParser.readMapPair(e,t,r);const n=await AvroParser.readArray(e,readPairMethod,r);const s={};for(const e of n){s[e.key]=e.value}return s}static async readArray(e,t,r={}){const n=[];for(let s=await AvroParser.readLong(e,r);s!==0;s=await AvroParser.readLong(e,r)){if(s<0){await AvroParser.readLong(e,r);s=-s}while(s--){const s=await t(e,r);n.push(s)}}return n}}var Uu;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(Uu||(Uu={}));var Ou;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(Ou||(Ou={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case Ou.NULL:case Ou.BOOLEAN:case Ou.INT:case Ou.LONG:case Ou.FLOAT:case Ou.DOUBLE:case Ou.BYTES:case Ou.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case Uu.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const r={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){r[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(r,e.name);case Uu.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case Uu.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case Uu.ARRAY:case Uu.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case Ou.NULL:return AvroParser.readNull();case Ou.BOOLEAN:return AvroParser.readBoolean(e,t);case Ou.INT:return AvroParser.readInt(e,t);case Ou.LONG:return AvroParser.readLong(e,t);case Ou.FLOAT:return AvroParser.readFloat(e,t);case Ou.DOUBLE:return AvroParser.readDouble(e,t);case Ou.BYTES:return AvroParser.readBytes(e,t);case Ou.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._symbols[r]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const r=await AvroParser.readInt(e,t);return this._types[r].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const r={};r["$schema"]=this._name;for(const n in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,n)){r[n]=await this._fields[n].read(e,t)}}return r}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let r=0;r0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,Pu,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}const Hu=e(import.meta.url)("buffer");const _u=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return Hu.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw _u}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const r=this._readable.read(e);if(r){this._position+=r.length;return this.toUint8Array(r)}else{return new Promise(((r,n)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();r(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();n()};const abortHandler=()=>{cleanUp();n(_u)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends fe.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const r=t.$schema;if(typeof r!=="string"){throw Error("Missing schema in avro record.")}switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const r=t.name;if(typeof r!=="string"){throw Error("Invalid name in avro error record.")}const n=t.description;if(typeof n!=="string"){throw Error("Invalid description in avro error record.")}const s=t.position;if(typeof s!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:s,name:r,isFatal:e,description:n})}break;default:throw Error(`Unknown schema ${r} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return Dt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var zu;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(zu||(zu={}));var qu;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(qu||(qu={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=Gn}}var Vu;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(Vu||(Vu={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const r=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:r,_response:{...e._response,parsedBody:{pageRange:t,clearRange:r}}}}const Gu=esm_createClientLogger("core-lro");const Yu=2e3;const Ju=["succeeded","canceled","failed"];function operation_deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:r,isOperationError:n}=e;return e=>{if(n(e)){r.setError(t,e);r.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let r=e;if(r.slice(-1)!=="."){r=r+"."}return r+" "+t}function simplifyError(e){let t=e.message;let r=e.code;let n=e;while(n.innererror){n=n.innererror;r=n.code;t=appendReadableErrorMessage(t,n.message)}return{code:r,message:t}}function processOperationStatus(e){const{state:t,stateProxy:r,status:n,isDone:s,processResult:i,getError:o,response:a,setErrorAsResult:c}=e;switch(n){case"succeeded":{r.setSucceeded(t);break}case"failed":{const e=o===null||o===void 0?void 0:o(a);let n="";if(e){const{code:t,message:r}=simplifyError(e);n=`. ${t}. ${r}`}const s=`The long-running operation has failed${n}`;r.setError(t,new Error(s));r.setFailed(t);Gu.warning(s);break}case"canceled":{r.setCanceled(t);break}}if((s===null||s===void 0?void 0:s(a,t))||s===undefined&&["succeeded","canceled"].concat(c?[]:["failed"]).includes(n)){r.setResult(t,buildResult({response:a,state:t,processResult:i}))}}function buildResult(e){const{processResult:t,response:r,state:n}=e;return t?t(r,n):r}async function operation_initOperation(e){const{init:t,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:i,setErrorAsResult:o}=e;const{operationLocation:a,resourceLocation:c,metadata:l,response:A}=await t();if(a)i===null||i===void 0?void 0:i(a,false);const u={metadata:l,operationLocation:a,resourceLocation:c};Gu.verbose(`LRO: Operation description:`,u);const d=r.initState(u);const p=s({response:A,state:d,operationLocation:a});processOperationStatus({state:d,status:p,stateProxy:r,response:A,setErrorAsResult:o,processResult:n});return d}async function pollOperationHelper(e){const{poll:t,state:r,stateProxy:n,operationLocation:s,getOperationStatus:i,getResourceLocation:o,isOperationError:a,options:c}=e;const l=await t(s,c).catch(setStateError({state:r,stateProxy:n,isOperationError:a}));const A=i(l,r);Gu.verbose(`LRO: Status:\n\tPolling from: ${r.config.operationLocation}\n\tOperation status: ${A}\n\tPolling status: ${Ju.includes(A)?"Stopped":"Running"}`);if(A==="succeeded"){const e=o(l,r);if(e!==undefined){return{response:await t(e).catch(setStateError({state:r,stateProxy:n,isOperationError:a})),status:A}}}return{response:l,status:A}}async function operation_pollOperation(e){const{poll:t,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:A,processResult:u,getError:d,updateState:p,setDelay:m,isDone:h,setErrorAsResult:g}=e;const{operationLocation:f}=r.config;if(f!==undefined){const{response:e,status:y}=await pollOperationHelper({poll:t,getOperationStatus:i,state:r,stateProxy:n,operationLocation:f,getResourceLocation:o,isOperationError:c,options:s});processOperationStatus({status:y,response:e,state:r,stateProxy:n,isDone:h,processResult:u,getError:d,setErrorAsResult:g});if(!Ju.includes(y)){const t=A===null||A===void 0?void 0:A(e);if(t)m(t);const n=a===null||a===void 0?void 0:a(e,r);if(n!==undefined){const e=f!==n;r.config.operationLocation=n;l===null||l===void 0?void 0:l(n,e)}else l===null||l===void 0?void 0:l(f,false)}p===null||p===void 0?void 0:p(r,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:r}=e;return r!==null&&r!==void 0?r:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=e;switch(n){case"PUT":{return s}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:s}default:{return getDefault()}}function getDefault(){switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return s}case"location":default:{return r}}}}function operation_inferLroMode(e){const{rawResponse:t,requestMethod:r,requestPath:n,resourceLocationConfig:s}=e;const i=getOperationLocationHeader(t);const o=getAzureAsyncOperationHeader(t);const a=getOperationLocationPollingUrl({operationLocation:i,azureAsyncOperation:o});const c=getLocationHeader(t);const l=r===null||r===void 0?void 0:r.toLocaleUpperCase();if(a!==undefined){return{mode:"OperationLocation",operationLocation:a,resourceLocation:findResourceLocation({requestMethod:l,location:c,requestPath:n,resourceLocationConfig:s})}}else if(c!==undefined){return{mode:"ResourceLocation",operationLocation:c}}else if(l==="PUT"&&n){return{mode:"Body",operationLocation:n}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:r}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(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:{Gu.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:r}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:r,statusCode:e.statusCode})}function getProvisioningState(e){var t,r;const{properties:n,provisioningState:s}=(t=e.body)!==null&&t!==void 0?t:{};const i=(r=n===null||n===void 0?void 0:n.provisioningState)!==null&&r!==void 0?r:s;return transformStatus({status:i,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function operation_getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){Gu.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){Gu.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const r=e.getTime();if(t{const e=await s.sendInitialRequest();const t=operation_inferLroMode({rawResponse:e.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:n?({flatResponse:e},t)=>n(e,t):({flatResponse:e})=>e,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:i})}function operation_getOperationLocation({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:e},t){var r;const n=(r=t.config.metadata)===null||r===void 0?void 0:r["mode"];switch(n){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}function accessBodyProperty({flatResponse:e,rawResponse:t},r){var n,s;return(n=e===null||e===void 0?void 0:e[r])!==null&&n!==void 0?n:(s=t.body)===null||s===void 0?void 0:s[r]}function operation_getResourceLocation(e,t){const r=accessBodyProperty(e,"resourceLocation");if(r&&typeof r==="string"){t.config.resourceLocation=r}return t.config.resourceLocation}function operation_isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:r,options:n,processResult:s,updateState:i,setDelay:o,state:a,setErrorAsResult:c}=e;return operation_pollOperation({state:a,stateProxy:r,setDelay:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e,getError:operation_getErrorFromResponse,updateState:i,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:n,poll:async(e,r)=>t.sendPollRequest(e,r),setErrorAsResult:c})}const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function poller_buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:i,getPollingInterval:o,getError:a,resolveOnUnsuccessful:c}=e;return async({init:e,poll:l},A)=>{const{processResult:u,updateState:d,withOperationLocation:p,intervalInMs:m=POLL_INTERVAL_IN_MS,restoreFrom:h}=A||{};const g=createStateProxy();const f=p?(()=>{let e=false;return(t,r)=>{if(r)p(t);else if(!e)p(t);e=true}})():undefined;const y=h?deserializeState(h):await initOperation({init:e,stateProxy:g,processResult:u,getOperationStatus:r,withOperationLocation:f,setErrorAsResult:!c});let C;const E=new AbortController;const B=new Map;const handleProgressEvents=async()=>B.forEach((e=>e(y)));const I="Operation was canceled";let Q=m;const b={getOperationState:()=>y,getResult:()=>y.result,isDone:()=>["succeeded","failed","canceled"].includes(y.status),isStopped:()=>C===undefined,stopPolling:()=>{E.abort()},toString:()=>JSON.stringify({state:y}),onProgress:e=>{const t=Symbol();B.set(t,e);return()=>B.delete(t)},pollUntilDone:e=>C!==null&&C!==void 0?C:C=(async()=>{const{abortSignal:t}=e||{};function abortListener(){E.abort()}const r=E.signal;if(t===null||t===void 0?void 0:t.aborted){E.abort()}else if(!r.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!b.isDone()){await b.poll({abortSignal:r});while(!b.isDone()){await delay(Q,{abortSignal:r});await b.poll({abortSignal:r})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(c){return b.getResult()}else{switch(y.status){case"succeeded":return b.getResult();case"canceled":throw new Error(I);case"failed":throw y.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{C=undefined})),async poll(e){if(c){if(b.isDone())return}else{switch(y.status){case"succeeded":return;case"canceled":throw new Error(I);case"failed":throw y.error}}await pollOperation({poll:l,state:y,stateProxy:g,getOperationLocation:t,isOperationError:s,withOperationLocation:f,getPollingInterval:o,getOperationStatus:n,getResourceLocation:i,processResult:u,getError:a,updateState:d,options:e,setDelay:e=>{Q=e},setErrorAsResult:!c});await handleProgressEvents();if(!c){switch(y.status){case"canceled":throw new Error(I);case"failed":throw y.error}}}};return b}}async function createHttpPoller(e,t){const{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:i,updateState:o,withOperationLocation:a,resolveOnUnsuccessful:c=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:c})({init:async()=>{const t=await e.sendInitialRequest();const n=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:r});return Object.assign({response:t,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:n,withOperationLocation:a,restoreFrom:i,updateState:o,processResult:s?({flatResponse:e},t)=>s(e,t):({flatResponse:e})=>e})}const operation_createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,r,n,s,i,o){this.state=e;this.lro=t;this.setErrorAsResult=r;this.lroResourceLocationConfig=n;this.processResult=s;this.updateState=i;this.isDone=o}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const r=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:r,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const n=this.updateState;const s=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:r,processResult:this.processResult,updateState:n?(e,{rawResponse:t})=>n(e,t):undefined,isDone:s?({flatResponse:e},t)=>s(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){Gu.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:r=Yu,resumeFrom:n,resolveOnUnsuccessful:s=false,isDone:i,lroResourceLocationConfig:o,processResult:a,updateState:c}=t||{};const l=n?operation_deserializeState(n):{};const A=new GenericPollOperation(l,e,!s,o,a,c,i);super(A);this.resolveOnUnsuccessful=s;this.config={intervalInMs:r};A.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:r,intervalInMs:n=15e3,onProgress:s,resumeFrom:i,startCopyFromURLOptions:o}=e;let a;if(i){a=JSON.parse(i).state}const c=makeBlobBeginCopyFromURLPollOperation({...a,blobClient:t,copySource:r,startCopyFromURLOptions:o});super(c);if(typeof s==="function"){this.onProgress(s)}this.intervalInMs=n}delay(){return delay_delay(this.intervalInMs)}}const Wu=async function cancel(e={}){const t=this.state;const{copyId:r}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!r){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const $u=async function update(e={}){const t=this.state;const{blobClient:r,copySource:n,startCopyFromURLOptions:s}=t;if(!t.isStarted){t.isStarted=true;const e=await r.startCopyFromURL(n,s);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:n,copyProgress:s}=r;const i=t.copyProgress;if(s){t.copyProgress=s}if(n==="pending"&&s!==i&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(n==="success"){t.result=r;t.isCompleted=true}else if(n==="failed"){t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const ju=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:Wu,toString:ju,update:$u}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var Ku;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(Ku||(Ku={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Ku.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new en.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=Ku.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const c=setTimeout((()=>a(new Error(`The operation cannot be completed in timeout.`))),Tn);e.on("readable",(()=>{if(i>=o){clearTimeout(c);n();return}let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,s)}const l=i+a.length>o?o-i:a.length;t.fill(a.slice(0,l),r+i,r+i+l);i+=l}));e.on("end",(()=>{clearTimeout(c);if(i{clearTimeout(c);a(e)}))}))}async function streamToBuffer2(e,t,r){let n=0;const s=t.length;return new Promise(((i,o)=>{e.on("readable",(()=>{let i=e.read();if(!i){return}if(typeof i==="string"){i=Buffer.from(i,r)}if(n+i.length>s){o(new Error(`Stream exceeds buffer size. Buffer size: ${s}`));return}t.fill(i,n,n+i.length);n+=i.length}));e.on("end",(()=>{i(n)}));e.on("error",o)}))}async function streamToBuffer3(e,t){return new Promise(((r,n)=>{const s=[];e.on("data",(e=>{s.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{r(Buffer.concat(s))}));e.on("error",n)}))}async function readStreamToLocalFile(e,t){return new Promise(((r,n)=>{const s=Xu.createWriteStream(t);e.on("error",(e=>{n(e)}));s.on("error",(e=>{n(e)}));s.on("close",r);e.pipe(s)}))}const Zu=$.promisify(Xu.stat);const ed=Xu.createReadStream;class Clients_BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,r,n){n=n||{};let s;let i;if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Mn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Mn.Parameters.VERSIONID)}withSnapshot(e){return new Clients_BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new Clients_BlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,r={}){r.conditions=r.conditions||{};r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-download",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onDownloadProgress:Dt?undefined:r.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)};if(!Dt){return i}if(r.maxRetryRequests===undefined||r.maxRetryRequests<0){r.maxRetryRequests=kn}if(s.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!s.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(i,(async t=>{const n={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||s.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:r.conditions?.tagConditions},range:rangeToString({count:e+s.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download({abortSignal:r.abortSignal,...n})).readableStreamBody}),e,s.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}))}async exists(e={}){return ku.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===$n||e.details.errorCode===jn)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-getProperties",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...r,_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return ku.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ku.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return ku.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-setHTTPHeaders",t,(async r=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async setTags(e,t={}){return ku.withSpan("BlobClient-setTags",t,(async r=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return ku.withSpan("BlobClient-getTags",e,(async t=>{const r=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={...r,_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}};return n}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const n=new BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await n.poll();return n}async abortCopyFromURL(e,t={}){return ku.withSpan("BlobClient-abortCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return ku.withSpan("BlobClient-syncCopyFromURL",t,(async r=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async setAccessTier(e,t={}){return ku.withSpan("BlobClient-setAccessTier",t,(async r=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:r.tracingOptions}))))}async downloadToBuffer(e,t,r,n={}){let s;let i=0;let o=0;let a=n;if(e instanceof Buffer){s=e;i=t||0;o=typeof r==="number"?r:0}else{i=typeof e==="number"?e:0;o=typeof t==="number"?t:0;a=r||{}}let c=a.blockSize??0;if(c<0){throw new RangeError("blockSize option must be >= 0")}if(c===0){c=Dn}if(i<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!a.conditions){a.conditions={}}return ku.withSpan("BlobClient-downloadToBuffer",a,(async e=>{if(!o){const t=await this.getProperties({...a,tracingOptions:e.tracingOptions});o=t.contentLength-i;if(o<0){throw new RangeError(`offset ${i} shouldn't be larger than blob size ${t.contentLength}`)}}if(!s){try{s=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(s.length{let r=i+o;if(n+c{const i=await this.download(t,r,{...n,tracingOptions:s.tracingOptions});if(i.readableStreamBody){await readStreamToLocalFile(i.readableStreamBody,e)}i.blobDownloadStream=undefined;return i}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const r=new URL(this.url);if(r.host.split(".")[1]==="blob"){const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}else if(utils_common_isIpEndpointStyle(r)){const n=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=n[2];t=n[4]}else{const n=r.pathname.match("/([^/]*)(/(.*))?");e=n[1];t=n[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return ku.withSpan("BlobClient-startCopyFromURL",t,(async r=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:r.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ku.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return ku.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return ku.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ku.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends Clients_BlobClient{appendBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:On};return ku.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const r=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...r,_response:r._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return ku.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-appendBlock",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async appendBlockFromURL(e,t,r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("AppendBlobClient-appendBlockFromURL",n,(async s=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:n.abortSignal,sourceRange:rangeToString({offset:t,count:r}),sourceContentMD5:n.sourceContentMD5,sourceContentCrc64:n.sourceContentCrc64,leaseAccessConditions:n.conditions,appendPositionAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}}class BlockBlobClient extends Clients_BlobClient{_blobContext;blockBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;if(r&&typeof r!=="string"){n=r}s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!Dt){throw new Error("This operation currently is only supported in Node.js.")}return ku.withSpan("BlockBlobClient-query",t,(async r=>{const n=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:r.tracingOptions}));return new BlobQueryResponse(n,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-upload",r,(async n=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-syncUploadFromURL",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async stageBlock(e,t,r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-stageBlock",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,r,t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async stageBlockFromURL(e,t,r=0,n,s={}){ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-stageBlockFromURL",s,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:r===0&&!n?undefined:rangeToString({offset:r,count:n}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("BlockBlobClient-commitBlockList",t,(async r=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async getBlockList(e,t={}){return ku.withSpan("BlockBlobClient-getBlockList",t,(async r=>{const n=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}));if(!n.committedBlocks){n.committedBlocks=[]}if(!n.uncommittedBlocks){n.uncommittedBlocks=[]}return n}))}async uploadData(e,t={}){return ku.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(Dt){let r;if(e instanceof Buffer){r=e}else if(e instanceof ArrayBuffer){r=Buffer.from(e)}else{e=e;r=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.byteLength,t)}else{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}}))}async uploadBrowserData(e,t={}){return ku.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const r=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>r.slice(e,e+t)),r.size,t)}))}async uploadSeekableInternal(e,t,r={}){let n=r.blockSize??0;if(n<0||n>Rn){throw new RangeError(`blockSize option must be >= 0 and <= ${Rn}`)}const s=r.maxSingleShotSize??Nn;if(s<0||s>Nn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Nn}`)}if(n===0){if(t>Rn*xn){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>s){n=Math.ceil(t/xn);if(n{if(t<=s){return utils_common_assertResponse(await this.upload(e(0,t),t,i))}const o=Math.floor((t-1)/n)+1;if(o>xn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${xn}`)}const a=[];const c=esm_randomUUID();let l=0;const A=new Batch(r.concurrency);for(let s=0;s{const A=utils_common_generateBlockID(c,s);const u=n*s;const d=s===o-1?t:u+n;const p=d-u;a.push(A);await this.stageBlock(A,e(u,p),p,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions});l+=p;if(r.onProgress){r.onProgress({loadedBytes:l})}}))}await A.do();return this.commitBlockList(a,i)}))}async uploadFile(e,t={}){return ku.withSpan("BlockBlobClient-uploadFile",t,(async r=>{const n=(await Zu(e)).size;return this.uploadSeekableInternal(((t,r)=>()=>ed(e,{autoClose:true,end:r?t+r-1:Infinity,start:t})),n,{...t,tracingOptions:r.tracingOptions})}))}async uploadStream(e,t=vn,r=5,n={}){if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return ku.withSpan("BlockBlobClient-uploadStream",n,(async s=>{let i=0;const o=esm_randomUUID();let a=0;const c=[];const l=new BufferScheduler(e,t,r,(async(e,t)=>{const r=utils_common_generateBlockID(o,i);c.push(r);i++;await this.stageBlock(r,e,t,{customerProvidedKey:n.customerProvidedKey,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions});a+=t;if(n.onProgress){n.onProgress({loadedBytes:a})}}),Math.ceil(r/4*3));await l.do();return utils_common_assertResponse(await this.commitBlockList(c,{...n,tracingOptions:s.tracingOptions}))}))}}class PageBlobClient extends Clients_BlobClient{pageBlobContext;constructor(e,t,r,n){let s;let i;n=n||{};if(isPipelineLike(t)){i=e;s=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;n=r;s=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;s=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"&&r&&typeof r==="string"){const o=t;const a=r;const c=utils_common_extractConnectionStringParts(e);if(c.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(c.accountName,c.accountKey);i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)}s=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(c.kind==="SASConnString"){i=utils_common_appendToURLPath(utils_common_appendToURLPath(c.url,encodeURIComponent(o)),encodeURIComponent(a))+"?"+c.accountSas;s=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(i,s);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Mn.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-create",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:r.tracingOptions}))))}async createIfNotExists(e,t={}){return ku.withSpan("PageBlobClient-createIfNotExists",t,(async r=>{try{const n={ifNoneMatch:On};const s=utils_common_assertResponse(await this.create(e,{...t,conditions:n,tracingOptions:r.tracingOptions}));return{succeeded:true,...s,_response:s._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-uploadPages",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(r,e,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},range:rangeToString({offset:t,count:r}),sequenceNumberAccessConditions:n.conditions,transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async uploadPagesFromURL(e,t,r,n,s={}){s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return ku.withSpan("PageBlobClient-uploadPagesFromURL",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:n}),0,rangeToString({offset:r,count:n}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async clearPages(e=0,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-clearPages",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async getPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-getPageRanges",r,(async n=>{const s=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:n.tracingOptions}));return rangeResponseFromModel(s)}))}async listPageRangesSegment(e=0,t,r,n={}){return ku.withSpan("PageBlobClient-getPageRangesSegment",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,r,n={}){let s;if(!!r||r===undefined){do{s=await this.listPageRangesSegment(e,t,r,n);r=s.continuationToken;yield await s}while(r)}}async*listPageRangeItems(e=0,t,r={}){let n;for await(const s of this.listPageRangeItemSegments(e,t,n,r)){yield*ExtractPageRangeInfoItems(s)}}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const n=this.listPageRangeItems(e,t,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listPageRangeItemSegments(e,t,n.continuationToken,{maxPageSize:n.maxPageSize,...r})}}async getPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};return ku.withSpan("PageBlobClient-getPageRangesDiff",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesDiffSegment(e,t,r,n,s={}){return ku.withSpan("PageBlobClient-getPageRangesDiffSegment",s,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:s?.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,r,n,s){let i;if(!!n||n===undefined){do{i=await this.listPageRangesDiffSegment(e,t,r,n,s);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeDiffItems(e,t,r,n){let s;for await(const i of this.listPageRangeDiffItemSegments(e,t,r,s,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};const s=this.listPageRangeDiffItems(e,t,r,{...n});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeDiffItemSegments(e,t,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n})}}async getPageRangesDiffForManagedDisks(e,t,r,n={}){n.conditions=n.conditions||{};return ku.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",n,(async s=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},prevSnapshotUrl:r,range:rangeToString({offset:e,count:t}),tracingOptions:s.tracingOptions}));return rangeResponseFromModel(i)}))}async resize(e,t={}){t.conditions=t.conditions||{};return ku.withSpan("PageBlobClient-resize",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:r.tracingOptions}))))}async updateSequenceNumber(e,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("PageBlobClient-updateSequenceNumber",r,(async n=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async startCopyIncremental(e,t={}){return ku.withSpan("PageBlobClient-startCopyIncremental",t,(async r=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(zn);const r=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,r);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const td=": ";const rd=" ";const nd=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${qn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Ln.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const r=t.length;if(r!==this.subRequests.size&&r!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const n=new Array(r);let s=0;let i=0;for(let e=0;e=0&&u{if(this.keys[e]===undefined||this.keys[e]===sd.UNLOCKED){this.keys[e]=sd.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=sd.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===sd.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,r){let n;let s;if(typeof e==="string"&&(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){n=e;s=t}else if(e instanceof Clients_BlobClient){n=e.url;s=e.credential;r=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!r){r={}}return ku.withSpan("BatchDeleteRequest-addSubRequest",r,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:n,credential:s},(async()=>{await new Clients_BlobClient(n,this.batchRequest.createPipeline(s)).delete(e)}))}))}async setBlobAccessTier(e,t,r,n){let s;let i;let o;if(typeof e==="string"&&(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){s=e;i=t;o=r}else if(e instanceof Clients_BlobClient){s=e.url;i=e.credential;o=t;n=r}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return ku.withSpan("BatchSetTierRequest-addSubRequest",n,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:s,credential:i},(async()=>{await new Clients_BlobClient(s,this.batchRequest.createPipeline(i)).setAccessTier(o,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${qn}${Fn.CONTENT_TYPE}: application/http${qn}${Fn.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Pn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const r=new Pipeline([]);r._credential=e;r._corePipeline=t;return r}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${Fn.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${Vn}${qn}`].join(qn);for(const[t,r]of e.headers){this.body+=`${t}: ${r}${qn}`}this.body+=qn}preAddSubRequest(e){if(this.operationCount>=_n){throw new RangeError(`Cannot exceed ${_n} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${qn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let r="";for(const[t]of e.headers){if(utils_common_iEqual(t,Fn.X_MS_VERSION)){r=t}}if(r!==""){e.headers.delete(r)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(!t){n=newPipeline(new AnonymousCredential,r)}else{n=newPipeline(t,r)}const s=new StorageContextClient(e,getCoreClientOptions(n));const i=utils_common_getURLPath(e);if(i&&i!=="/"){this.serviceOrContainerContext=s.container}else{this.serviceOrContainerContext=s.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,r){const n=new BlobBatch;for(const s of e){if(typeof s==="string"){await n.deleteBlob(s,t,r)}else{await n.deleteBlob(s,t)}}return this.submitBatch(n)}async setBlobsAccessTier(e,t,r,n){const s=new BlobBatch;for(const i of e){if(typeof i==="string"){await s.setBlobAccessTier(i,t,r,n)}else{await s.setBlobAccessTier(i,t,r)}}return this.submitBatch(s)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return ku.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const r=e.getHttpRequestBody();const n=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(r),e.getMultiPartContentType(),r,{...t}));const s=new BatchResponseParser(n,e.getSubRequests());const i=await s.parseBatchResponse();const o={_response:n._response,contentType:n.contentType,errorCode:n.errorCode,requestId:n.requestId,clientRequestId:n.clientRequestId,version:n.version,subResponses:i.subResponses,subResponsesSucceededCount:i.subResponsesSucceededCount,subResponsesFailedCount:i.subResponsesFailedCount};return o}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,r){let n;let s;r=r||{};if(isPipelineLike(t)){s=e;n=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){s=e;n=newPipeline(t,r)}else if(!t&&typeof t!=="string"){s=e;n=newPipeline(new AnonymousCredential,r)}else if(t&&typeof t==="string"){const i=t;const o=utils_common_extractConnectionStringParts(e);if(o.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(o.accountName,o.accountKey);s=utils_common_appendToURLPath(o.url,encodeURIComponent(i));if(!r.proxyOptions){r.proxyOptions=proxyPolicy_getDefaultProxySettings(o.proxyUri)}n=newPipeline(e,r)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){s=utils_common_appendToURLPath(o.url,encodeURIComponent(i))+"?"+o.accountSas;n=newPipeline(new AnonymousCredential,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(s,n);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return ku.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return ku.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return ku.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new Clients_BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ku.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return ku.withSpan("ContainerClient-setMetadata",t,(async r=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:r.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return ku.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const r=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const n={_response:r._response,blobPublicAccess:r.blobPublicAccess,date:r.date,etag:r.etag,errorCode:r.errorCode,lastModified:r.lastModified,requestId:r.requestId,clientRequestId:r.clientRequestId,signedIdentifiers:[],version:r.version};for(const e of r){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}n.signedIdentifiers.push({accessPolicy:t,id:e.id})}return n}))}async setAccessPolicy(e,t,r={}){r.conditions=r.conditions||{};return ku.withSpan("ContainerClient-setAccessPolicy",r,(async n=>{const s=[];for(const e of t||[]){s.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:r.abortSignal,access:e,containerAcl:s,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,r,n={}){return ku.withSpan("ContainerClient-uploadBlockBlob",n,(async n=>{const s=this.getBlockBlobClient(e);const i=await s.upload(t,r,n);return{blockBlobClient:s,response:i}}))}async deleteBlob(e,t={}){return ku.withSpan("ContainerClient-deleteBlob",t,(async r=>{let n=this.getBlobClient(e);if(t.versionId){n=n.withVersion(t.versionId)}return n.delete(r)}))}async listBlobFlatSegment(e,t={}){return ku.withSpan("ContainerClient-listBlobFlatSegment",t,(async r=>{const n=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:r.tracingOptions}));const s={...n,_response:{...n._response,parsedBody:ConvertInternalResponseOfListBlobFlat(n._response.parsedBody)},segment:{...n.segment,blobItems:n.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return s}))}async listBlobHierarchySegment(e,t,r={}){return ku.withSpan("ContainerClient-listBlobHierarchySegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...r,tracingOptions:n.tracingOptions}));const i={...s,_response:{...s._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(s._response.parsedBody)},segment:{...s.segment,blobItems:s.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:s.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return i}))}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listBlobFlatSegment(e,t);e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async*listHierarchySegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.listBlobHierarchySegment(e,t,r);t=n.continuationToken;yield await n}while(t)}}async*listItemsByHierarchy(e,t={}){let r;for await(const n of this.listHierarchySegments(e,r,t)){const e=n.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const r=[];if(t.includeCopy){r.push("copy")}if(t.includeDeleted){r.push("deleted")}if(t.includeMetadata){r.push("metadata")}if(t.includeSnapshots){r.push("snapshots")}if(t.includeVersions){r.push("versions")}if(t.includeUncommitedBlobs){r.push("uncommittedblobs")}if(t.includeTags){r.push("tags")}if(t.includeDeletedWithVersions){r.push("deletedwithversions")}if(t.includeImmutabilityPolicy){r.push("immutabilitypolicy")}if(t.includeLegalHold){r.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const n={...t,...r.length>0?{include:r}:{}};const s=this.listItemsByHierarchy(e,n);return{async next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async findBlobsByTagsSegment(e,t,r={}){return ku.withSpan("ContainerClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async getAccountInfo(e={}){return ku.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const r=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,r))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((r=>{const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();r(utils_common_appendToURLQuery(this.url,n))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const r of e){switch(r){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${r}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const r of e){switch(r){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${r}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const r of e){switch(r){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${r}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const r=e.version?e.version:wn;if(e.permissions&&e.permissions.setImmutabilityPolicy&&r<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&r<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&r<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&r<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const n=AccountSASPermissions.parse(e.permissions.toString());const s=AccountSASServices.parse(e.services).toString();const i=AccountSASResourceTypes.parse(e.resourceTypes).toString();let o;if(r>="2020-12-06"){o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{o=[t.accountName,n,s,i,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",r,""].join("\n")}const a=t.computeHMACSHA256(o);return{sasQueryParameters:new SASQueryParameters(r,a,n.toString(),s,i,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:o}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const r=utils_common_extractConnectionStringParts(e);if(r.kind==="AccountConnString"){if(Dt){const e=new StorageSharedKeyCredential(r.accountName,r.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(r.proxyUri)}const n=newPipeline(e,t);return new BlobServiceClient(r.url,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(r.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(r.url+"?"+r.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,r){let n;if(isPipelineLike(t)){n=t}else if(Dt&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){n=newPipeline(t,r)}else{n=newPipeline(new AnonymousCredential,r)}super(e,n);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return ku.withSpan("BlobServiceClient-createContainer",t,(async t=>{const r=this.getContainerClient(e);const n=await r.create(t);return{containerClient:r,containerCreateResponse:n}}))}async deleteContainer(e,t={}){return ku.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const r=this.getContainerClient(e);return r.delete(t)}))}async undeleteContainer(e,t,r={}){return ku.withSpan("BlobServiceClient-undeleteContainer",r,(async n=>{const s=this.getContainerClient(r.destinationContainerName||e);const i=s["storageClientContext"].container;const o=utils_common_assertResponse(await i.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:n.tracingOptions}));return{containerClient:s,containerUndeleteResponse:o}}))}async getProperties(e={}){return ku.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return ku.withSpan("BlobServiceClient-setProperties",t,(async r=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:r.tracingOptions}))))}async getStatistics(e={}){return ku.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ku.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return ku.withSpan("BlobServiceClient-listContainersSegment",t,(async r=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:r.tracingOptions}))))}async findBlobsByTagsSegment(e,t,r={}){return ku.withSpan("BlobServiceClient-findBlobsByTagsSegment",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:r.abortSignal,where:e,marker:t,maxPageSize:r.maxPageSize,tracingOptions:n.tracingOptions}));const i={...s,_response:s._response,blobs:s.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return i}))}async*findBlobsByTagsSegments(e,t,r={}){let n;if(!!t||t===undefined){do{n=await this.findBlobsByTagsSegment(e,t,r);n.blobs=n.blobs||[];t=n.continuationToken;yield n}while(t)}}async*findBlobsByTagsItems(e,t={}){let r;for await(const n of this.findBlobsByTagsSegments(e,r,t)){yield*n.blobs}}findBlobsByTags(e,t={}){const r={...t};const n=this.findBlobsByTagsItems(e,r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...r})}}async*listSegments(e,t={}){let r;if(!!e||e===undefined){do{r=await this.listContainersSegment(e,t);r.containerItems=r.containerItems||[];e=r.continuationToken;yield await r}while(e)}}async*listItems(e={}){let t;for await(const r of this.listSegments(t,e)){yield*r.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const r={...e,...t.length>0?{include:t}:{}};const n=this.listItems(r);return{next(){return n.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...r})}}async getUserDelegationKey(e,t,r={}){return ku.withSpan("BlobServiceClient-getUserDelegationKey",r,(async n=>{const s=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}));const i={signedObjectId:s.signedObjectId,signedTenantId:s.signedTenantId,signedStartsOn:new Date(s.signedStartsOn),signedExpiresOn:new Date(s.signedExpiresOn),signedService:s.signedService,signedVersion:s.signedVersion,value:s.value};const o={_response:s._response,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,date:s.date,errorCode:s.errorCode,...i};return o}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const s=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).toString();return utils_common_appendToURLQuery(this.url,s)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),r="sco",n={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:r,services:AccountSASServices.parse("b").toString(),...n},this.credential).stringToSign}}var id;(function(e){e["AES256"]="AES256"})(id||(id={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class errors_InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf 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(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries.\nMore 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`;super(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var od=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);core.info(`Sent ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadUtils_uploadCacheArchiveSDK(e,t,r){return od(this,void 0,void 0,(function*(){var n;const s=new BlobClient(e);const i=s.getBlockBlobClient();const o=new UploadProgress((n=r===null||r===void 0?void 0:r.archiveSizeBytes)!==null&&n!==void 0?n:0);const a={blockSize:r===null||r===void 0?void 0:r.uploadChunkSize,concurrency:r===null||r===void 0?void 0:r.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer();core.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);const e=yield i.uploadFile(t,a);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){core.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{o.stopDisplayTimer()}}))}var ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function requestUtils_isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[G.Hv.BadGateway,G.Hv.ServiceUnavailable,G.Hv.GatewayTimeout];return t.includes(e)}function sleep(e){return ad(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,r){return ad(this,arguments,void 0,(function*(e,t,r,n=P,s=M,o=undefined){let a="";let c=1;while(c<=n){let l=undefined;let A=undefined;let u=false;try{l=yield t()}catch(e){if(o){l=o(e)}u=true;a=e.message}if(l){A=r(l);if(!isServerErrorStatusCode(A)){return l}}if(A){u=isRetryableStatusCode(A);a=`Cache service responded with ${A}`}i.Yz(`${e} - Attempt ${c} of ${n} failed with error: ${a}`);if(!u){i.Yz(`${e} - Error is not retryable`);break}yield sleep(s);c++}throw Error(`${e} failed: ${a}`)}))}function requestUtils_retryTypedResponse(e,t){return ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.statusCode),r,n,(e=>{if(e instanceof G.Kg){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function requestUtils_retryHttpClientResponse(e,t){return ad(this,arguments,void 0,(function*(e,t,r=P,n=M){return yield retry(e,t,(e=>e.message.statusCode),r,n)}))}var cd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return cd(this,void 0,void 0,(function*(){const r=S.promisify(b.pipeline);yield r(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;i.Yz(`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}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const r=Date.now()-this.startTime;const n=(e/(1024*1024)/(r/1e3)).toFixed(1);i.pq(`Received ${e} of ${this.contentLength} (${t}%), ${n} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadCacheHttpClient(e,t){return cd(this,void 0,void 0,(function*(){const r=c.createWriteStream(t);const n=new G.Qq("actions/cache");const s=yield requestUtils_retryHttpClientResponse("downloadCache",(()=>cd(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(L,(()=>{s.message.destroy();i.Yz(`Aborting download, socket timed out after ${L} ms`)}));yield pipeResponseToStream(s,r);const o=s.message.headers["content-length"];if(o){const e=parseInt(o);const r=getArchiveFileSizeInBytes(t);if(r!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`)}}else{i.Yz("Unable to validate download, no Content-Length header")}}))}function downloadCacheHttpClientConcurrent(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=yield c.promises.open(t,"w");const i=new G.Qq("actions/cache",undefined,{socketTimeout:r.timeoutInMs,keepAlive:true});try{const t=yield requestUtils_retryHttpClientResponse("downloadCacheMetadata",(()=>cd(this,void 0,void 0,(function*(){return yield i.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const a=parseInt(o);if(Number.isNaN(a)){throw new Error(`Could not interpret Content-Length: ${a}`)}const c=[];const l=4*1024*1024;for(let t=0;tcd(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(i,e,t,r)}))})}c.reverse();let A=0;let u=0;const d=new DownloadProgress(a);d.startDisplayTimer();const p=d.onProgress();const m=[];let h;const waitAndWrite=()=>cd(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(m));yield s.write(e.buffer,0,e.count,e.offset);A--;delete m[e.offset];u+=e.count;p({loadedBytes:u})}));while(h=c.pop()){m[h.offset]=h.promiseGetter();A++;if(A>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)){yield waitAndWrite()}}while(A>0){yield waitAndWrite()}}finally{i.dispose();yield s.close()}}))}function downloadSegmentRetry(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=5;let i=0;while(true){try{const s=3e4;const i=yield promiseWithTimeout(s,downloadSegment(e,t,r,n));if(typeof i==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return i}catch(e){if(i>=s){throw e}i++}}}))}function downloadSegment(e,t,r,n){return cd(this,void 0,void 0,(function*(){const s=yield requestUtils_retryHttpClientResponse("downloadCachePart",(()=>cd(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${r}-${r+n-1}`})}))));if(!s.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:r,count:n,buffer:yield s.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,r){return cd(this,void 0,void 0,(function*(){var n;const s=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}});const o=yield s.getProperties();const a=(n=o.contentLength)!==null&&n!==void 0?n:-1;if(a<0){i.Yz("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,Hu.constants.MAX_LENGTH);const n=new DownloadProgress(a);const i=c.openSync(t,"w");try{n.startDisplayTimer();const t=new AbortController;const o=t.signal;while(!n.isDone()){const l=n.segmentOffset+n.segmentSize;const A=Math.min(e,a-l);n.nextSegment(A);const u=yield promiseWithTimeout(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(l,A,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:n.onProgress()}));if(u==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(u)){c.writeFileSync(i,u)}}}finally{n.stopDisplayTimer();c.closeSync(i)}}}))}const promiseWithTimeout=(e,t)=>cd(void 0,void 0,void 0,(function*(){let r;const n=new Promise((t=>{r=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,n]).then((e=>{clearTimeout(r);return e}))}));function options_getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;core.debug(`Use Azure SDK: ${t.useAzureSdk}`);core.debug(`Upload concurrency: ${t.uploadConcurrency}`);core.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const r=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(r&&!isNaN(Number(r))&&isFinite(Number(r))){t.segmentTimeoutInMs=Number(r)*60*1e3}i.Yz(`Use Azure SDK: ${t.useAzureSdk}`);i.Yz(`Download concurrency: ${t.downloadConcurrency}`);i.Yz(`Request timeout (ms): ${t.timeoutInMs}`);i.Yz(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);i.Yz(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);i.Yz(`Lookup only: ${t.lookupOnly}`);return t}function config_isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const r=t==="GITHUB.COM";const n=t.endsWith(".GHE.COM");const s=t.endsWith(".LOCALHOST");return!r&&!n&&!s}function config_getCacheServiceVersion(){if(config_isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=config_getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var ld=n(8658);function user_agent_getUserAgentString(){return`@actions/cache-${ld.version}`}var Ad=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const r=`${t}_apis/artifactcache/${e}`;i.Yz(`Resource Url: ${r}`);return r}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new Y.tZ(e);return new G.Qq(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=createHttpClient();const s=getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const o=`cache?keys=${encodeURIComponent(e.join(","))}&version=${s}`;const a=yield requestUtils_retryTypedResponse("getCacheEntry",(()=>Ad(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(o))}))));if(a.statusCode===204){if(i._o()){yield printCachesListForDiagnostics(e[0],n,s)}return null}if(!requestUtils_isSuccessStatusCode(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode}`)}const c=a.result;const l=c===null||c===void 0?void 0:c.archiveLocation;if(!l){throw new Error("Cache not found.")}i.Pq(l);i.Yz(`Cache Result:`);i.Yz(JSON.stringify(c));return c}))}function printCachesListForDiagnostics(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=`caches?key=${encodeURIComponent(e)}`;const s=yield requestUtils_retryTypedResponse("listCache",(()=>Ad(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(n))}))));if(s.statusCode===200){const t=s.result;const n=t===null||t===void 0?void 0:t.totalCount;if(n&&n>0){i.Yz(`No matching cache found for cache key '${e}', version '${r} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){i.Yz(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=new J.URL(e);const s=getDownloadOptions(r);if(n.hostname.endsWith(".blob.core.windows.net")){if(s.useAzureSdk){yield downloadCacheStorageSDK(e,t,s)}else if(s.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,s)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n=createHttpClient();const s=utils.getCacheVersion(t,r===null||r===void 0?void 0:r.compressionMethod,r===null||r===void 0?void 0:r.enableCrossOsArchive);const i={key:e,version:s,cacheSize:r===null||r===void 0?void 0:r.cacheSize};const o=yield retryTypedResponse("reserveCache",(()=>Ad(this,void 0,void 0,(function*(){return n.postJson(getCacheApiUrl("caches"),i)}))));return o}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,r,n,s){return Ad(this,void 0,void 0,(function*(){core.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${getContentRange(n,s)}`);const i={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,s)};const o=yield retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${s})`,(()=>Ad(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,r(),i)}))));if(!isSuccessStatusCode(o.message.statusCode)){throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,r,n){return Ad(this,void 0,void 0,(function*(){const s=utils.getArchiveFileSizeInBytes(r);const i=getCacheApiUrl(`caches/${t.toString()}`);const o=fs.openSync(r,"r");const a=getUploadOptions(n);const c=utils.assertDefined("uploadConcurrency",a.uploadConcurrency);const l=utils.assertDefined("uploadChunkSize",a.uploadChunkSize);const A=[...new Array(c).keys()];core.debug("Awaiting all uploads");let u=0;try{yield Promise.all(A.map((()=>Ad(this,void 0,void 0,(function*(){while(ufs.createReadStream(r,{fd:o,start:n,end:a,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),n,a)}})))))}finally{fs.closeSync(o)}return}))}function commitCache(e,t,r){return Ad(this,void 0,void 0,(function*(){const n={size:r};return yield retryTypedResponse("commitCache",(()=>Ad(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,r,n){return Ad(this,void 0,void 0,(function*(){const s=getUploadOptions(n);if(s.useAzureSdk){if(!r){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(r,t,n)}else{const r=createHttpClient();core.debug("Upload cache");yield uploadFile(r,e,t,n);core.debug("Commiting cache");const s=utils.getArchiveFileSizeInBytes(t);core.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);const i=yield commitCache(r,e,s);if(!isSuccessStatusCode(i.statusCode)){throw new Error(`Cache service responded with ${i.statusCode} during commit cache.`)}core.info("Cache saved successfully")}}))}var ud=n(4420);var dd=n(8886);class CacheScope$Type extends dd.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){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.pospd}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posmd},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,dd.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,dd.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,r,n){let s=n!==null&&n!==void 0?n:this.create(),i=e.pos+t;while(e.posgd.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=fd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return r.then((e=>yd.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=Cd.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return r.then((e=>Ed.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return r.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return r.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const r=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return r.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const r=t.searchParams.get("sig");if(r){(0,i.Pq)(r);(0,i.Pq)(encodeURIComponent(r))}}catch(t){(0,i.Yz)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.Yz)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Id=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,r,n){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const s=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(r){this.baseRetryIntervalMilliseconds=r}if(n){this.retryMultiplier=n}this.httpClient=new G.Qq(e,[new Y.tZ(s)])}request(e,t,r,n){return Id(this,void 0,void 0,(function*(){const s=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.Yz)(`[Request] ${t} ${s}`);const o={"Content-Type":r};try{const{body:e}=yield this.retryableRequest((()=>Id(this,void 0,void 0,(function*(){return this.httpClient.post(s,JSON.stringify(n),o)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Id(this,void 0,void 0,(function*(){let t=0;let r="";let n="";while(t0){(0,i.$e)(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${r}`)}}catch(e){if(e instanceof SyntaxError){(0,i.Yz)(`Raw Body: ${n}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}s=true;r=e.message}if(!s){throw new Error(`Received non-retryable error: ${r}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${r}`)}const o=this.getExponentialRetryTimeMilliseconds(t);(0,i.pq)(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${r}. Retrying request in ${o} ms...`);yield this.sleep(o);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[G.Hv.BadGateway,G.Hv.GatewayTimeout,G.Hv.InternalServerError,G.Hv.ServiceUnavailable];return t.includes(e)}sleep(e){return Id(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const r=t*this.retryMultiplier;return Math.trunc(Math.random()*(r-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var Qd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const bd=process.platform==="win32";function getTarPath(){return Qd(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=U;if(e){return{path:e,type:T.GNU}}else if((0,c.existsSync)(t)){return{path:t,type:T.BSD}}break}case"darwin":{const e=yield x.K7("gtar",false);if(e){return{path:e,type:T.GNU}}else{return{path:yield x.K7("tar",true),type:T.BSD}}}default:break}return{path:yield x.K7("tar",true),type:T.GNU}}))}function getTarArgs(e,t,r){return Qd(this,arguments,void 0,(function*(e,t,r,n=""){const s=[`"${e.path}"`];const i=getCacheFileName(t);const a="cache.tar";const c=getWorkingDirectory();const l=e.type===T.BSD&&t!==k.Gzip&&bd;switch(r){case"create":s.push("--posix","-cf",l?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--exclude",l?a:i.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",c.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"--files-from",H);break;case"extract":s.push("-xf",l?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P","-C",c.replace(new RegExp(`\\${o.sep}`,"g"),"/"));break;case"list":s.push("-tf",l?a:n.replace(new RegExp(`\\${o.sep}`,"g"),"/"),"-P");break}if(e.type===T.GNU){switch(process.platform){case"win32":s.push("--force-local");break;case"darwin":s.push("--delay-directory-restore");break}}return s}))}function getCommands(e,t){return Qd(this,arguments,void 0,(function*(e,t,r=""){let n;const s=yield getTarPath();const i=yield getTarArgs(s,e,t,r);const o=t!=="create"?yield getDecompressionProgram(s,e,r):yield getCompressionProgram(s,e);const a=s.type===T.BSD&&e!==k.Gzip&&bd;if(a&&t!=="create"){n=[[...o].join(" "),[...i].join(" ")]}else{n=[[...i].join(" "),[...o].join(" ")]}if(a){return n}return[n.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,r){return Qd(this,void 0,void 0,(function*(){const n=e.type===T.BSD&&t!==k.Gzip&&bd;switch(t){case k.Zstd:return n?["zstd -d --long=30 --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",bd?'"zstd -d --long=30"':"unzstd --long=30"];case k.ZstdWithoutLong:return n?["zstd -d --force -o",O,r.replace(new RegExp(`\\${o.sep}`,"g"),"/")]:["--use-compress-program",bd?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return Qd(this,void 0,void 0,(function*(){const r=getCacheFileName(t);const n=e.type===T.BSD&&t!==k.Gzip&&bd;switch(t){case k.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",bd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case k.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${o.sep}`,"g"),"/"),O]:["--use-compress-program",bd?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return Qd(this,void 0,void 0,(function*(){for(const r of e){try{yield(0,a.m)(r,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${r.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function tar_listTar(e,t){return Qd(this,void 0,void 0,(function*(){const r=yield getCommands(t,"list",e);yield execCommands(r)}))}function extractTar(e,t){return Qd(this,void 0,void 0,(function*(){const r=getWorkingDirectory();yield x.U$(r);const n=yield getCommands(t,"extract",e);yield execCommands(n)}))}function tar_createTar(e,t,r){return Qd(this,void 0,void 0,(function*(){writeFileSync(path.join(e,ManifestFilename),t.join("\n"));const n=yield getCommands(r,"create");yield execCommands(n,e)}))}var Sd=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=config_getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){const o=config_getCacheServiceVersion();i.Yz(`Cache service version: ${o}`);checkPaths(e);switch(o){case"v2":return yield restoreCacheV2(e,t,r,n,s);case"v1":default:return yield restoreCacheV1(e,t,r,n,s)}}))}function restoreCacheV1(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){r=r||[];const a=[t,...r];i.Yz("Resolved Keys:");i.Yz(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}const c=yield getCompressionMethod();let l="";try{const t=yield getCacheEntry(a,e,{compressionMethod:c,enableCrossOsArchive:s});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(n===null||n===void 0?void 0:n.lookupOnly){i.pq("Lookup only - skipping download");return t.cacheKey}l=o.join(yield createTempDirectory(),getCacheFileName(c));i.Yz(`Archive Path: ${l}`);yield downloadCache(t.archiveLocation,l,n);if(i._o()){yield tar_listTar(l,c)}const r=getArchiveFileSizeInBytes(l);i.pq(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield extractTar(l,c);i.pq("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof G.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to restore: ${e.message}`)}else{i.$e(`Failed to restore: ${e.message}`)}}}finally{try{yield unlinkFile(l)}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,r,n){return Sd(this,arguments,void 0,(function*(e,t,r,n,s=false){n=Object.assign(Object.assign({},n),{useAzureSdk:true});r=r||[];const a=[t,...r];i.Yz("Resolved Keys:");i.Yz(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}let c="";try{const l=internalCacheTwirpClient();const A=yield getCompressionMethod();const u={key:t,restoreKeys:r,version:getCacheVersion(e,A,s)};const d=yield l.GetCacheEntryDownloadURL(u);if(!d.ok){i.Yz(`Cache not found for version ${u.version} of keys: ${a.join(", ")}`);return undefined}const p=u.key!==d.matchedKey;if(p){i.pq(`Cache hit for restore-key: ${d.matchedKey}`)}else{i.pq(`Cache hit for: ${d.matchedKey}`)}if(n===null||n===void 0?void 0:n.lookupOnly){i.pq("Lookup only - skipping download");return d.matchedKey}c=o.join(yield createTempDirectory(),getCacheFileName(A));i.Yz(`Archive path: ${c}`);i.Yz(`Starting download of archive to: ${c}`);yield downloadCache(d.signedDownloadUrl,c,n);const m=getArchiveFileSizeInBytes(c);i.pq(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`);if(i._o()){yield tar_listTar(c,A)}yield extractTar(c,A);i.pq("Cache restored successfully");return d.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof G.Kg&&typeof t.statusCode==="number"&&t.statusCode>=500){i.z3(`Failed to restore: ${e.message}`)}else{i.$e(`Failed to restore: ${e.message}`)}}}finally{try{if(c){yield unlinkFile(c)}}catch(e){i.Yz(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){const s=getCacheServiceVersion();core.debug(`Cache service version: ${s}`);checkPaths(e);checkKey(t);switch(s){case"v2":return yield saveCacheV2(e,t,r,n);case"v1":default:return yield saveCacheV1(e,t,r,n)}}))}function saveCacheV1(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){var s,i,o,a,c;const l=yield utils.getCompressionMethod();let A=-1;const u=yield utils.resolvePaths(e);core.debug("Cache Paths:");core.debug(`${JSON.stringify(u)}`);if(u.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.`)}const d=yield utils.createTempDirectory();const p=path.join(d,utils.getCacheFileName(l));core.debug(`Archive Path: ${p}`);try{yield createTar(d,u,l);if(core.isDebug()){yield listTar(p,l)}const m=10*1024*1024*1024;const h=utils.getArchiveFileSizeInBytes(p);core.debug(`File Size: ${h}`);if(h>m&&!isGhes()){throw new Error(`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the 10GB limit, not saving cache.`)}core.debug("Reserving Cache");const g=yield cacheHttpClient.reserveCache(t,e,{compressionMethod:l,enableCrossOsArchive:n,cacheSize:h});if((s=g===null||g===void 0?void 0:g.result)===null||s===void 0?void 0:s.cacheId){A=(i=g===null||g===void 0?void 0:g.result)===null||i===void 0?void 0:i.cacheId}else if((g===null||g===void 0?void 0:g.statusCode)===400){throw new Error((a=(o=g===null||g===void 0?void 0:g.error)===null||o===void 0?void 0:o.message)!==null&&a!==void 0?a:`Cache size of ~${Math.round(h/(1024*1024))} MB (${h} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(c=g===null||g===void 0?void 0:g.error)===null||c===void 0?void 0:c.message}`)}core.debug(`Saving Cache (ID: ${A})`);yield cacheHttpClient.saveCache(A,p,"",r)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){core.info(`Failed to save: ${t.message}`)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to save: ${t.message}`)}else{core.warning(`Failed to save: ${t.message}`)}}}finally{try{yield utils.unlinkFile(p)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return A}))}function saveCacheV2(e,t,r){return Sd(this,arguments,void 0,(function*(e,t,r,n=false){r=Object.assign(Object.assign({},r),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const s=yield utils.getCompressionMethod();const i=cacheTwirpClient.internalCacheTwirpClient();let o=-1;const a=yield utils.resolvePaths(e);core.debug("Cache Paths:");core.debug(`${JSON.stringify(a)}`);if(a.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const c=yield utils.createTempDirectory();const l=path.join(c,utils.getCacheFileName(s));core.debug(`Archive Path: ${l}`);try{yield createTar(c,a,s);if(core.isDebug()){yield listTar(l,s)}const A=utils.getArchiveFileSizeInBytes(l);core.debug(`File Size: ${A}`);r.archiveSizeBytes=A;core.debug("Reserving Cache");const u=utils.getCacheVersion(e,s,n);const d={key:t,version:u};let p;try{const e=yield i.CreateCacheEntry(d);if(!e.ok){if(e.message){core.warning(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}p=e.signedUploadUrl}catch(e){core.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}core.debug(`Attempting to upload cache located at: ${l}`);yield cacheHttpClient.saveCache(o,l,p,r);const m={key:t,version:u,sizeBytes:`${A}`};const h=yield i.FinalizeCacheEntryUpload(m);core.debug(`FinalizeCacheEntryUploadResponse: ${h.ok}`);if(!h.ok){if(h.message){throw new FinalizeCacheError(h.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}o=parseInt(h.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){core.info(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){core.warning(t.message)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core.error(`Failed to save: ${t.message}`)}else{core.warning(`Failed to save: ${t.message}`)}}}finally{try{yield utils.unlinkFile(l)}catch(e){core.debug(`Failed to delete archive: ${e}`)}}return o}))}},3838:(e,t,r)=>{r.d(t,{Yz:()=>core_debug,z3:()=>error,dN:()=>exportVariable,V4:()=>getInput,pq:()=>info,_o:()=>isDebug,LZ:()=>saveState,C1:()=>setFailed,uH:()=>setOutput,Pq:()=>core_setSecret,$e:()=>warning});var n=r(857);function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var i=r(6982);var o=r(9896);function file_command_issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${toCommandValue(t)}${n.EOL}`,{encoding:"utf8"})}function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${i.randomUUID()}`;const s=toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(s.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${n.EOL}${s}${n.EOL}${r}`}var a=r(6928);var c=r(4942);var l=r(2145);var A=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return A(this,void 0,void 0,(function*(){var t;const r=oidc_utils_OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return A(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}debug(`ID token url is ${t}`);const r=yield oidc_utils_OidcClient.getCall(t);setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var u=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{access:d,appendFile:p,writeFile:m}=o.promises;const h="GITHUB_STEP_SUMMARY";const g="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return u(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[h];if(!e){throw new Error(`Unable to find environment variable for $${h}. Check if your runtime environment supports job summaries.`)}try{yield d(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return u(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?m:p;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return u(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(i,r,o)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const i=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const f=new Summary;const y=null&&f;const C=null&&f;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var E=r(5260);var B=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const getWindowsInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>B(void 0,void 0,void 0,(function*(){var e,t,r,n;const{stdout:s}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=s.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(r=s.match(/ProductName:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>B(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,r]=e.trim().split("\n");return{name:t,version:r}}));const I=n.platform();const Q=n.arch();const b=I==="win32";const S=I==="darwin";const w=I==="linux";function getDetails(){return B(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield b?getWindowsInfo():S?getMacOsInfo():getLinuxInfo()),{platform:I,arch:Q,isWindows:b,isMacOS:S,isLinux:w})}))}var N=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var R;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(R||(R={}));function exportVariable(e,t){const r=toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return file_command_issueFileCommand("ENV",prepareKeyValueMessage(e,t))}command_issueCommand("set-env",{name:e},r)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return file_command_issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(n.EOL);command_issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=R.Failure;error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+n.EOL)}function startGroup(e){issue("group",e)}function endGroup(){issue("endgroup")}function group(e,t){return N(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return file_command_issueFileCommand("STATE",prepareKeyValueMessage(e,t))}command_issueCommand("save-state",{name:e},toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return N(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}},5260:(t,r,n)=>{n.d(r,{m:()=>exec});var s=n(3193);var i=n(857);var o=n(4434);var a=n(5317);var c=n(6928);var l=n(8701);var A=n(90);const u=e(import.meta.url)("timers");var d=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const p=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=t?"":"[command]";if(p){if(this._isCmdFile()){s+=r;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(r);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=r;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,t,r){try{let n=t+e.toString();let s=n.indexOf(i.EOL);while(s>-1){const e=n.substring(0,s);r(e);n=n.substring(s+i.EOL.length);s=n.indexOf(i.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(p){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(p){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let s=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(s&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return d(this,void 0,void 0,(function*(){if(!A.Qh(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield l.K7(this.toolPath,true);return new Promise(((e,t)=>d(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+i.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield A.t2(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=a.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let c="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(c.length>0){this.emit("stdline",c)}if(l.length>0){this.emit("errline",l)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let r=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let i=0;i0){t.push(s);s=""}continue}append(o)}if(s.length>0){t.push(s.trim())}return t}class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,u.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var m=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function exec(e,t,r){return m(this,void 0,void 0,(function*(){const n=argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];t=n.slice(1).concat(t||[]);const i=new ToolRunner(s,t,r);return i.exec()}))}function getExecOutput(e,t,r){return m(this,void 0,void 0,(function*(){var n,s;let i="";let o="";const a=new StringDecoder("utf8");const c=new StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const A=(s=r===null||r===void 0?void 0:r.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=c.write(e);if(A){A(e)}};const stdOutListener=e=>{i+=a.write(e);if(l){l(e)}};const u=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:u}));i+=a.end();o+=c.end();return{exitCode:d,stdout:i,stderr:o}}))}},2145:(e,t,r)=>{r.d(t,{tZ:()=>BearerCredentialHandler});var n=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},4942:(e,t,r)=>{r.d(t,{Qq:()=>HttpClient,Kg:()=>HttpClientError,Hv:()=>A});var n=r(8611);var s=r.t(n,2);var i=r(5692);var o=r.t(i,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var a=r(770);var c=r(6752);var l=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var A;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(A||(A={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u||(u={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(d={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const p=[A.MovedPermanently,A.ResourceMoved,A.SeeOther,A.TemporaryRedirect,A.PermanentRedirect];const m=[A.BadGateway,A.ServiceUnavailable,A.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const g=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((e=>l(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((e=>l(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return l(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return l(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return l(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return l(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return l(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e){return l(this,arguments,void 0,(function*(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,d.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t){return l(this,arguments,void 0,(function*(e,t,r={}){const n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,d.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultContentTypeHeader(r,d.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let i=this._prepareRequest(e,s,n);const o=this._allowRetries&&h.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(i,r);if(c&&c.message&&c.message.statusCode===A.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,i,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&p.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const o=c.message.headers["location"];if(!o){break}const a=new URL(o);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,a,n);c=yield this.requestRaw(i,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;s.on("socket",(e=>{i=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i=n.parsedUrl.protocol==="https:";n.httpModule=i?o:s;const a=i?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){n=typeof e==="number"?e.toString():e}}const s=e[t];if(s!==undefined){return typeof s==="number"?s.toString():s}if(n!==undefined){return n}return r}_getExistingOrDefaultContentTypeHeader(e,t){let r;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[u.ContentType];if(e){if(typeof e==="number"){r=String(e)}else if(Array.isArray(e)){r=e.join(", ")}else{r=e}}}const n=e[u.ContentType];if(n!==undefined){if(typeof n==="number"){return String(n)}else if(Array.isArray(n)){return n.join(", ")}else{return n}}if(r!==undefined){return r}return t}_getAgent(e){let t;const r=getProxyUrl(e);const s=r&&r.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const o=e.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s=r.protocol==="https:";if(o){n=s?a.httpsOverHttps:a.httpsOverHttp}else{n=s?a.httpOverHttps:a.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=o?new i.Agent(e):new n.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new c.kT(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const r=process.env["ACTIONS_ORCHESTRATION_ID"];if(r){const e=r.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return l(this,void 0,void 0,(function*(){e=Math.min(g,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return l(this,void 0,void 0,(function*(){return new Promise(((r,n)=>l(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const i={statusCode:s,result:null,headers:{}};if(s===A.NotFound){r(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,dateTimeDeserializer)}else{o=JSON.parse(a)}i.result=o}i.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=i.result;n(t)}else{r(i)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},90:(e,t,r)=>{r.d(t,{$1:()=>c,Ck:()=>l,Cy:()=>u,H8:()=>y,Qh:()=>isRooted,YN:()=>g,dJ:()=>h,h_:()=>readlink,k6:()=>o,m3:()=>a,rm:()=>p,t2:()=>exists,vr:()=>tryGetExecutablePath,y1:()=>f});var n=r(9896);var s=r(6928);var i=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const{chmod:o,copyFile:a,lstat:c,mkdir:l,open:A,readdir:u,rename:d,rm:p,rmdir:m,stat:h,symlink:g,unlink:f}=n.promises;const y=process.platform==="win32";function readlink(e){return i(this,void 0,void 0,(function*(){const t=yield n.promises.readlink(e);if(y&&!t.endsWith("\\")){return`${t}\\`}return t}))}const C=268435456;const E=n.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield h(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return i(this,arguments,void 0,(function*(e,t=false){const r=t?yield h(e):yield c(e);return r.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(y){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return i(this,void 0,void 0,(function*(){let r=undefined;try{r=yield h(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){const r=s.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const i of t){e=n+i;r=undefined;try{r=yield h(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(y){try{const t=s.dirname(e);const r=s.basename(e).toUpperCase();for(const n of yield u(t)){if(r===n.toUpperCase()){e=s.join(t,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(y){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}},8701:(e,t,r)=>{r.d(t,{K7:()=>which,U$:()=>mkdirP,Yz:()=>rmRF,cp:()=>cp});var n=r(2613);var s=r(6928);var i=r(90);var o=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};function cp(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){const{force:n,recursive:o,copySourceDirectory:a}=readCopyOptions(r);const c=(yield i.t2(t))?yield i.dJ(t):null;if(c&&c.isFile()&&!n){return}const l=c&&c.isDirectory()&&a?s.join(t,s.basename(e)):t;if(!(yield i.t2(e))){throw new Error(`no such file or directory: ${e}`)}const A=yield i.dJ(e);if(A.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,l,0,n)}}else{if(s.relative(e,l)===""){throw new Error(`'${l}' and '${e}' are the same file`)}yield copyFile(e,l,n)}}))}function mv(e,t){return o(this,arguments,void 0,(function*(e,t,r={}){if(yield ioUtil.exists(t)){let n=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));n=yield ioUtil.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return o(this,void 0,void 0,(function*(){if(i.H8){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield i.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return o(this,void 0,void 0,(function*(){(0,n.ok)(e,"a path argument must be provided");yield i.Ck(e,{recursive:true})}))}function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(i.H8){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(i.H8&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(s.delimiter)){if(e){t.push(e)}}}if(i.Qh(e)){const r=yield i.vr(e,t);if(r){return[r]}return[]}if(e.includes(s.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield i.vr(s.join(o,e),t);if(r){n.push(r)}}return n}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const s=yield i.Cy(e);for(const o of s){const s=`${e}/${o}`;const a=`${t}/${o}`;const c=yield i.$1(s);if(c.isDirectory()){yield cpDirRecursive(s,a,r,n)}else{yield copyFile(s,a,n)}}yield i.k6(t,(yield i.dJ(e)).mode)}))}function copyFile(e,t,r){return o(this,void 0,void 0,(function*(){if((yield i.$1(e)).isSymbolicLink()){try{yield i.$1(t);yield i.y1(t)}catch(e){if(e.code==="EPERM"){yield i.k6(t,"0666");yield i.y1(t)}}const r=yield i.h_(e);yield i.YN(r,t,i.H8?"junction":null)}else if(!(yield i.t2(t))||r){yield i.m3(e,t)}}))}},9805:(e,t,r)=>{r.d(t,{e8:()=>cacheDir,bq:()=>downloadTool,JE:()=>extractZip,I6:()=>find});var n=r(3838);var s=r(8701);var i=r(6982);var o=r(9896);var a=r(2088);var c=r(857);var l=r(5317);var A=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};const u={readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let r="";if(o.existsSync(e)){r=o.readFileSync(e).toString()}else if(o.existsSync(t)){r=o.readFileSync(t).toString()}return r}};function _findMatch(e,t,r,n){return A(this,void 0,void 0,(function*(){const s=os.platform();let i;let o;let a;for(const i of r){const r=i.version;debug(`check ${r} satisfies ${e}`);if(semver.satisfies(r,e)&&(!t||i.stable===t)){a=i.files.find((e=>{debug(`${e.arch}===${n} && ${e.platform}===${s}`);let t=e.arch===n&&e.platform===s;if(t&&e.platform_version){const r=_getOsVersion();if(r===e.platform_version){t=true}else{t=semver.satisfies(r,e.platform_version)}}return t}));if(a){debug(`matched ${i.version}`);o=i;break}}}if(o&&a){i=Object.assign({},o);i.files=[a]}return i}))}function _getOsVersion(){const e=os.platform();let t="";if(e==="darwin"){t=cp.execSync("sw_vers -productVersion").toString()}else if(e==="linux"){const e=u.readLinuxVersionFile();if(e){const r=e.split("\n");for(const e of r){const r=e.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){t=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return t}function _readLinuxVersionFile(){return u.readLinuxVersionFile()}var d=r(6928);var p=r(4942);var m=r(2203);var h=r(9023);var g=r(2613);var f=r(5260);var y=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return y(this,void 0,void 0,(function*(){let r=1;while(rsetTimeout(t,e*1e3)))}))}}var C=undefined&&undefined.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}const E=process.platform==="win32";const B=process.platform==="darwin";const I="actions/tool-cache";function downloadTool(e,t,r,o){return C(this,void 0,void 0,(function*(){t=t||d.join(_getTempDirectory(),i.randomUUID());yield s.U$(d.dirname(t));n.Yz(`Downloading ${e}`);n.Yz(`Destination ${t}`);const a=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const A=new RetryHelper(a,c,l);return yield A.execute((()=>C(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",r,o)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}function downloadToolAttempt(e,t,r,i){return C(this,void 0,void 0,(function*(){if(o.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const a=new p.Qq(I,[],{allowRetries:false});if(r){n.Yz("set auth");if(i===undefined){i={}}i.authorization=r}const c=yield a.get(e,i);if(c.message.statusCode!==200){const t=new HTTPError(c.message.statusCode);n.Yz(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw t}const l=h.promisify(m.pipeline);const A=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const u=A();let d=false;try{yield l(u,o.createWriteStream(t));n.Yz("download complete");d=true;return t}finally{if(!d){n.Yz("download failed");try{yield s.Yz(t)}catch(e){n.Yz(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,r){return C(this,void 0,void 0,(function*(){ok(E,"extract7z() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=core.isDebug()?"-bb1":"-bb0";const n=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield exec(`"${r}"`,n,s)}finally{process.chdir(n)}}else{const r=path.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${s}' -Target '${i}'`;const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const c={silent:true};try{const e=yield io.which("powershell",true);yield exec(`"${e}"`,a,c)}finally{process.chdir(n)}}return t}))}function extractTar(e,t){return C(this,arguments,void 0,(function*(e,t,r="xz"){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);core.debug("Checking tar --version");let n="";yield exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});core.debug(n.trim());const s=n.toUpperCase().includes("GNU TAR");let i;if(r instanceof Array){i=r}else{i=[r]}if(core.isDebug()&&!r.includes("v")){i.push("-v")}let o=t;let a=e;if(E&&s){i.push("--force-local");o=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(s){i.push("--warning=no-unknown-keyword");i.push("--overwrite")}i.push("-C",o,"-f",a);yield exec(`tar`,i);return t}))}function extractXar(e,t){return C(this,arguments,void 0,(function*(e,t,r=[]){ok(B,"extractXar() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(core.isDebug()){n.push("-v")}const s=yield io.which("xar",true);yield exec(`"${s}"`,_unique(n));return t}))}function extractZip(e,t){return C(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(E){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}function extractZipWin(e,t){return C(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=yield s.K7("pwsh",false);if(o){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];n.Yz(`Using pwsh at path: ${o}`);yield(0,f.m)(`"${o}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const o=yield s.K7("powershell",true);n.Yz(`Using powershell at path: ${o}`);yield(0,f.m)(`"${o}"`,t)}}))}function extractZipNix(e,t){return C(this,void 0,void 0,(function*(){const r=yield s.K7("unzip",true);const i=[e];if(!n._o()){i.unshift("-q")}i.unshift("-o");yield(0,f.m)(`"${r}"`,i,{cwd:t})}))}function cacheDir(e,t,r,i){return C(this,void 0,void 0,(function*(){r=a.clean(r)||r;i=i||c.arch();n.Yz(`Caching tool ${t} ${r} ${i}`);n.Yz(`source dir: ${e}`);if(!o.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const l=yield _createToolPath(t,r,i);for(const t of o.readdirSync(e)){const r=d.join(e,t);yield s.cp(r,l,{recursive:true})}_completeToolPath(t,r,i);return l}))}function cacheFile(e,t,r,n,s){return C(this,void 0,void 0,(function*(){n=semver.clean(n)||n;s=s||os.arch();core.debug(`Caching tool ${r} ${n} ${s}`);core.debug(`source file: ${e}`);if(!fs.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const i=yield _createToolPath(r,n,s);const o=path.join(i,t);core.debug(`destination file ${o}`);yield io.cp(e,o);_completeToolPath(r,n,s);return i}))}function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||c.arch();if(!isExplicitVersion(t)){const n=findAllVersions(e,r);const s=evaluateVersions(n,t);t=s}let s="";if(t){t=a.clean(t)||"";const i=d.join(_getCacheDirectory(),e,t,r);n.Yz(`checking cache: ${i}`);if(o.existsSync(i)&&o.existsSync(`${i}.complete`)){n.Yz(`Found tool in cache ${e} ${t} ${r}`);s=i}else{n.Yz("not found")}}return s}function findAllVersions(e,t){const r=[];t=t||c.arch();const n=d.join(_getCacheDirectory(),e);if(o.existsSync(n)){const e=o.readdirSync(n);for(const s of e){if(isExplicitVersion(s)){const e=d.join(n,s,t||"");if(o.existsSync(e)&&o.existsSync(`${e}.complete`)){r.push(s)}}}}return r}function getManifestFromRepo(e,t,r){return C(this,arguments,void 0,(function*(e,t,r,n="master"){let s=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`;const o=new httpm.HttpClient("tool-cache");const a={};if(r){core.debug("set auth");a.authorization=r}const c=yield o.getJson(i,a);if(!c.result){return s}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let A=yield(yield o.get(l,a)).readBody();if(A){A=A.replace(/^\uFEFF/,"");try{s=JSON.parse(A)}catch(e){core.debug("Invalid json")}}return s}))}function findFromManifest(e,t,r){return C(this,arguments,void 0,(function*(e,t,r,n=os.arch()){const s=yield mm._findMatch(e,t,r,n);return s}))}function _createExtractFolder(e){return C(this,void 0,void 0,(function*(){if(!e){e=d.join(_getTempDirectory(),i.randomUUID())}yield s.U$(e);return e}))}function _createToolPath(e,t,r){return C(this,void 0,void 0,(function*(){const i=d.join(_getCacheDirectory(),e,a.clean(t)||t,r||"");n.Yz(`destination ${i}`);const o=`${i}.complete`;yield s.Yz(i);yield s.Yz(o);yield s.U$(i);return i}))}function _completeToolPath(e,t,r){const s=d.join(_getCacheDirectory(),e,a.clean(t)||t,r||"");const i=`${s}.complete`;o.writeFileSync(i,"");n.Yz("finished caching tool")}function isExplicitVersion(e){const t=a.clean(e)||"";n.Yz(`isExplicit: ${t}`);const r=a.valid(t)!=null;n.Yz(`explicit? ${r}`);return r}function evaluateVersions(e,t){let r="";n.Yz(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(a.gt(e,t)){return 1}return-1}));for(let n=e.length-1;n>=0;n--){const s=e[n];const i=a.satisfies(s,t);if(i){r=s;break}}if(r){n.Yz(`matched: ${r}`)}else{n.Yz("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,g.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,g.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.1","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.4"},"devDependencies":{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1","typescript":"^5.9.3"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete r[e]}return s.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var s=[];s.d=0;n.then((e=>{i[t]=e;resolveQueue(s)}),(e=>{i[r]=e;resolveQueue(s)}));var i={};i[e]=e=>e(s);return i}}var o={};o[e]=e=>{};o[t]=n;return o}));__nccwpck_require__.a=(n,s,i)=>{var o;i&&((o=[]).d=-1);var a=new Set;var c=n.exports;var l;var A;var u;var d=new Promise(((e,t)=>{u=t;A=e}));d[t]=c;d[e]=e=>(o&&e(o),a.forEach(e),d["catch"]((e=>{})));n.exports=d;s((n=>{l=wrapDeps(n);var s;var getResult=()=>l.map((e=>{if(e[r])throw e[r];return e[t]}));var i=new Promise((t=>{s=()=>t(getResult);s.r=0;var fnQueue=e=>e!==o&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));l.map((t=>t[e](fnQueue)))}));return s.r?i:getResult()}),(e=>(e?u(d[r]=e):A(c),resolveQueue(o))));o&&o.d<0&&(o.d=0)}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(6492);n=await n; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e04c934b..dd04cbe8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,21 +29,21 @@ } }, "node_modules/@actions/cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-6.0.0.tgz", - "integrity": "sha512-+tCs634SyGBQJ3KU1rtAVabmN/gYiT9WgzTSJzWwdPCLmM3zWrdbysaErKv8HyI6OozClrxNvDgPjJimbHZZvw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-6.0.1.tgz", + "integrity": "sha512-kcM23yPzDQEME05ZFV/bRzsHS9yDzCe97F7guF9+c/jJwE9ns+gFQt3MmnRXOHh1DsnlNuKcIwXYdnt4kHLGqg==", "dev": true, "license": "MIT", "dependencies": { - "@actions/core": "^3.0.0", + "@actions/core": "^3.0.1", "@actions/exec": "^3.0.0", "@actions/glob": "^0.6.1", - "@actions/http-client": "^4.0.0", - "@actions/io": "^3.0.0", - "@azure/core-rest-pipeline": "^1.22.0", - "@azure/storage-blob": "^12.30.0", + "@actions/http-client": "^4.0.1", + "@actions/io": "^3.0.2", + "@azure/core-rest-pipeline": "^1.23.0", + "@azure/storage-blob": "^12.31.0", "@protobuf-ts/runtime-rpc": "^2.11.1", - "semver": "^7.7.3" + "semver": "^7.7.4" } }, "node_modules/@actions/core": {