@fromeroc9/testform 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action/index.js +1 -1
- package/dist/cli/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var a=i(20181);var o=a.Buffer;function copyProps(e,t){for(var i in e){t[i]=e[i]}
|
|
|
105
105
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
106
106
|
* See the License for the specific language governing permissions and
|
|
107
107
|
* limitations under the License.
|
|
108
|
-
*/Object.defineProperty(t,"__esModule",{value:true});t.teenyRequest=t.RequestError=void 0;const a=i(26705);const o=i(2203);const d=i(58993);const m=i(34003);const h=i(97745);const P=i(71546);class RequestError extends Error{}t.RequestError=RequestError;function requestToFetchOptions(e){const t={method:e.method||"GET",...e.timeout&&{timeout:e.timeout},...typeof e.gzip==="boolean"&&{compress:e.gzip}};if(typeof e.json==="object"){e.headers=e.headers||{};e.headers["Content-Type"]="application/json";t.body=JSON.stringify(e.json)}else{if(Buffer.isBuffer(e.body)){t.body=e.body}else if(typeof e.body!=="string"){t.body=JSON.stringify(e.body)}else{t.body=e.body}}t.headers=e.headers;let a=e.uri||e.url;if(!a){throw new Error("Missing uri or url in reqOpts.")}if(e.useQuerystring===true||typeof e.qs==="object"){const t=i(83480);const o=t.stringify(e.qs);a=a+"?"+o}t.agent=(0,m.getAgent)(a,e);return{uri:a,options:t}}function fetchToRequestResponse(e,t){const i={};i.agent=e.agent||false;i.headers=e.headers||{};i.href=t.url;const a={};t.headers.forEach(((e,t)=>a[t]=e));const o=Object.assign(t.body,{statusCode:t.status,statusMessage:t.statusText,request:i,body:t.body,headers:a,toJSON:()=>({headers:a})});return o}function createMultipartStream(e,t){const i=`--${e}--`;const a=new o.PassThrough;for(const o of t){const t=`--${e}\r\nContent-Type: ${o["Content-Type"]}\r\n\r\n`;a.write(t);if(typeof o.body==="string"){a.write(o.body);a.write("\r\n")}else{o.body.pipe(a,{end:false});o.body.on("end",(()=>{a.write("\r\n");a.write(i);a.end()}))}}return a}function teenyRequest(e,t){const{uri:i,options:m}=requestToFetchOptions(e);const h=e.multipart;if(e.multipart&&h.length===2){if(!t){throw new Error("Multipart without callback is not implemented.")}const e=d.v4();m.headers["Content-Type"]=`multipart/related; boundary=${e}`;m.body=createMultipartStream(e,h);teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const a=fetchToRequestResponse(m,e);const o=a.body;if(i==="application/json"||i==="application/json; charset=utf-8"){e.json().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}));return}e.text().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}))}),(e=>{teenyRequest.stats.requestFinished();t(e,null,null)}));return}if(t===undefined){const e=P(new o.PassThrough);let t;e.once("reading",(()=>{if(t){(0,o.pipeline)(t,e,(()=>{}))}else{e.once("response",(()=>{(0,o.pipeline)(t,e,(()=>{}))}))}}));m.compress=false;teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((i=>{teenyRequest.stats.requestFinished();t=i.body;t.on("error",(t=>{e.emit("error",t)}));const a=fetchToRequestResponse(m,i);e.emit("response",a)}),(t=>{teenyRequest.stats.requestFinished();e.emit("error",t)}));return e}teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const a=fetchToRequestResponse(m,e);const o=a.body;if(i==="application/json"||i==="application/json; charset=utf-8"){if(a.statusCode===204){t(null,a,o);return}e.json().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}));return}e.text().then((i=>{const a=fetchToRequestResponse(m,e);a.body=i;t(null,a,i)}),(e=>{t(e,a,o)}))}),(e=>{teenyRequest.stats.requestFinished();t(e,null,null)}));return}t.teenyRequest=teenyRequest;teenyRequest.defaults=e=>(t,i)=>{const a={...e,...t};if(i===undefined){return teenyRequest(a)}teenyRequest(a,i)};teenyRequest.stats=new h.TeenyStatistics;teenyRequest.resetStats=()=>{teenyRequest.stats=new h.TeenyStatistics(teenyRequest.stats.getOptions())}},77954:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=i(24434);const d=a(i(2830));const m=a(i(44446));const h=d.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends o.EventEmitter{constructor(e,t){super();let i=t;if(typeof e==="function"){this.callback=e}else if(e){i=e}this.timeout=null;if(i&&typeof i.timeout==="number"){this.timeout=i.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,i){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const i=Object.assign({},t);if(typeof i.secureEndpoint!=="boolean"){i.secureEndpoint=isSecureEndpoint()}if(i.host==null){i.host="localhost"}if(i.port==null){i.port=i.secureEndpoint?443:80}if(i.protocol==null){i.protocol=i.secureEndpoint?"https:":"http:"}if(i.host&&i.path){delete i.path}delete i.agent;delete i.hostname;delete i._defaultAgent;delete i.defaultPort;delete i.createConnection;e._last=true;e.shouldKeepAlive=false;let a=false;let o=null;const d=i.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{o=null;a=true;const e=new Error(`A "socket" was not created for HTTP request before ${d}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(a)return;if(o!==null){clearTimeout(o);o=null}onerror(e)};const onsocket=t=>{if(a)return;if(o!=null){clearTimeout(o);o=null}if(isAgent(t)){h("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,i);return}if(t){t.once("free",(()=>{this.freeSocket(t,i)}));e.onSocket(t);return}const d=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(d)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){h("Converting legacy callback function to promise");this.promisifiedCallback=m.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof d==="number"&&d>0){o=setTimeout(ontimeout,d)}if("port"in i&&typeof i.port!=="number"){i.port=Number(i.port)}try{h("Resolving socket for %o request: %o",i.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,i)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){h("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){h("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},44446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,i){return new Promise(((a,o)=>{e.call(this,t,i,((e,t)=>{if(e){o(e)}else{a(t)}}))}))}}t["default"]=promisify},23034:function(e,t,i){"use strict";var a=this&&this.__awaiter||function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const d=o(i(69278));const m=o(i(64756));const h=o(i(87016));const P=o(i(2830));const _=o(i(48662));const L=i(77954);const j=(0,P.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends L.Agent{constructor(e){let t;if(typeof e==="string"){t=h.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}j("Creating new HttpProxyAgent instance: %o",t);super(t);const i=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,t){return a(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:a}=this;const o=h.default.parse(e.path);if(!o.protocol){o.protocol="http:"}if(!o.hostname){o.hostname=t.hostname||t.host||null}if(o.port==null&&typeof t.port){o.port=String(t.port)}if(o.port==="80"){o.port=""}e.path=h.default.format(o);if(i.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`)}let P;if(a){j("Creating `tls.Socket`: %o",i);P=m.default.connect(i)}else{j("Creating `net.Socket`: %o",i);P=d.default.connect(i)}if(e._header){let t;let i;j("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){j("Patching connection write() output buffer with updated header");t=e.output[0];i=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(i);j("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){j("Patching connection write() output buffer with updated header");t=e.outputData[0].data;i=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(i);j("Output buffer: %o",e.outputData[0].data)}}yield(0,_.default)(P,"connect");return P}))}}t["default"]=HttpProxyAgent},875:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=a(i(23034));function createHttpProxyAgent(e){return new o.default(e)}(function(e){e.HttpProxyAgent=o.default;e.prototype=o.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},15299:function(e,t,i){"use strict";var a=this&&this.__awaiter||function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const d=o(i(69278));const m=o(i(64756));const h=o(i(87016));const P=o(i(42613));const _=o(i(2830));const L=i(77954);const j=o(i(27742));const U=_.default("https-proxy-agent:agent");class HttpsProxyAgent extends L.Agent{constructor(e){let t;if(typeof e==="string"){t=h.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}U("creating new HttpsProxyAgent instance: %o",t);super(t);const i=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in i)){i.ALPNProtocols=["http 1.1"]}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,t){return a(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:a}=this;let o;if(a){U("Creating `tls.Socket`: %o",i);o=m.default.connect(i)}else{U("Creating `net.Socket`: %o",i);o=d.default.connect(i)}const h=Object.assign({},i.headers);const _=`${t.host}:${t.port}`;let L=`CONNECT ${_} HTTP/1.1\r\n`;if(i.auth){h["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`}let{host:H,port:V,secureEndpoint:K}=t;if(!isDefaultPort(V,K)){H+=`:${V}`}h.Host=H;h.Connection="close";for(const e of Object.keys(h)){L+=`${e}: ${h[e]}\r\n`}const W=j.default(o);o.write(`${L}\r\n`);const{statusCode:J,buffered:X}=yield W;if(J===200){e.once("socket",resume);if(t.secureEndpoint){U("Upgrading socket connection to TLS");const e=t.servername||t.host;return m.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:o,servername:e}))}return o}o.destroy();const Y=new d.default.Socket({writable:false});Y.readable=true;e.once("socket",(e=>{U("replaying proxy buffer for failed request");P.default(e.listenerCount("data")>0);e.push(X);e.push(null)}));return Y}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const i={};let a;for(a in e){if(!t.includes(a)){i[a]=e[a]}}return i}},6518:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=a(i(15299));function createHttpsProxyAgent(e){return new o.default(e)}(function(e){e.HttpsProxyAgent=o.default;e.prototype=o.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},27742:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=a(i(2830));const d=o.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,i)=>{let a=0;const o=[];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("close",onclose);e.removeListener("readable",read)}function onclose(e){d("onclose had error %o",e)}function onend(){d("onend")}function onerror(e){cleanup();d("onerror %o",e);i(e)}function ondata(e){o.push(e);a+=e.length;const i=Buffer.concat(o,a);const m=i.indexOf("\r\n\r\n");if(m===-1){d("have not received end of HTTP headers yet...");read();return}const h=i.toString("ascii",0,i.indexOf("\r\n"));const P=+h.split(" ")[1];d("got proxy server response: %o",h);t({statusCode:P,buffered:i})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},58993:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return j.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return P.default}});var a=_interopRequireDefault(i(64684));var o=_interopRequireDefault(i(53142));var d=_interopRequireDefault(i(69655));var m=_interopRequireDefault(i(70880));var h=_interopRequireDefault(i(40194));var P=_interopRequireDefault(i(66257));var _=_interopRequireDefault(i(61579));var L=_interopRequireDefault(i(49019));var j=_interopRequireDefault(i(7814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},88061:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var o=md5;t["default"]=o},7966:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o={randomUUID:a.default.randomUUID};t["default"]=o},40194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";t["default"]=i},7814:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let t;const i=new Uint8Array(16);i[0]=(t=parseInt(e.slice(0,8),16))>>>24;i[1]=t>>>16&255;i[2]=t>>>8&255;i[3]=t&255;i[4]=(t=parseInt(e.slice(9,13),16))>>>8;i[5]=t&255;i[6]=(t=parseInt(e.slice(14,18),16))>>>8;i[7]=t&255;i[8]=(t=parseInt(e.slice(19,23),16))>>>8;i[9]=t&255;i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=t/4294967296&255;i[12]=t>>>24&255;i[13]=t>>>16&255;i[14]=t>>>8&255;i[15]=t&255;return i}var o=parse;t["default"]=o},1118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=i},88540:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=new Uint8Array(256);let d=o.length;function rng(){if(d>o.length-16){a.default.randomFillSync(o);d=0}return o.slice(d,d+=16)}},11352:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var o=sha1;t["default"]=o},49019:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.unsafeStringify=unsafeStringify;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=[];for(let e=0;e<256;++e){o.push((e+256).toString(16).slice(1))}function unsafeStringify(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}function stringify(e,t=0){const i=unsafeStringify(e,t);if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var d=stringify;t["default"]=d},64684:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(88540));var o=i(49019);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let d;let m;let h=0;let P=0;function v1(e,t,i){let _=t&&i||0;const L=t||new Array(16);e=e||{};let j=e.node||d;let U=e.clockseq!==undefined?e.clockseq:m;if(j==null||U==null){const t=e.random||(e.rng||a.default)();if(j==null){j=d=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(U==null){U=m=(t[6]<<8|t[7])&16383}}let H=e.msecs!==undefined?e.msecs:Date.now();let V=e.nsecs!==undefined?e.nsecs:P+1;const K=H-h+(V-P)/1e4;if(K<0&&e.clockseq===undefined){U=U+1&16383}if((K<0||H>h)&&e.nsecs===undefined){V=0}if(V>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}h=H;P=V;m=U;H+=122192928e5;const W=((H&268435455)*1e4+V)%4294967296;L[_++]=W>>>24&255;L[_++]=W>>>16&255;L[_++]=W>>>8&255;L[_++]=W&255;const J=H/4294967296*1e4&268435455;L[_++]=J>>>8&255;L[_++]=J&255;L[_++]=J>>>24&15|16;L[_++]=J>>>16&255;L[_++]=U>>>8|128;L[_++]=U&255;for(let e=0;e<6;++e){L[_+e]=j[e]}return t||(0,o.unsafeStringify)(L)}var _=v1;t["default"]=_},53142:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(44575));var o=_interopRequireDefault(i(88061));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v3",48,o.default);var m=d;t["default"]=m},44575:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.URL=t.DNS=void 0;t["default"]=v35;var a=i(49019);var o=_interopRequireDefault(i(7814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let i=0;i<e.length;++i){t.push(e.charCodeAt(i))}return t}const d="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=d;const m="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=m;function v35(e,t,i){function generateUUID(e,d,m,h){var P;if(typeof e==="string"){e=stringToBytes(e)}if(typeof d==="string"){d=(0,o.default)(d)}if(((P=d)===null||P===void 0?void 0:P.length)!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let _=new Uint8Array(16+e.length);_.set(d);_.set(e,d.length);_=i(_);_[6]=_[6]&15|t;_[8]=_[8]&63|128;if(m){h=h||0;for(let e=0;e<16;++e){m[h+e]=_[e]}return m}return(0,a.unsafeStringify)(_)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=d;generateUUID.URL=m;return generateUUID}},69655:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(7966));var o=_interopRequireDefault(i(88540));var d=i(49019);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,i){if(a.default.randomUUID&&!t&&!e){return a.default.randomUUID()}e=e||{};const m=e.random||(e.rng||o.default)();m[6]=m[6]&15|64;m[8]=m[8]&63|128;if(t){i=i||0;for(let e=0;e<16;++e){t[i+e]=m[e]}return t}return(0,d.unsafeStringify)(m)}var m=v4;t["default"]=m},70880:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(44575));var o=_interopRequireDefault(i(11352));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v5",80,o.default);var m=d;t["default"]=m},61579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(1118));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var o=validate;t["default"]=o},66257:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.slice(14,15),16)}var o=version;t["default"]=o},1552:(e,t,i)=>{"use strict";var a=i(24876);var o=i(92472);var d={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var i=o.length-1;while(t<=i){var a=Math.floor((t+i)/2);var d=o[a];if(d[0][0]<=e&&d[0][1]>=e){return d}else if(d[0][0]>e){i=a-1}else{t=a+1}}return null}var m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(m,"_").length}function mapChars(e,t,i){var a=false;var o="";var m=countSymbols(e);for(var h=0;h<m;++h){var P=e.codePointAt(h);var _=findStatus(P);switch(_[1]){case"disallowed":a=true;o+=String.fromCodePoint(P);break;case"ignored":break;case"mapped":o+=String.fromCodePoint.apply(String,_[2]);break;case"deviation":if(i===d.TRANSITIONAL){o+=String.fromCodePoint.apply(String,_[2])}else{o+=String.fromCodePoint(P)}break;case"valid":o+=String.fromCodePoint(P);break;case"disallowed_STD3_mapped":if(t){a=true;o+=String.fromCodePoint(P)}else{o+=String.fromCodePoint.apply(String,_[2])}break;case"disallowed_STD3_valid":if(t){a=true}o+=String.fromCodePoint(P);break}}return{string:o,error:a}}var h=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function validateLabel(e,t){if(e.substr(0,4)==="xn--"){e=a.toUnicode(e);t=d.NONTRANSITIONAL}var i=false;if(normalize(e)!==e||e[3]==="-"&&e[4]==="-"||e[0]==="-"||e[e.length-1]==="-"||e.indexOf(".")!==-1||e.search(h)===0){i=true}var o=countSymbols(e);for(var m=0;m<o;++m){var P=findStatus(e.codePointAt(m));if(processing===d.TRANSITIONAL&&P[1]!=="valid"||processing===d.NONTRANSITIONAL&&P[1]!=="valid"&&P[1]!=="deviation"){i=true;break}}return{label:e,error:i}}function processing(e,t,i){var a=mapChars(e,t,i);a.string=normalize(a.string);var o=a.string.split(".");for(var d=0;d<o.length;++d){try{var m=validateLabel(o[d]);o[d]=m.label;a.error=a.error||m.error}catch(e){a.error=true}}return{string:o.join("."),error:a.error}}e.exports.toASCII=function(e,t,i,o){var d=processing(e,t,i);var m=d.string.split(".");m=m.map((function(e){try{return a.toASCII(e)}catch(t){d.error=true;return e}}));if(o){var h=m.slice(0,m.length-1).join(".").length;if(h.length>253||h.length===0){d.error=true}for(var P=0;P<m.length;++P){if(m.length>63||m.length===0){d.error=true;break}}}if(d.error)return null;return m.join(".")};e.exports.toUnicode=function(e,t){var i=processing(e,t,d.NONTRANSITIONAL);return{domain:i.string,error:i.error}};e.exports.PROCESSING_OPTIONS=d},61860:e=>{var t;var i;var a;var o;var d;var m;var h;var P;var _;var L;var j;var U;var H;var V;var K;var W;var J;var X;var Y;var Q;var Z;var ee;var te;var ne;var re;var ie;var ae;var oe;var se;var ce;var le;var ue;(function(t){var i=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(i,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(i,createExporter(e.exports)))}else{t(createExporter(i))}function createExporter(e,t){if(e!==i){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(i,a){return e[i]=t?t(i,a):a}}})((function(e){var de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");de(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};i=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++){t=arguments[i];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};a=function(e,t){var i={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0)i[a]=e[a];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++){if(t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o]))i[a[o]]=e[a[o]]}return i};o=function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};d=function(e,t){return function(i,a){t(i,a,e)}};m=function(e,t,i,a,o,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var m=a.kind,h=m==="getter"?"get":m==="setter"?"set":"value";var P=!t&&e?a["static"]?e:e.prototype:null;var _=t||(P?Object.getOwnPropertyDescriptor(P,a.name):{});var L,j=false;for(var U=i.length-1;U>=0;U--){var H={};for(var V in a)H[V]=V==="access"?{}:a[V];for(var V in a.access)H.access[V]=a.access[V];H.addInitializer=function(e){if(j)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,i[U])(m==="accessor"?{get:_.get,set:_.set}:_[h],H);if(m==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(L=accept(K.get))_.get=L;if(L=accept(K.set))_.set=L;if(L=accept(K.init))o.unshift(L)}else if(L=accept(K)){if(m==="field")o.unshift(L);else _[h]=L}}if(P)Object.defineProperty(P,a.name,_);j=true};h=function(e,t,i){var a=arguments.length>2;for(var o=0;o<t.length;o++){i=a?t[o].call(e,i):t[o].call(e)}return a?i:void 0};P=function(e){return typeof e==="symbol"?e:"".concat(e)};_=function(e,t,i){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:i?"".concat(i," ",t):t})};L=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};j=function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};U=function(e,t){var i={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},a,o,d,m=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return m.next=verb(0),m["throw"]=verb(1),m["return"]=verb(2),typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function verb(e){return function(t){return step([e,t])}}function step(h){if(a)throw new TypeError("Generator is already executing.");while(m&&(m=0,h[0]&&(i=0)),i)try{if(a=1,o&&(d=h[0]&2?o["return"]:h[0]?o["throw"]||((d=o["return"])&&d.call(o),0):o.next)&&!(d=d.call(o,h[1])).done)return d;if(o=0,d)h=[h[0]&2,d.value];switch(h[0]){case 0:case 1:d=h;break;case 4:i.label++;return{value:h[1],done:false};case 5:i.label++;o=h[1];h=[0];continue;case 7:h=i.ops.pop();i.trys.pop();continue;default:if(!(d=i.trys,d=d.length>0&&d[d.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!d||h[1]>d[0]&&h[1]<d[3])){i.label=h[1];break}if(h[0]===6&&i.label<d[1]){i.label=d[1];d=h;break}if(d&&i.label<d[2]){i.label=d[2];i.ops.push(h);break}if(d[2])i.ops.pop();i.trys.pop();continue}h=t.call(e,i)}catch(e){h=[6,e];o=0}finally{a=d=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};H=function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))se(t,e,i)};se=Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]};V=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,i=t&&e[t],a=0;if(i)return i.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var a=i.call(e),o,d=[],m;try{while((t===void 0||t-- >0)&&!(o=a.next()).done)d.push(o.value)}catch(e){m={error:e}}finally{try{if(o&&!o.done&&(i=a["return"]))i.call(a)}finally{if(m)throw m.error}}return d};W=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(K(arguments[t]));return e};J=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var a=Array(e),o=0,t=0;t<i;t++)for(var d=arguments[t],m=0,h=d.length;m<h;m++,o++)a[o]=d[m];return a};X=function(e,t,i){if(i||arguments.length===2)for(var a=0,o=t.length,d;a<o;a++){if(d||!(a in t)){if(!d)d=Array.prototype.slice.call(t,0,a);d[a]=t[a]}}return e.concat(d||Array.prototype.slice.call(t))};Y=function(e){return this instanceof Y?(this.v=e,this):new Y(e)};Q=function(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(e,t||[]),o,d=[];return o=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),o[Symbol.asyncIterator]=function(){return this},o;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(a[e]){o[e]=function(t){return new Promise((function(i,a){d.push([e,t,i,a])>1||resume(e,t)}))};if(t)o[e]=t(o[e])}}function resume(e,t){try{step(a[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof Y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Z=function(e){var t,i;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(a,o){t[a]=e[a]?function(t){return(i=!i)?{value:Y(e[a](t)),done:false}:o?o(t):t}:o}};ee=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof V==="function"?V(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(t){i[t]=e[t]&&function(i){return new Promise((function(a,o){i=e[t](i),settle(a,o,i.done,i.value)}))}}function settle(e,t,i,a){Promise.resolve(a).then((function(t){e({value:t,done:i})}),t)}};te=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var pe=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};ne=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),a=0;a<i.length;a++)if(i[a]!=="default")se(t,e,i[a]);pe(t,e);return t};re=function(e){return e&&e.__esModule?e:{default:e}};ie=function(e,t,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(e):a?a.value:t.get(e)};ae=function(e,t,i,a,o){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?o.call(e,i):o?o.value=i:t.set(e,i),i};oe=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};ce=function(e,t,i){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var a,o;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose];if(i)o=a}if(typeof a!=="function")throw new TypeError("Object not disposable.");if(o)a=function(){try{o.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:a,async:i})}else if(i){e.stack.push({async:true})}return t};var me=typeof SuppressedError==="function"?SuppressedError:function(e,t,i){var a=new Error(i);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};le=function(e){function fail(t){e.error=e.hasError?new me(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,i=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&i===1)return i=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return i|=2,Promise.resolve(a).then(next,(function(e){fail(e);return next()}))}else i|=1}catch(e){fail(e)}}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};ue=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,i,a,o,d){return i?t?".jsx":".js":a&&(!o||!d)?e:a+o+"."+d.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",i);e("__rest",a);e("__decorate",o);e("__param",d);e("__esDecorate",m);e("__runInitializers",h);e("__propKey",P);e("__setFunctionName",_);e("__metadata",L);e("__awaiter",j);e("__generator",U);e("__exportStar",H);e("__createBinding",se);e("__values",V);e("__read",K);e("__spread",W);e("__spreadArrays",J);e("__spreadArray",X);e("__await",Y);e("__asyncGenerator",Q);e("__asyncDelegator",Z);e("__asyncValues",ee);e("__makeTemplateObject",te);e("__importStar",ne);e("__importDefault",re);e("__classPrivateFieldGet",ie);e("__classPrivateFieldSet",ae);e("__classPrivateFieldIn",oe);e("__addDisposableResource",ce);e("__disposeResources",le);e("__rewriteRelativeImportExtension",ue)}));0&&0},24488:(e,t,i)=>{e.exports=i(39023).deprecate},12048:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return P.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return j.default}});var a=_interopRequireDefault(i(6415));var o=_interopRequireDefault(i(51697));var d=_interopRequireDefault(i(4676));var m=_interopRequireDefault(i(69771));var h=_interopRequireDefault(i(37723));var P=_interopRequireDefault(i(15868));var _=_interopRequireDefault(i(36200));var L=_interopRequireDefault(i(37597));var j=_interopRequireDefault(i(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var o=md5;t["default"]=o},37723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";t["default"]=i},17267:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let t;const i=new Uint8Array(16);i[0]=(t=parseInt(e.slice(0,8),16))>>>24;i[1]=t>>>16&255;i[2]=t>>>8&255;i[3]=t&255;i[4]=(t=parseInt(e.slice(9,13),16))>>>8;i[5]=t&255;i[6]=(t=parseInt(e.slice(14,18),16))>>>8;i[7]=t&255;i[8]=(t=parseInt(e.slice(19,23),16))>>>8;i[9]=t&255;i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=t/4294967296&255;i[12]=t>>>24&255;i[13]=t>>>16&255;i[14]=t>>>8&255;i[15]=t&255;return i}var o=parse;t["default"]=o},67879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=i},12973:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=new Uint8Array(256);let d=o.length;function rng(){if(d>o.length-16){a.default.randomFillSync(o);d=0}return o.slice(d,d+=16)}},507:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var o=sha1;t["default"]=o},37597:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=[];for(let e=0;e<256;++e){o.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const i=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var d=stringify;t["default"]=d},6415:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(12973));var o=_interopRequireDefault(i(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let d;let m;let h=0;let P=0;function v1(e,t,i){let _=t&&i||0;const L=t||new Array(16);e=e||{};let j=e.node||d;let U=e.clockseq!==undefined?e.clockseq:m;if(j==null||U==null){const t=e.random||(e.rng||a.default)();if(j==null){j=d=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(U==null){U=m=(t[6]<<8|t[7])&16383}}let H=e.msecs!==undefined?e.msecs:Date.now();let V=e.nsecs!==undefined?e.nsecs:P+1;const K=H-h+(V-P)/1e4;if(K<0&&e.clockseq===undefined){U=U+1&16383}if((K<0||H>h)&&e.nsecs===undefined){V=0}if(V>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}h=H;P=V;m=U;H+=122192928e5;const W=((H&268435455)*1e4+V)%4294967296;L[_++]=W>>>24&255;L[_++]=W>>>16&255;L[_++]=W>>>8&255;L[_++]=W&255;const J=H/4294967296*1e4&268435455;L[_++]=J>>>8&255;L[_++]=J&255;L[_++]=J>>>24&15|16;L[_++]=J>>>16&255;L[_++]=U>>>8|128;L[_++]=U&255;for(let e=0;e<6;++e){L[_+e]=j[e]}return t||(0,o.default)(L)}var _=v1;t["default"]=_},51697:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(92930));var o=_interopRequireDefault(i(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v3",48,o.default);var m=d;t["default"]=m},92930:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var a=_interopRequireDefault(i(37597));var o=_interopRequireDefault(i(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let i=0;i<e.length;++i){t.push(e.charCodeAt(i))}return t}const d="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=d;const m="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=m;function _default(e,t,i){function generateUUID(e,d,m,h){if(typeof e==="string"){e=stringToBytes(e)}if(typeof d==="string"){d=(0,o.default)(d)}if(d.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let P=new Uint8Array(16+e.length);P.set(d);P.set(e,d.length);P=i(P);P[6]=P[6]&15|t;P[8]=P[8]&63|128;if(m){h=h||0;for(let e=0;e<16;++e){m[h+e]=P[e]}return m}return(0,a.default)(P)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=d;generateUUID.URL=m;return generateUUID}},4676:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(12973));var o=_interopRequireDefault(i(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,i){e=e||{};const d=e.random||(e.rng||a.default)();d[6]=d[6]&15|64;d[8]=d[8]&63|128;if(t){i=i||0;for(let e=0;e<16;++e){t[i+e]=d[e]}return t}return(0,o.default)(d)}var d=v4;t["default"]=d},69771:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(92930));var o=_interopRequireDefault(i(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v5",80,o.default);var m=d;t["default"]=m},36200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var o=validate;t["default"]=o},15868:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var o=version;t["default"]=o},37125:e=>{"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const i=t.unsigned?0:-Math.pow(2,e);const a=Math.pow(2,e)-1;const o=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const d=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,m){if(!m)m={};let h=+e;if(m.enforceRange){if(!Number.isFinite(h)){throw new TypeError("Argument is not a finite number")}h=sign(h)*Math.floor(Math.abs(h));if(h<i||h>a){throw new TypeError("Argument is not in byte range")}return h}if(!isNaN(h)&&m.clamp){h=evenRound(h);if(h<i)h=i;if(h>a)h=a;return h}if(!Number.isFinite(h)||h===0){return 0}h=sign(h)*Math.floor(Math.abs(h));h=h%o;if(!t.unsigned&&h>=d){return h-o}else if(t.unsigned){if(h<0){h+=o}else if(h===-0){return 0}}return h}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const i=String(e);let a=undefined;for(let e=0;(a=i.codePointAt(e))!==undefined;++e){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return i};t["USVString"]=function(e){const t=String(e);const i=t.length;const a=[];for(let e=0;e<i;++e){const o=t.charCodeAt(e);if(o<55296||o>57343){a.push(String.fromCodePoint(o))}else if(56320<=o&&o<=57343){a.push(String.fromCodePoint(65533))}else{if(e===i-1){a.push(String.fromCodePoint(65533))}else{const i=t.charCodeAt(e+1);if(56320<=i&&i<=57343){const t=o&1023;const d=i&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*t+d));++e}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},23184:(e,t,i)=>{"use strict";const a=i(20905);t.implementation=class URLImpl{constructor(e){const t=e[0];const i=e[1];let o=null;if(i!==undefined){o=a.basicURLParse(i);if(o==="failure"){throw new TypeError("Invalid base URL")}}const d=a.basicURLParse(t,{baseURL:o});if(d==="failure"){throw new TypeError("Invalid URL")}this._url=d}get href(){return a.serializeURL(this._url)}set href(e){const t=a.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){a.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return a.serializeHost(e.host)}return a.serializeHost(e.host)+":"+a.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{a.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const i=e[0]==="?"?e.substring(1):e;t.query="";a.basicURLParse(i,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";a.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},66633:(e,t,i)=>{"use strict";const a=i(37125);const o=i(39857);const d=i(23184);const m=o.implSymbol;function URL(t){if(!this||this[m]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const i=[];for(let e=0;e<arguments.length&&e<2;++e){i[e]=arguments[e]}i[0]=a["USVString"](i[0]);if(i[1]!==undefined){i[1]=a["USVString"](i[1])}e.exports.setup(this,i)}URL.prototype.toJSON=function toJSON(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}const t=[];for(let e=0;e<arguments.length&&e<0;++e){t[e]=arguments[e]}return this[m].toJSON.apply(this[m],t)};Object.defineProperty(URL.prototype,"href",{get(){return this[m].href},set(e){e=a["USVString"](e);this[m].href=e},enumerable:true,configurable:true});URL.prototype.toString=function(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}return this.href};Object.defineProperty(URL.prototype,"origin",{get(){return this[m].origin},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"protocol",{get(){return this[m].protocol},set(e){e=a["USVString"](e);this[m].protocol=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"username",{get(){return this[m].username},set(e){e=a["USVString"](e);this[m].username=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"password",{get(){return this[m].password},set(e){e=a["USVString"](e);this[m].password=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"host",{get(){return this[m].host},set(e){e=a["USVString"](e);this[m].host=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hostname",{get(){return this[m].hostname},set(e){e=a["USVString"](e);this[m].hostname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"port",{get(){return this[m].port},set(e){e=a["USVString"](e);this[m].port=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"pathname",{get(){return this[m].pathname},set(e){e=a["USVString"](e);this[m].pathname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"search",{get(){return this[m].search},set(e){e=a["USVString"](e);this[m].search=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hash",{get(){return this[m].hash},set(e){e=a["USVString"](e);this[m].hash=e},enumerable:true,configurable:true});e.exports={is(e){return!!e&&e[m]instanceof d.implementation},create(e,t){let i=Object.create(URL.prototype);this.setup(i,e,t);return i},setup(e,t,i){if(!i)i={};i.wrapper=e;e[m]=new d.implementation(t,i);e[m][o.wrapperSymbol]=e},interface:URL,expose:{Window:{URL:URL},Worker:{URL:URL}}}},62686:(e,t,i)=>{"use strict";t.URL=i(66633)["interface"];t.serializeURL=i(20905).serializeURL;t.serializeURLOrigin=i(20905).serializeURLOrigin;t.basicURLParse=i(20905).basicURLParse;t.setTheUsername=i(20905).setTheUsername;t.setThePassword=i(20905).setThePassword;t.serializeHost=i(20905).serializeHost;t.serializeInteger=i(20905).serializeInteger;t.parseURL=i(20905).parseURL},20905:(e,t,i)=>{"use strict";const a=i(24876);const o=i(1552);const d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const m=Symbol("failure");function countSymbols(e){return a.ucs2.decode(e).length}function at(e,t){const i=e[t];return isNaN(i)?undefined:String.fromCodePoint(i)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return d[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return d[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let i="";for(let e=0;e<t.length;++e){i+=percentEncode(t[e])}return i}function utf8PercentDecode(e){const t=new Buffer(e);const i=[];for(let e=0;e<t.length;++e){if(t[e]!==37){i.push(t[e])}else if(t[e]===37&&isASCIIHex(t[e+1])&&isASCIIHex(t[e+2])){i.push(parseInt(t.slice(e+1,e+3).toString(),16));e+=2}else{i.push(t[e])}}return new Buffer(i).toString()}function isC0ControlPercentEncode(e){return e<=31||e>126}const h=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||h.has(e)}const P=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||P.has(e)}function percentEncodeChar(e,t){const i=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(i)}return i}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const i=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(i.test(e)){return m}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const i=[];for(const a of t){if(a===""){return e}const t=parseIPv4Number(a);if(t===m){return e}i.push(t)}for(let e=0;e<i.length-1;++e){if(i[e]>255){return m}}if(i[i.length-1]>=Math.pow(256,5-i.length)){return m}let a=i.pop();let o=0;for(const e of i){a+=e*Math.pow(256,3-o);++o}return a}function serializeIPv4(e){let t="";let i=e;for(let e=1;e<=4;++e){t=String(i%256)+t;if(e!==4){t="."+t}i=Math.floor(i/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let i=0;let o=null;let d=0;e=a.ucs2.decode(e);if(e[d]===58){if(e[d+1]!==58){return m}d+=2;++i;o=i}while(d<e.length){if(i===8){return m}if(e[d]===58){if(o!==null){return m}++d;++i;o=i;continue}let a=0;let h=0;while(h<4&&isASCIIHex(e[d])){a=a*16+parseInt(at(e,d),16);++d;++h}if(e[d]===46){if(h===0){return m}d-=h;if(i>6){return m}let a=0;while(e[d]!==undefined){let o=null;if(a>0){if(e[d]===46&&a<4){++d}else{return m}}if(!isASCIIDigit(e[d])){return m}while(isASCIIDigit(e[d])){const t=parseInt(at(e,d));if(o===null){o=t}else if(o===0){return m}else{o=o*10+t}if(o>255){return m}++d}t[i]=t[i]*256+o;++a;if(a===2||a===4){++i}}if(a!==4){return m}break}else if(e[d]===58){++d;if(e[d]===undefined){return m}}else if(e[d]!==undefined){return m}t[i]=a;++i}if(o!==null){let e=i-o;i=7;while(i!==0&&e>0){const a=t[o+e-1];t[o+e-1]=t[i];t[i]=a;--i;--e}}else if(o===null&&i!==8){return m}return t}function serializeIPv6(e){let t="";const i=findLongestZeroSequence(e);const a=i.idx;let o=false;for(let i=0;i<=7;++i){if(o&&e[i]===0){continue}else if(o){o=false}if(a===i){const e=i===0?"::":":";t+=e;o=true;continue}t+=e[i].toString(16);if(i!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return m}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const i=utf8PercentDecode(e);const a=o.toASCII(i,false,o.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return m}if(containsForbiddenHostCodePoint(a)){return m}const d=parseIPv4(a);if(typeof d==="number"||d===m){return d}return a}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return m}let t="";const i=a.ucs2.decode(e);for(let e=0;e<i.length;++e){t+=percentEncodeChar(i[e],isC0ControlPercentEncode)}return t}function findLongestZeroSequence(e){let t=null;let i=1;let a=null;let o=0;for(let d=0;d<e.length;++d){if(e[d]!==0){if(o>i){t=a;i=o}a=null;o=0}else{if(a===null){a=d}++o}}if(o>i){t=a;i=o}return{idx:t,len:i}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,i,o,d){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=i||"utf-8";this.stateOverride=d;this.url=o;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const h=trimTabAndNewline(this.input);if(h!==this.input){this.parseError=true}this.input=h;this.state=d||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const i=this["parse "+this.state](e,t);if(!i){break}else if(i===m){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return m}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return m}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return m}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=true;continue}const i=percentEncodeChar(e,isUserinfoPercentEncode);if(this.passwordTokenSeenFlag){this.url.password+=i}else{this.url.username+=i}}this.buffer=""}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){if(this.atFlag&&this.buffer===""){this.parseError=true;return m}this.pointer-=countSymbols(this.buffer)+1;this.buffer="";this.state="host"}else{this.buffer+=t}return true};URLStateMachine.prototype["parse hostname"]=URLStateMachine.prototype["parse host"]=function parseHostName(e,t){if(this.stateOverride&&this.url.scheme==="file"){--this.pointer;this.state="file host"}else if(e===58&&!this.arrFlag){if(this.buffer===""){this.parseError=true;return m}const e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}this.url.host=e;this.buffer="";this.state="port";if(this.stateOverride==="hostname"){return false}}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){--this.pointer;if(isSpecial(this.url)&&this.buffer===""){this.parseError=true;return m}else if(this.stateOverride&&this.buffer===""&&(includesCredentials(this.url)||this.url.port!==null)){this.parseError=true;return false}const e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}this.url.host=e;this.buffer="";this.state="path start";if(this.stateOverride){return false}}else{if(e===91){this.arrFlag=true}else if(e===93){this.arrFlag=false}this.buffer+=t}return true};URLStateMachine.prototype["parse port"]=function parsePort(e,t){if(isASCIIDigit(e)){this.buffer+=t}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92||this.stateOverride){if(this.buffer!==""){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1){this.parseError=true;return m}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return m}return true};const _=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!_.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e){if(t[e]<33||t[e]>126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let i=e.scheme+":";if(e.host!==null){i+="//";if(e.username!==""||e.password!==""){i+=e.username;if(e.password!==""){i+=":"+e.password}i+="@"}i+=serializeHost(e.host);if(e.port!==null){i+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){i+="//"}if(e.cannotBeABaseURL){i+=e.path[0]}else{for(const t of e.path){i+="/"+t}}if(e.query!==null){i+="?"+e.query}if(!t&&e.fragment!==null){i+="#"+e.fragment}return i}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const i=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(i.failure){return"failure"}return i.url};e.exports.setTheUsername=function(e,t){e.username="";const i=a.ucs2.decode(t);for(let t=0;t<i.length;++t){e.username+=percentEncodeChar(i[t],isUserinfoPercentEncode)}};e.exports.setThePassword=function(e,t){e.password="";const i=a.ucs2.decode(t);for(let t=0;t<i.length;++t){e.password+=percentEncodeChar(i[t],isUserinfoPercentEncode)}};e.exports.serializeHost=serializeHost;e.exports.cannotHaveAUsernamePasswordPort=cannotHaveAUsernamePasswordPort;e.exports.serializeInteger=function(e){return String(e)};e.exports.parseURL=function(t,i){if(i===undefined){i={}}return e.exports.basicURLParse(t,{baseURL:i.baseURL,encodingOverride:i.encodingOverride})}},39857:e=>{"use strict";e.exports.mixin=function mixin(e,t){const i=Object.getOwnPropertyNames(t);for(let a=0;a<i.length;++a){Object.defineProperty(e,i[a],Object.getOwnPropertyDescriptor(t,i[a]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},58264:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var i=0;i<t.length;i++){t[i]=arguments[i]}var a=e.apply(this,t);var o=t[t.length-1];if(typeof a==="function"&&a!==o){Object.keys(o).forEach((function(e){a[e]=o[e]}))}return a}}},30538:e=>{class Node{constructor(e){this.value=e;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this._head){this._tail.next=t;this._tail=t}else{this._head=t;this._tail=t}this._size++}dequeue(){const e=this._head;if(!e){return}this._head=this._head.next;this._size--;return e.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;while(e){yield e.value;e=e.next}}}e.exports=Queue},92401:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitHubAdapter=void 0;const a=i(1622);const o=i(72633);class GitHubAdapter{token;owner;repo;projectId;config;constructor(e){this.config=e;const t=new o.Credentials;const i=Object.prototype.hasOwnProperty.call(process.env,e.tokenEnv)?process.env[e.tokenEnv]:undefined;let a=t.getToken("github.com")||i||process.env.GITHUB_TOKEN;if(!a&&(e.tokenEnv.startsWith("ghp_")||e.tokenEnv.startsWith("github_pat_")||e.tokenEnv.startsWith("ghs_"))){a=e.tokenEnv}this.token=a||"";this.owner=e.owner;this.repo=e.repository;this.projectId=e.projectId}async ensureToken(){if(this.token)return;a.notify.push({type:"error",title:`GitHub token not found`,detail:[`Environment variable "${this.config.tokenEnv}" is not set.`],close:true})}async request(e,t,i){await this.ensureToken();const a=t.startsWith("http")?t:`https://api.github.com${t}`;const o=await fetch(a,{method:e,headers:{Authorization:`Bearer ${this.token}`,Accept:"application/vnd.github.v3+json","X-GitHub-Api-Version":"2022-11-28","Content-Type":"application/json"},body:i?JSON.stringify(i):undefined});if(!o.ok){const e=await o.text();const t=new Error(e);t.name=`GitHub API Error [${o.status}]`;throw t}if(o.status===204){return null}return await o.json()}async graphql(e,t={}){await this.ensureToken();const i=await this.request("POST","https://api.github.com/graphql",{query:e,variables:t});if(i.errors&&i.errors.length>0){const e=new Error(JSON.stringify(i.errors));e.name="GitHub API Error";throw e}return i.data}async createIssue(e){const t=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues`,{title:e.title,body:e.body,labels:e.labels,assignees:e.assignees,milestone:e.milestone});return{id:t.id,number:t.number,title:t.title??"",state:t.state,node_id:t.node_id,created_at:t.created_at,updated_at:t.updated_at}}async updateIssue(e,t){const i=await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{title:t.title,body:t.body,labels:t.labels,assignees:t.assignees,milestone:t.milestone});return{id:i.id,number:i.number,title:i.title??"",state:i.state,node_id:i.node_id,created_at:i.created_at,updated_at:i.updated_at}}async closeIssue(e){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{state:"closed"})}async getIssue(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return{id:t.id,number:t.number,title:t.title??"",body:t.body??"",state:t.state,node_id:t.node_id,labels:t.labels?.map((e=>e.name))??[],assignees:t.assignees?.map((e=>e.login))??[],milestone:t.milestone?.title??""}}catch{return null}}async listIssuesByLabel(e){const t=[];let i=1;while(true){const a=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues?labels=${encodeURIComponent(e)}&state=all&per_page=100&page=${i}`);if(a.length===0)break;for(const e of a){t.push({id:e.id,number:e.number,title:e.title??"",state:e.state})}if(a.length<100)break;i++}return t}async getMilestoneByTitle(e){if(!e)return undefined;try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/milestones?state=all&per_page=100`);const i=t.find((t=>t.title.toLowerCase()===e.toLowerCase()));return i?i.number:undefined}catch{return undefined}}async createIssueComment(e,t){const i=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/comments`,{body:t});return{id:i.id}}async updateIssueComment(e,t){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/comments/${e}`,{body:t})}async listIssueComments(e){const t=[];let i=1;while(true){const a=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}/comments?per_page=100&page=${i}`);if(a.length===0)break;for(const e of a){t.push({id:e.id,body:e.body})}if(a.length<100)break;i++}return t}projectNodeId;projectFields;async resolveProjectMetadata(){if(this.projectNodeId&&this.projectFields)return{id:this.projectNodeId,fields:this.projectFields};if(!this.projectId)return undefined;const e=`\n id\n fields(first: 100) {\n nodes {\n ... on ProjectV2Field { id name dataType }\n ... on ProjectV2SingleSelectField { id name dataType options { id name } }\n ... on ProjectV2IterationField { id name dataType configuration { iterations { id title } } }\n }\n }\n `;try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n user(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.user?.projectV2?.id){this.projectNodeId=t.user.projectV2.id;this.projectFields=t.user.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n organization(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.organization?.projectV2?.id){this.projectNodeId=t.organization.projectV2.id;this.projectFields=t.organization.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}const t=i(80465);console.warn(t.yellow(`\n⚠️ Warning: Could not resolve GitHub Project V2 with ID ${this.projectId} for owner "${this.owner}".`));console.warn(t.yellow(` If "${this.owner}" is a User account and you are authenticating via a GitHub App,`));console.warn(t.yellow(` note that GitHub Apps are technically not allowed to access User-level Projects.`));console.warn(t.yellow(` Please use a Personal Access Token (PAT) instead.\n`));return undefined}async addToProject(e){const t=await this.resolveProjectMetadata();if(!t)return undefined;let i=0;const a=3;while(i<a){try{const i=await this.graphql(`\n mutation($projectId: ID!, $contentId: ID!) {\n addProjectV2ItemById(input: {projectId: $projectId, contentId: $contentId}) {\n item { id }\n }\n }\n `,{projectId:t.id,contentId:e});return i?.addProjectV2ItemById?.item?.id}catch(e){i++;if(i>=a){const t=new Error(`Failed to link issue to GitHub Project: ${e.message}`);t.name="GitHubProjectError";throw t}await new Promise((e=>setTimeout(e,1e3*Math.pow(2,i-1))))}}}async updateProjectItemFields(e,t){const i=await this.resolveProjectMetadata();if(!i||!i.fields)return;for(const[a,o]of Object.entries(t)){const t=i.fields.find((e=>e.name&&e.name.toLowerCase()===a.toLowerCase()));if(!t)continue;let d=undefined;if(t.dataType==="TEXT"){if(o!==undefined&&o!==null){d={text:String(o)}}}else if(t.dataType==="NUMBER"){if(o!==undefined&&o!==null){const e=Number(o);if(!isNaN(e)){d={number:e}}}}else if(t.dataType==="DATE"){if(o!==undefined&&o!==null){const e=String(o).split("T")[0];if(/^\d{4}-\d{2}-\d{2}$/.test(e)){d={date:e}}else{d={date:String(o)}}}}else if(t.dataType==="SINGLE_SELECT"&&t.options){if(typeof o!=="string")continue;const e=o.startsWith("@")?o.substring(1):o;const i=t.options.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(i){d={singleSelectOptionId:i.id}}}else if(t.dataType==="ITERATION"&&t.configuration?.iterations){if(typeof o!=="string")continue;const e=o.startsWith("@")?o.substring(1):o;const i=t.configuration.iterations.find((t=>t.title.toLowerCase()===e.toLowerCase()));if(i){d={iterationId:i.id}}}if(!d)continue;let m=0;const h=3;while(m<h){try{await this.graphql(`\n mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $value: ProjectV2FieldValue!) {\n updateProjectV2ItemFieldValue(input: {\n projectId: $projectId\n itemId: $itemId\n fieldId: $fieldId\n value: $value\n }) { projectV2Item { id } }\n }\n `,{projectId:i.id,itemId:e,fieldId:t.id,value:d});break}catch(e){m++;if(m>=h){const i=new Error(`Failed to assign custom field ${t.name}: ${e.message}`);i.name="GitHubProjectError";throw i}await new Promise((e=>setTimeout(e,1e3*Math.pow(2,m-1))))}}}}async getProjectItemFields(e){const t=await this.resolveProjectMetadata();if(!t||!t.fields)return{};try{const i=await this.graphql(`\n query($id: ID!) {\n node(id: $id) {\n ... on Issue {\n projectItems(first: 10) {\n nodes {\n project { id }\n fieldValues(first: 100) {\n nodes {\n ... on ProjectV2ItemFieldTextValue { text field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldNumberValue { number field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldDateValue { date field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldSingleSelectValue { name field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldIterationValue { title field { ... on ProjectV2FieldCommon { name } } }\n }\n }\n }\n }\n }\n }\n }\n `,{id:e});const a=i?.node?.projectItems?.nodes||[];const o=a.find((e=>e.project?.id===t.id));if(!o||!o.fieldValues||!o.fieldValues.nodes)return{};const d=Object.create(null);for(const e of o.fieldValues.nodes){const t=e.field?.name;if(!t)continue;let i="";if(e.text!==undefined)i=e.text;else if(e.name!==undefined)i=e.name;else if(e.title!==undefined)i=e.title;else if(e.date!==undefined)i=e.date;else if(e.number!==undefined)i=String(e.number);d[t.toLowerCase()]=i}return d}catch{return{}}}async getIssueNodeId(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return t.node_id??null}catch{return null}}formatRemoteId(e){return`${this.repo}:${e}`}async addSubIssue(e,t){try{await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/sub_issues`,{sub_issue_id:t,replace_parent:true})}catch(e){if(!e.message.includes("422")){throw e}}}}t.GitHubAdapter=GitHubAdapter},80573:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerResource=t.resource=void 0;const a=i(2560);const o=i(1622);const d=i(80465);const m=i(62978);class Resource{builtinTemplates=Object.create(null);userTemplates=Object.create(null);resolve(){const e=Object.values(this.builtinTemplates);const t=Object.values(this.userTemplates);return[...e,...t]}get(e){const t=this.resolve().find((t=>t.type===e));if(!t){o.notify.push({type:"error",title:`Unknown resource type: "${e}"`,detail:[`No template is registered for resource type "${e}".`,`Available types: ${this.resolve().map((e=>e.type)).join(", ")||"(none)"}`],close:true})}return t}registry(e,t="system"){if(t==="system"){this.builtinTemplates[e.type]=e}if(t==="user"){this.userTemplates[e.type]=e}}evaluate(e,t,i){const a=this.get(e);const o={};for(const e of a.fields){if(e.knownAfterApply)continue;o[e.name]=typeof e.value==="function"?e.value(t,i):e.value}return o}evaluateComments(e,t,i){const a=this.get(e);if(a.comments){return a.comments(t,i)}return[]}getSymbol(e){const t={add:(0,d.green)("+"),change:(0,d.yellow)("~"),destroy:(0,d.red)("-"),replace:`${(0,d.red)("-")}/${(0,d.green)("+")}`}[e];return t}getSymbols(e){const t=new Set(e.map((e=>e.action)));const i={add:`${(0,d.green)("+")} create`,change:`${(0,d.yellow)("~")} update in-place`,destroy:`${(0,d.red)("-")} destroy`,replace:`${(0,d.red)("-")}/${(0,d.green)("+")} destroy and then create replacement`};const a=[];if(t.has("add"))a.push(i.add);if(t.has("change"))a.push(i.change);if(t.has("destroy"))a.push(i.destroy);if(t.has("replace"))a.push(i.replace);return a.map((e=>` ${e}`)).join("\n")}format(e,t){const{action:i,scenario:a,resourceType:o,identity:h,oldAttributes:P}=e;const _=[];const L=this.get(o);const j=this.getSymbol(i);const pad=e=>e.padEnd(16);_.push(` ${j} resource "${o}" "${(0,m.formatIdentityDisplay)(h)}" {`);for(const e of L.fields){const o=typeof e.value==="function"?e.value(a,t):e.value;const h=P?P[e.name]:undefined;let L="";let U=false;if(e.knownAfterApply){L="(known after apply)";U=true}else if(typeof o==="object"&&o!==null&&!Array.isArray(o)){let e=h;if(!e||typeof e!=="object"||Array.isArray(e)){e=i==="destroy"?h:{}}const t=i==="change"||i==="add"||i==="replace";if(t&&e&&typeof e==="object"&&!Array.isArray(e)){const t=Array.from(new Set([...Object.keys(e),...Object.keys(o)])).sort();const a=[];a.push("{");for(const h of t){const t=e[h];const P=o[h];const _=`"${h}"`;if(i==="add"){const e=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.green)("+")} ${_}: ${e}`);U=true}else if(t===undefined){const e=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.green)("+")} ${_}: ${e}`);U=true}else if(P===undefined){const e=(0,m.formatHclValue)(t,2).trimStart();a.push(` ${(0,d.red)("-")} ${_}: ${e}`);U=true}else if(JSON.stringify(t)!==JSON.stringify(P)){const e=(0,m.formatHclValue)(t,2).trimStart();const i=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.yellow)("~")} ${_}: ${e} -> ${i}`);U=true}else{const e=(0,m.formatHclValue)(t,2).trimStart();a.push(` ${_}: ${e}`)}}a.push(" }");L=a.join("\n")}else{const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");U=true}}else if(Array.isArray(o)){const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");if(i==="change"){U=JSON.stringify(o)!==JSON.stringify(h)}else{U=true}}else if(typeof o==="string"&&o.includes("\n")){const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");if(i==="change"){U=o!==h}else{U=true}}else{if(i==="change"&&o!==h&&h!==undefined){L=`"${h}" -> "${o}"`;U=true}else{L=`"${o}"`;if(i==="change"){U=o!==h}else{U=true}}}if(i==="add"||i==="replace"){_.push(` ${j} ${pad(e.name)}= ${L}`)}else if(i==="change"){if(e.knownAfterApply){_.push(` ${pad(e.name)}= ${L}`)}else if(U){_.push(` ${j} ${pad(e.name)}= ${L}`)}else{_.push(` ${pad(e.name)}= ${L}`)}}else if(i==="destroy"){_.push(` ${j} ${pad(e.name)}= ${L} -> null`)}}_.push(" }");return _.join("\n")}summary(e,t=true,i){const o=[];if(e.length===0){o.push("No changes. Your test matches the configuration.");if(!t){o.push("");o.push(`${a.TITLE_APP} has compared your real test against your configuration and found no differences, so no`);o.push("changes are needed.");o.push("");o.push((0,d.green)("Apply complete! Resources: 0 added, 0 changed, 0 destroyed."))}console.log(o.join("\n"));return}o.push(`${a.TITLE_APP} used the selected providers to generate the following execution plan. Resource actions are indicated with the`);o.push("following symbols:");o.push(this.getSymbols(e));o.push("");o.push(`${a.TITLE_APP} will perform the following actions:`);o.push("");for(const t of e){const e=(0,m.formatIdentityDisplay)(t.identity);const a=t.action==="add"?(0,d.bold)((0,d.green)(`# [${t.scenario.feature?.name||"Unknown"}].${t.resourceType}.${e} will be created`)):t.action==="change"?(0,d.bold)((0,d.yellow)(`# ${t.resourceType}.${e} will be updated in-place`)):t.action==="replace"?(0,d.bold)((0,d.red)(`# ${t.resourceType}.${e} must be replaced`)):(0,d.bold)((0,d.red)(`# ${t.resourceType}.${e} will be destroyed`));o.push(` ${a}`);if(t.action==="destroy"){o.push(` # (because ${t.resourceType}.${e} is not in configuration)`)}o.push(this.format(t,i));o.push("")}const h=e.filter((e=>e.action==="add")).length;const P=e.filter((e=>e.action==="change")).length;const _=e.filter((e=>e.action==="destroy")).length;const L=e.filter((e=>e.action==="replace")).length;o.push(`${(0,d.bold)("Plan:")} ${h+L} to add, ${P} to change, ${_+L} to destroy.`);o.push("");if(t){o.push((0,d.dim)("─".repeat(108)));o.push("");if(!i?.outPath){o.push(`Note: You didn't use the -out option to save this plan, so ${a.TITLE_APP} can't guarantee to take exactly these`);o.push(`actions if you run "${a.TITLE_CLI} apply" now.`)}}console.log(o.join("\n"))}}t.resource=new Resource;const registerResource=e=>t.resource.registry(e,"user");t.registerResource=registerResource;t.resource.registry({type:"github_testcase",fields:[{name:"title",value:e=>e.name},{name:"body",value:e=>"```gherkin\n"+e.steps.map((e=>`${e.keyword}${e.text}`)).join("\n")+"\n```"},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}}]});t.resource.registry({type:"github_testrun",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let a=e.feature.description||"### 🚀 Test Run Execution\n\nThis issue serves as the central hub for tracking the execution of this Test Run. All associated test cases are linked below as tasks.\n\n**Instructions:**\n- Execution results for each test case will be recorded dynamically as comments on this issue.\n- Click on individual test case links to view their details or attach evidence.";const o=e.custom?.testcases||[];if(o.length>0&&t?.state){const d=t.state;const m=e.custom?.identity&&e.custom.identity!==e.uri?`${e.uri}::${e.custom.identity}`:e.uri;const h=d.getResources("github_testrun").find((e=>e.identity===m));const P=h?.attributes?.testcaseStatuses||{};const _=[...o].sort(((e,t)=>{const i=e.split("::").pop()?.replace("@","")||"";const a=t.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));const L=[];const j=[];for(const e of _){const i=e.split("::");const a=i.pop();const o=i.pop()||"";const m=o.replace(".case.feature","").replace(".feature","");const h=d.getResources("github_testcase").filter((e=>e.identity.includes(m)&&(a==="*"||e.identity.endsWith(`::${a}`))));const P=new Set(h.map((e=>e.identity.split("::")[0])));let _=h;if(P.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");_=h.filter((t=>t.identity.startsWith(e)));const i=new Set(_.map((e=>e.identity.split("::")[0])));if(i.size>1){throw new Error(`Multiple testcases found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}else{throw new Error(`Multiple testcases found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}if(_.length>0){L.push(..._)}else{j.push(e)}}const U=new Map;for(const e of L){if(!U.has(e.identity)){U.set(e.identity,e)}}const H=Array.from(U.values());H.sort(((e,t)=>{const i=e.identity.split("::").pop()?.replace("@","")||"";const a=t.identity.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));const V=new Map;for(const e of H){const[t]=e.identity.split("::");const a=i(16928).basename(t||"");if(!V.has(a)){V.set(a,[])}V.get(a).push(e)}for(const[t,i]of V.entries()){a+=`\n\n**Origin:** ${t}\n`;for(const t of i){const i=t.identity;const o=i.split("::").pop()?.replace("@","")||"";let d=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return i.includes(t)&&i.endsWith(`::${e.name}`)}));if(!d){d=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return i.includes(t)&&e.name==="*"}))}const m=d?.custom?.fields?.status||P[i]||"pending";const h=m==="passed"?"[x]":"[ ]";if(t?.attributes?.issueNumber){a+=`- ${h} ${o}: #${t.attributes.issueNumber}\n`}else{a+=`- ${h} ${o}: (known after apply) - ${i}\n`}}}if(j.length>0){a+=`\n\n**Not Found in State**\n`;for(const e of j){const t=e.split("::").pop()?.replace("@","")||"";a+=`- [ ] ${t}: (not found in state) - ${e}\n`}}}return a.trim()}},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}}],comments:(e,t)=>{const a=e.custom?.testcases||[];if(a.length===0||!t?.state)return[];const o=t.state;const d=[];const m=[...a].sort(((e,t)=>{const i=e.split("::").pop()?.replace("@","")||"";const a=t.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));for(const a of m){const m=a.split("::");const h=m.pop();const P=m.pop()||"";const _=P.replace(".case.feature","").replace(".feature","");const L=o.getResources("github_testcase").filter((e=>e.identity.includes(_)&&(h==="*"||e.identity.endsWith(`::${h}`))));const j=new Set(L.map((e=>e.identity.split("::")[0])));let U=L;if(j.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");U=L.filter((t=>t.identity.startsWith(e)))}else{continue}}U.sort(((e,t)=>{const i=e.identity.split("::").pop()?.replace("@","")||"";const a=t.identity.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));for(const a of U){const o=a.identity;let m=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return o.includes(t)&&o.endsWith(`::${e.name}`)}));if(!m){m=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return o.includes(t)&&e.name==="*"}))}const h=m?.custom?.fields?.status||t?.existingAttributes?.testcaseStatuses?.[o]||"pending";const P=a.attributes?.title||o;const[_,L]=o.split("::");const j=i(16928).basename(_||"");const U=L?L.replace("@",""):"";const H=`**Origin:** ${j}\n<table border="1" width="100%">\n <tr>\n <th colspan="3">Feature Name</th>\n </tr>\n <tr>\n <td>${U}</td>\n <td>${P}</td>\n <td>${h}</td>\n </tr>\n <tr>\n <td colspan="3"><br/></td>\n </tr>\n </table>`;d.push({identity:o,status:h,body:H,title:P})}}return d}});t.resource.registry({type:"github_testplan",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let i=e.feature.description||"";const a=e.custom?.testruns||[];if(a.length>0&&t?.state){i+="\n\n### Test Runs\n";const e=t.state;for(const o of a){const a=e.getResources("github_testrun").filter((e=>e.identity.endsWith(o)));const d=new Set(a.map((e=>e.identity.split("::")[0])));let m=a;if(d.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");m=a.filter((t=>t.identity.startsWith(e)));const i=new Set(m.map((e=>e.identity.split("::")[0])));if(i.size>1){throw new Error(`Multiple testruns found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}else{throw new Error(`Multiple testruns found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}if(m.length>0){for(const e of m){if(e?.attributes?.issueNumber){i+=`- [ ] #${e.attributes.issueNumber} - ${e.attributes.title}\n`}else{i+=`- [ ] (known after apply) - ${e.identity}\n`}}}else{i+=`- [ ] (not found in state) - ${o}\n`}}}return i.trim()}},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}},{name:"testruns",value:e=>e.custom?.testruns||[]}]})},8314:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyCmd=void 0;const a=i(2560);const o=i(79896);const d=i(80465);const m=i(80573);const h=i(7066);const P=i(86999);const _=i(1622);const L=i(74483);const j=i(31821);const U=i(65301);const H=i(62978);const V=i(54472);const K=i(51387);const W=i(45392);const applyCmd=async e=>{const{dir:t=".",autoApprove:J=false,verbose:X=false,scope:Y,planFile:Q,lock:Z=true,lockTimeout:ee="0s",input:te=true,variables:ne,statePath:re,backupPath:ie,target:ae,refresh:oe=true,refreshOnly:se=false,setStatus:ce,replaceTargets:le,parallelism:ue,compactWarnings:de,testDirectory:pe}=e;const me=new P.Logger(X);const fe=new h.State(t,re,ie);await fe.init();await fe.acquireLock(Z,ee);try{let e;if(Q){const a=i(16928);const d=a.resolve(t,Q);if(!(0,o.existsSync)(d)){me.error(`Failed to load "${Q}" as a plan file\n\nstat ${d}: no such file or directory`)}try{const i=(0,o.readFileSync)(d,"utf-8");const a=JSON.parse(i);e={changes:a.changes||[],hasChanges:a.changes&&a.changes.length>0,state:new h.State(t)};await e.state.init()}catch(e){me.error(`Failed to load "${Q}" as a plan file\n\nError parsing JSON: ${e.message}`);return}}else{if(ce){if(Y!=="testrun"){_.notify.push({type:"error",title:`The '-set-status' option is exclusive to testrun scope.`,detail:[]});return}if(!ae||ae.length===0){_.notify.push({type:"error",title:`The '-set-status' option requires the '-target' option to specify the testrun file.`,detail:[]});return}const e=await(0,V.createCommandContext)({dir:t,verbose:X,lock:false});if(!e)return;let a=ce;let o="";if(ce.includes("=")){[a,o]=ce.split("=").map((e=>e.trim()))}else{o=await(0,U.askStatus)()}a=a.replace(/^github_testcase\\./,"").replace(/^github_testrun\\./,"");const matchesFileTarget=(e,t)=>{const i=t.replace(/^github_testrun\\./,"");if(e===i)return true;const a=e.split("::")[0];if(a===i||a.includes(i)||i.includes(a))return true;if(a.split("/").pop()===i.split("/").pop())return true;return false};const matchesTestcaseTarget=(e,t)=>{const i=e.replace("::@","::");let a=t.replace("::@","::");if(!a.includes("::")&&a.includes("@")){const e=a.lastIndexOf("@");a=a.substring(0,e)+"::"+a.substring(e+1)}if(i===a)return true;const o=i.split("::");const d=a.split("::");if(o.length===2&&d.length===2){if(o[1]!==d[1])return false;const e=o[0];const t=d[0];if(e.includes(t)||t.includes(e))return true;if(e.split("/").pop()===t.split("/").pop())return true}else if(i.endsWith(`::${a}`)){return true}return false};const h=Array.isArray(ae)?ae:[ae];const P=fe.getResources("github_testrun");const L=P.filter((e=>h.some((t=>matchesFileTarget(e.identity,t)))));if(L.length===0){_.notify.push({type:"error",title:`No testrun matched the provided target(s): ${h.join(", ")}`,detail:[]});return}let j=null;for(const e of L){const t=e.attributes?.testcaseCommentIds||{};const i=Object.keys(t).find((e=>matchesTestcaseTarget(e,a)));if(i){j=e;a=i;break}}if(!j){_.notify.push({type:"error",title:`Could not find testcase '${a}' in any testrun state.`,detail:[]});return}const H=j.attributes.testcaseCommentIds[a];if(H){const h=fe.getResources("github_testcase").find((e=>e.identity===a));const P=h?.attributes?.title||a;const _=Object.keys(j.attributes.testcaseCommentIds);const L=_.indexOf(a)+1;const[U,V]=a.split("::");const J=i(16928).basename(U||"");const X=V?V.replace("@",""):"";const Y=`**Origin:** ${J}\n<table border="1" width="100%">\n <tr>\n <th colspan="3">Feature Name</th>\n </tr>\n <tr>\n <td>${X}</td>\n <td>${P}</td>\n <td>${o}</td>\n </tr>\n <tr>\n <td colspan="3"><br/></td>\n </tr>\n</table>`;await e.github.updateIssueComment(H,Y);console.log(` -> Updated status comment for ${a} to '${o}'`);const Q=j.attributes.testcaseStatuses?.[a]||"pending";if(!j.attributes.testcaseStatuses)j.attributes.testcaseStatuses={};j.attributes.testcaseStatuses[a]=o;await fe.save();console.log(`\n ${(0,d.yellow)("~")} resource "github_testrun" "${j.identity}" {`);console.log(` ${(0,d.yellow)("~")} testcaseStatuses {`);console.log(` ${(0,d.yellow)("~")} "${a}": "${Q}" -> "${o}"`);console.log(` }`);console.log(` }\n`);console.log((0,d.green)((0,d.bold)(`Status successfully updated!`)));const Z=pe?i(16928).join(t,pe):t;const ee=new W.Parser(Z,ne);const te=ee.filter(ee.content(),{identity:"",fields:[]},"testrun");const re=te.find((e=>e.custom?.identity===j.identity||e.uri===j.identity||j.identity.startsWith(e.uri+"::")));if(re&&re.uri){try{const[t,d]=a.split("::");if(t&&d){const e=i(16928).join(Z,re.uri);K.GherkinEditor.updateScenarioStatus(e,t,d,o);console.log(` -> Synced status to local file: ${re.uri}`)}const h=new W.Parser(Z,ne);const P=h.filter(h.content(),{identity:"",fields:[]},"testrun");const _=P.find((e=>e.uri===re.uri||e.custom?.identity===j.identity));const L=m.resource.evaluate("github_testrun",_||re,{state:fe,testDirectory:pe});await e.github.updateIssue(j.attributes.issueNumber,L);console.log(` -> Synced status to main issue body #${j.attributes.issueNumber}`)}catch(e){console.log(` -> Failed to update local file or issue body: ${e.message}`)}}else{console.log(` -> Warning: Could not find local feature file for testrun identity '${j.identity}' to sync status.`)}}return}const o=Y==="all"?["testcase","testrun","testplan"]:[Y];let h=[];let P=fe;for(const e of o){if(oe&&!se){console.log(a.MSG_ACQUIRING_LOCK);await(0,j.refreshState)({dir:t,scope:e,state:fe,logger:me,silent:false,parallelismRaw:ue,target:ae})}const i=await(0,L.calculatePlan)({dir:t,scope:e,variables:ne,statePath:re,backupPath:ie,target:ae,destroyPlan:false,refreshOnly:se,preLoadedState:fe,lock:Z,lockTimeout:ee,replaceTargets:le,compactWarnings:de,testDirectory:pe});h.push(...i.changes);P=i.state}e={changes:h,hasChanges:h.length>0,state:P};m.resource.summary(e.changes,false,{state:e.state});if(!e.hasChanges){return}if(!J){if(!te){const e=new Error(a.ERR_NO_INPUT_ALLOWED+"\nUse the -auto-approve flag to bypass approval.");e.name="No input allowed";throw e}const e=await(0,U.askApproval)();if(!e){_.notify.push({type:"error",title:"error asking for approval: interrupted",detail:[]});return}}}if(Q&&!e.hasChanges){console.log("No changes found in the provided plan file.");return}const P=await(0,V.createCommandContext)({dir:t,verbose:X,lock:false});if(!P)return;const{github:he}=P;let ge=0;let ye=0;let be=0;const resolvePayloadMilestone=async e=>{if(typeof e.milestone==="string"&&e.milestone){e.milestone=await he.getMilestoneByTitle(e.milestone)}else if(!e.milestone){delete e.milestone}};const linkSubIssues=async(e,t)=>{if(e.resourceType==="github_testplan"&&e.scenario.custom?.testruns){for(const i of e.scenario.custom.testruns){const e=fe.getResources("github_testrun").filter((e=>e.identity.endsWith(i)||e.identity.includes(i)));if(e.length>1){const t=Array.from(new Set(e.map((e=>e.identity))));me.warn(`Rule '${i}' in Testplan matches multiple Testruns. Linking all of them:\n`+t.map((e=>` - ${e}`)).join("\n")+`\nIf this was unintentional, specify the full file path.`)}for(const i of e){if(i?.attributes?.issueNumber){try{const e=await he.getIssue(i.attributes.issueNumber);if(e&&e.id){await he.addSubIssue(t,e.id);console.log(` -> Linked testrun ${i.identity} as sub-issue to testplan`)}}catch(e){console.log(` -> Failed to link testrun ${i.identity} as sub-issue: ${e.message}`)}}}}}};const syncTestrunComments=async(e,t,i)=>{if(e.resourceType!=="github_testrun"||!e.scenario.custom?.testcases)return{};const a=i?.testcaseCommentIds||{};const o=i?.testcaseStatuses||{};const d=[];const h=m.resource.evaluateComments(e.resourceType,e.scenario,{state:fe,testDirectory:pe,existingAttributes:i});for(const e of h){const{identity:i,status:m,body:h}=e;d.push(i);if(!a[i]||o[i]!==m){if(a[i]){await he.updateIssueComment(a[i],h);console.log(` -> Updated status comment for ${i} to '${m}'`)}else{const e=await he.createIssueComment(t,h);a[i]=e.id;console.log(` -> Created status comment for ${i} as '${m}'`)}o[i]=m}}return{testcaseCommentIds:a,testcaseStatuses:o,expandedTestcases:d}};const ve=ue?parseInt(String(ue),10)||10:10;for(let a=0;a<e.changes.length;a+=ve){const o=e.changes.slice(a,a+ve);await Promise.all(o.map((async e=>{try{if(e.action==="add"){const a=(0,H.formatResourceAddress)(e.resourceType,e.identity);console.log(`${a}: Creating...`);const o=Date.now();const h=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(h);const P=await he.createIssue(h);if(P.node_id){const e=await he.addToProject(P.node_id);if(e&&h.custom_fields){await he.updateProjectItemFields(e,h.custom_fields)}}const _=(0,H.elapsedSeconds)(o);const L=he.formatRemoteId(P.number);console.log((0,d.green)(`${a}: Creation complete after ${_}s [id=${L}]`));await linkSubIssues(e,P.number);const{testcaseCommentIds:j,testcaseStatuses:U,expandedTestcases:V}=await syncTestrunComments(e,P.number);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:L,issueNumber:P.number,title:h.title,body:h.body,labels:h.labels,assignees:h.assignees,milestone:h.milestone??"",custom_fields:h.custom_fields,createdAt:P.created_at,updatedAt:P.updated_at,...j?{testcaseCommentIds:j,testcaseStatuses:U}:{}},lastApplied:(new Date).toISOString()});await linkSubIssues(e,P.number);ge++;const W=e.scenario.custom?.testcases?.some((e=>!e.endsWith("::*")));if(Y==="testrun"&&!W&&e.scenario.uri&&e.scenario.custom?.testcases){try{const a=pe?i(16928).join(t,pe):t;const o=i(16928).join(a,e.scenario.uri);const d=V?.length?V:e.scenario.custom.testcases;K.GherkinEditor.expandScenarios(o,d,"pending");console.log(` -> Expanded scenarios in local file: ${e.scenario.uri}`)}catch(e){console.log(` -> Failed to expand scenarios in local file: ${e.message}`)}}}else if(e.action==="replace"){const t=(0,H.formatResourceAddress)(e.resourceType,e.identity);const i=e.remoteId??"";console.log(`${t}: Replacing... [id=${i}]`);const a=Date.now();if(e.issueNumber){await he.updateIssue(e.issueNumber,{state:"closed"})}const o=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(o);const h=await he.createIssue(o);if(h.node_id){const e=await he.addToProject(h.node_id);if(e&&o.custom_fields){await he.updateProjectItemFields(e,o.custom_fields)}}const P=(0,H.elapsedSeconds)(a);const _=he.formatRemoteId(h.number);console.log((0,d.green)(`${t}: Replacement complete after ${P}s [id=${_}]`));await linkSubIssues(e,h.number);const{testcaseCommentIds:L,testcaseStatuses:j}=await syncTestrunComments(e,h.number);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:_,issueNumber:h.number,title:o.title,body:o.body,labels:o.labels,assignees:o.assignees,milestone:o.milestone??"",custom_fields:o.custom_fields,createdAt:h.created_at,updatedAt:h.updated_at,...L?{testcaseCommentIds:L,testcaseStatuses:j}:{}},lastApplied:(new Date).toISOString()});be++;ge++}else if(e.action==="change"){const a=(0,H.formatResourceAddress)(e.resourceType,e.identity);const o=e.remoteId??"";console.log(`${a}: Modifying... [id=${o}]`);const h=Date.now();const P=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(P);const _=await he.updateIssue(e.issueNumber,P);if(_.node_id){const e=await he.addToProject(_.node_id);if(e&&P.custom_fields){await he.updateProjectItemFields(e,P.custom_fields)}}const L=(0,H.elapsedSeconds)(h);console.log((0,d.green)(`${a}: Modifications complete after ${L}s [id=${o}]`));await linkSubIssues(e,_.number);const j=fe.getResources(e.resourceType).find((t=>t.identity===e.identity))?.attributes;const{testcaseCommentIds:U,testcaseStatuses:V,expandedTestcases:W}=await syncTestrunComments(e,_.number,j);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:o,issueNumber:e.issueNumber,title:P.title,body:P.body,labels:P.labels,assignees:P.assignees,milestone:P.milestone??"",custom_fields:P.custom_fields,createdAt:_.created_at,updatedAt:_.updated_at,...U?{testcaseCommentIds:U,testcaseStatuses:V}:{}},lastApplied:(new Date).toISOString()});ye++;const J=e.scenario.custom?.testcases?.some((e=>!e.endsWith("::*")));if(Y==="testrun"&&!J&&e.scenario.uri&&e.scenario.custom?.testcases){try{const a=pe?i(16928).join(t,pe):t;const o=i(16928).join(a,e.scenario.uri);const d=W?.length?W:e.scenario.custom.testcases;K.GherkinEditor.expandScenarios(o,d,"pending");console.log(` -> Expanded scenarios in local file: ${e.scenario.uri}`)}catch(e){console.log(` -> Failed to expand scenarios in local file: ${e.message}`)}}}else if(e.action==="destroy"){const t=(0,H.formatResourceAddress)(e.resourceType,e.identity);const i=e.remoteId??"";console.log(`${t}: Destroying... [id=${i}]`);const a=Date.now();if(e.issueNumber){await he.closeIssue(e.issueNumber)}const o=(0,H.elapsedSeconds)(a);console.log((0,d.green)(`${t}: Destruction complete after ${o}s [id=${i}]`));fe.removeResource(e.identity);be++}}catch(t){_.notify.push({type:"error",title:`${t.message}`,detail:[` with ${e.resourceType}.${e.identity}`]})}})))}console.log("");await fe.save();console.log((0,d.green)((0,d.bold)(`Apply complete! Resources: ${ge} added, ${ye} changed, ${be} destroyed.`)))}finally{await fe.releaseLock()}};t.applyCmd=applyCmd},66321:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debugCmd=void 0;const a=i(45392);const o=i(84489);const d=i(86999);const debugCmd=async e=>{const{dir:t,file:i,format:m,scope:h,variables:P}=e;const _=new a.Parser(t,P);const L=new o.Config(t);const j={identity:L.getIdentity(h),fields:L.getFields(h),convention:L.getConvention(h)};const U=_.content();const H=U.filter((e=>e.uri&&e.uri.includes(i)));if(H.length===0){d.logger.error(`No scenarios found for file matching: ${i}`);process.exit(1)}if(m==="gherkin"){console.log(JSON.stringify(H,null,2));return}if(m==="testform"){const e=_.filter(H,j,h);console.log(JSON.stringify(e,null,2));return}d.logger.error(`Invalid format: ${m}. Use 'gherkin' or 'testform'.`);process.exit(1)};t.debugCmd=debugCmd},29540:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.destroyCmd=void 0;const a=i(80465);const o=i(7066);const d=i(86999);const m=i(1622);const h=i(2560);const P=i(54472);const _=i(65301);const L=i(62978);const destroyCmd=async e=>{const{dir:t=".",verbose:i=false,scope:j,lock:U=true,lockTimeout:H="0s",input:V=true,statePath:K,backupPath:W}=e;const J=new d.Logger(i);const X=new o.State(t,K,W);await X.init();await X.acquireLock(U,H);try{const e=j==="all"?["testcase","testrun","testplan"]:[j];let o=0;for(const d of e){if(!Object.prototype.hasOwnProperty.call(h.SCOPE_RESOURCE_MAP,d)){throw new Error(`Invalid scope: ${d}`)}const e=X.getResources(h.SCOPE_RESOURCE_MAP[d]);if(e.length===0){console.log(`No resources found in state for scope '${d}'.`);continue}console.log((0,a.bold)(`\n${h.TITLE_APP} will destroy the following resources in scope '${d}':\n`));for(const t of e){const e=t.attributes.remoteId??"";console.log(` ${(0,a.red)("-")} ${(0,L.formatResourceAddress)(t.type,t.identity)} [id=${e}]`)}console.log(`\n${(0,a.bold)("Plan:")} 0 to add, 0 to change, ${e.length} to destroy.\n`);if(V){const t=await(0,_.askDestroyApproval)(e.length,d);if(!t){m.notify.push({type:"error",title:`Destruction of scope '${d}' cancelled.`,detail:[]});continue}}console.log("");const j=await(0,P.createCommandContext)({dir:t,verbose:i,statePath:K,backupPath:W,lock:false,silent:false});if(!j)return;const{github:U}=j;for(const t of e){const e=(0,L.formatResourceAddress)(t.type,t.identity);const i=t.attributes.remoteId??"";console.log(`${e}: Destroying... [id=${i}]`);const d=Date.now();try{if(t.attributes.issueNumber){await U.closeIssue(t.attributes.issueNumber)}X.removeResource(t.identity);const m=(0,L.elapsedSeconds)(d);console.log((0,a.green)(`${e}: Destruction complete after ${m}s [id=${i}]`));o++}catch(t){m.notify.push({type:"error",title:`Failed to destroy ${e}: ${t.message}`,detail:[]})}}}await X.save();if(o>0){console.log("");console.log((0,a.green)((0,a.bold)(`Destroy complete! ${o} resource(s) destroyed.`)))}}finally{await X.releaseLock()}};t.destroyCmd=destroyCmd},65083:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffCmd=void 0;const a=i(76982);const o=i(80465);const d=i(84489);const m=i(45392);const h=i(7066);const P=i(86999);const _=i(2560);function hashScenario(e,t){const i=JSON.parse(JSON.stringify(e));if(!t||t==="testcase"){i.name=""}if(!t||t==="testrun"||t==="testplan"){if(i.feature){i.feature.name=""}}return(0,a.createHash)("sha256").update(JSON.stringify(i)).digest("hex")}function getStatusIcon(e){switch(e){case"synced":return(0,o.green)("✓");case"modified_locally":return(0,o.yellow)("~");case"new_local":return(0,o.cyan)("+");case"orphaned_remote":return(0,o.red)("-")}}function getStatusLabel(e){switch(e){case"synced":return"synced";case"modified_locally":return"modified locally";case"new_local":return"new (not applied)";case"orphaned_remote":return"orphaned (not in config)"}}const diffCmd=async e=>{const{dir:t=".",verbose:i=false,scope:a}=e;const L=new P.Logger(i);const j=new d.Config(t);const U=new m.Parser(t);const H=U.content();const V=new h.State(t);await V.init();const K=[];const W=a==="all"?["testcase","testrun","testplan"]:[a];for(const e of W){const t={identity:j.getIdentity(e),fields:j.getFields(e)};const i=U.filter(H,t,e)||[];const a=_.SCOPE_RESOURCE_MAP[e];const o=V.getResources(a);const d=new Map(o.map((e=>[e.identity,e])));const m=new Set;for(const t of i){const i=t.custom?.identity;if(!i)continue;let a;if(i.includes("::")){a=i}else if(i===t.uri){a=i}else{a=`${t.uri}::${i}`}m.add(a);const o=hashScenario(t,e);const h=d.get(a);if(!h){K.push({identity:a,status:"new_local",localHash:o})}else if(h.attributes.localHash!==o){K.push({identity:a,status:"modified_locally",localHash:o,stateHash:h.attributes.localHash,remoteId:h.attributes.remoteId})}else{K.push({identity:a,status:"synced",localHash:o,stateHash:h.attributes.localHash,remoteId:h.attributes.remoteId})}}for(const e of o){if(!m.has(e.identity)){K.push({identity:e.identity,status:"orphaned_remote",stateHash:e.attributes.localHash,remoteId:e.attributes.remoteId})}}}console.log("");console.log((0,o.bold)("Drift Detection Report"));console.log("═".repeat(60));console.log("");const J=K.filter((e=>e.status==="synced")).length;const X=K.filter((e=>e.status==="modified_locally")).length;const Y=K.filter((e=>e.status==="new_local")).length;const Q=K.filter((e=>e.status==="orphaned_remote")).length;for(const e of K){const t=getStatusIcon(e.status);const a=getStatusLabel(e.status);const d=e.remoteId?(0,o.dim)(` [id=${e.remoteId}]`):"";console.log(` ${t} ${(0,o.bold)(e.identity)}: ${a}${d}`);if(i&&e.status==="modified_locally"&&e.localHash&&e.stateHash){console.log(` Local: ${(0,o.dim)(e.localHash.substring(0,12))}...`);console.log(` State: ${(0,o.dim)(e.stateHash.substring(0,12))}...`)}}console.log("");console.log((0,o.bold)("Summary:"));console.log(` ${(0,o.green)("✓")} ${J} synced`);if(X>0)console.log(` ${(0,o.yellow)("~")} ${X} modified locally`);if(Y>0)console.log(` ${(0,o.cyan)("+")} ${Y} new (not applied)`);if(Q>0)console.log(` ${(0,o.red)("-")} ${Q} orphaned (not in config)`);console.log("")};t.diffCmd=diffCmd},52353:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fmtCmd=void 0;const a=i(79896);const o=i(16928);const d=i(86999);const fmtCmd=async e=>{const{dir:t=".",check:i=false,list:o=true,write:m=true,recursive:h=false}=e;const P=findFeatureFiles(t,h);if(P.length===0){d.logger.warn("No .feature files found to format.");return}let _=0;for(const e of P){const t=(0,a.readFileSync)(e,"utf8");const h=formatGherkin(t);if(t!==h){_++;if(!i&&m){(0,a.writeFileSync)(e,h,"utf8")}if(o){if(i){d.logger.warn(e)}else{d.logger.success(e)}}}}if(i){if(_>0){d.logger.warn(`\n${_} file(s) would be reformatted.`);process.exit(3)}else{d.logger.success("All files are formatted correctly.")}}};t.fmtCmd=fmtCmd;function findFeatureFiles(e,t){try{const i=(0,a.statSync)(e);if(i.isFile()&&e.endsWith(".feature")){return[e]}if(i.isDirectory()){if(e.includes("node_modules")||e.includes(".git"))return[];const i=(0,a.readdirSync)(e,{withFileTypes:true});const d=[];for(const a of i){const i=(0,o.join)(e,a.name);if(a.isDirectory()){if(t){d.push(...findFeatureFiles(i,t))}}else if(a.name.endsWith(".feature")){d.push(i)}}return d}return[]}catch(e){return[]}}function formatGherkin(e){const t=e.split("\n");const i=[];let a=0;let o=false;let d=0;for(let e=0;e<t.length;e++){let m=t[e];if(m.trim().startsWith('"""')||m.trim().startsWith("```")){if(!o){o=true;d=6;i.push(" ".repeat(d)+m.trim())}else{o=false;i.push(" ".repeat(d)+m.trim())}continue}if(o){i.push(m);continue}let h=m.trim();if(h===""){if(i.length>0&&i[i.length-1]!==""){i.push("")}continue}if(h.startsWith("Feature:")){a=0}else if(h.startsWith("Rule:")||h.startsWith("Background:")||h.startsWith("Scenario:")||h.startsWith("Scenario Outline:")||h.startsWith("Example:")){a=2;if(i.length>0&&i[i.length-1]!==""&&!i[i.length-1].trim().startsWith("@")){i.push("")}}else if(h.startsWith("Given ")||h.startsWith("When ")||h.startsWith("Then ")||h.startsWith("And ")||h.startsWith("But ")||h.startsWith("* ")){a=4}else if(h.startsWith("Examples:")){a=4;if(i.length>0&&i[i.length-1]!==""){i.push("")}}else if(h.startsWith("|")){a=6}else if(h.startsWith("@")){let o=0;for(let i=e+1;i<t.length;i++){let e=t[i].trim();if(e===""||e.startsWith("@"))continue;if(e.startsWith("Feature:"))o=0;else if(e.startsWith("Rule:")||e.startsWith("Background:")||e.startsWith("Scenario:")||e.startsWith("Scenario Outline:"))o=2;else if(e.startsWith("Examples:"))o=4;break}a=o;if(i.length>0&&i[i.length-1]!==""){i.push("")}}else if(h.startsWith("#")){}else{if(a===0)a=2}i.push(" ".repeat(a)+h)}if(i.length>0&&i[i.length-1]!==""){i.push("")}return i.join("\n")}},23634:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forceUnlockCmd=void 0;const a=i(80465);const o=i(7066);const d=i(2560);const forceUnlockCmd=async e=>{const{dir:t=".",lockId:m,force:h=false,statePath:P}=e;const _=new o.State(t,P);await _.init();const executeUnlock=async()=>{const e=await _.forceUnlock(m);if(e.success){console.log((0,a.green)(`\n${d.TITLE_APP} state has been successfully unlocked!\n`));if(!h){console.log(`The state has been unlocked, and ${d.TITLE_APP} commands should now be able to`);console.log(`obtain a new lock on the remote state.`)}}else{if(e.currentLockId){console.error((0,a.red)(`Error: Lock ID does not match.\n\nExpected: ${m}\nActual: ${e.currentLockId}\n`))}else if(e.error){console.error((0,a.red)(`${e.error}\n`))}process.exit(1)}};if(h){await executeUnlock();return}console.log(`Do you really want to force-unlock?`);console.log(` ${d.TITLE_APP} will remove the lock on the remote state.`);console.log(` This will allow local ${d.TITLE_APP} commands to modify this state, even though it`);console.log(` may be still be in use. Only 'yes' will be accepted to confirm.`);console.log("");const{createInterface:L}=i(23785);const j=L({input:process.stdin,output:process.stdout});return new Promise((e=>{j.question(" Enter a value: ",(async t=>{j.close();if(t.trim().toLowerCase()==="yes"){await executeUnlock()}else{console.error((0,a.red)(`\nUnlock cancelled.\n`));process.exitCode=1}e()}))}))};t.forceUnlockCmd=forceUnlockCmd},7651:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateCmd=void 0;const a=i(16928);const o=i(79896);const d=i(84489);const m=i(86999);function findFeatures(e){const t=[];try{const i=(0,o.readdirSync)(e,{withFileTypes:true});for(const o of i){const i=(0,a.join)(e,o.name);if(o.isDirectory()){if(!o.name.startsWith(".")&&o.name!=="node_modules"){t.push(...findFeatures(i))}}else if(o.name.endsWith(".feature")){t.push(i)}}}catch(e){}return t}function findNextIdentity(e,t){if(!t.includes("*"))return null;const a=t.split("*")[0].replace(/^@/,"");const o=t.split("*")[1]||"";const d=new RegExp(`@${a}(\\d+)${o}\\b`,"g");let m=0;const h=findFeatures(e);for(const e of h){const t=i(79896).readFileSync(e,"utf-8");let a;while((a=d.exec(t))!==null){const e=parseInt(a[1],10);if(e>m)m=e}}return`@${a}${m+1}${o}`}const generateCmd=async e=>{const{dir:t,scope:i,title:h}=e;const P=new d.Config(t);const _=P.getConvention(i);const L=P.getIdentity(i);const j=i.replace("test","");const U=_?.directory||i;const H=_?.filename||`{YYYYMMDD}_{HHmmss}.${j}.feature`;const V=new Date;const K=V.toISOString().split("T")[0].replace(/-/g,"");const W=V.toTimeString().split(" ")[0].replace(/:/g,"");const J=V.getTime().toString();let X=h;let Y="";if(X){Y=X.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}let Q=H.replace(/{YYYYMMDD}/g,K).replace(/{HHmmss}/g,W).replace(/{timestamp}/g,J).replace(/{slug}/g,Y);Q=Q.replace(/^[_\-]+/,"").replace(/[_\-]+(\.)/g,"$1");const Z=Math.random().toString(16).substring(2,8);if(Q.endsWith(".feature")){if(Q.endsWith(`.${j}.feature`)){Q=Q.replace(`.${j}.feature`,`_${Z}.${j}.feature`)}else{Q=Q.replace(`.feature`,`_${Z}.feature`)}}else{if(Q.endsWith(`.${j}`)){Q=Q.replace(`.${j}`,`_${Z}.${j}.feature`)}else{Q+=`_${Z}.${j}.feature`}}if(!X){X=Q.replace(/\.feature$/,"")}const ee=(0,a.join)(t,U,Q);if((0,o.existsSync)(ee)){m.logger.error(`File already exists: ${ee}`);process.exit(1)}if(e.rules&&e.rules.length>0){const i=findFeatures(t);for(const t of e.rules){const e=t.includes("::")?t.split("::")[0]:t;const a=i.some((t=>t.endsWith(e)||t.includes(e)));if(!a){m.logger.error([`Not Found`,`The feature file for Rule '${e}' does not exist in the workspace.`]);process.exit(1)}}}const te=(0,a.dirname)(ee);if(!(0,o.existsSync)(te)){(0,o.mkdirSync)(te,{recursive:true})}const ne=(i==="testrun"||i==="testplan")&&L?findNextIdentity(t,L):null;let re=`@${i}`;if(ne){re+=` ${ne}`}re+=`\nFeature: ${X}\n`;if(e.rules&&e.rules.length>0){re+=`\n`;for(const t of e.rules){re+=` Rule: ${t}\n`}}try{(0,o.writeFileSync)(ee,re,"utf-8");m.logger.success(`Generated ${i} file: ${ee}`,{bold:true})}catch(e){m.logger.error(`Failed to generate file: ${e.message}`);process.exit(1)}};t.generateCmd=generateCmd},79478:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.graphCmd=void 0;const a=i(80465);const o=i(45392);const graphCmd=async(e={})=>{const{dir:t=".",scope:d="testcase",drawCycles:m=false}=e;const h=new o.Parser(t);const P=h.content();const _=P.filter((e=>!e.uri.endsWith(".run.feature")&&!e.uri.endsWith(".plan.feature")));const L=P.filter((e=>e.uri.endsWith(".run.feature")));const j=P.filter((e=>e.uri.endsWith(".plan.feature")));const U=new Map;for(const e of j){if(!U.has(e.uri)){U.set(e.uri,{name:e.feature?.name||"Unnamed Plan",testruns:[]})}if(e.rule?.name)U.get(e.uri).testruns.push(e.rule.name)}const H=Array.from(U.values());const V=new Map;for(const e of L){if(!V.has(e.uri)){V.set(e.uri,{name:e.feature?.name||"Unnamed Run",testcases:[],identity:e.custom?.identity||e.feature?.name||"",uri:e.uri})}if(e.rule?.name)V.get(e.uri).testcases.push(e.rule.name);else if(e.name)V.get(e.uri).testcases.push(`${e.feature?.name}::${e.name}`)}const K=Array.from(V.values());if(H.length===0&&K.length===0&&_.length===0){console.log("No test configurations found.");return}console.log((0,a.bold)("Test Infrastructure Graph\n"));const link=e=>m?(0,a.magenta)(e):e;function findTcs(e){let t="*";let a=e;if(e.includes("::")){const i=e.split("::");t=i.pop()||"*";a=i.join("::")}const o=_.filter((e=>{const i=e.uri.endsWith(a)||e.uri.includes(a);const o=t==="*"||e.name===t||e.name.includes(t);return i&&o}));const d=Array.from(new Set(o.map((e=>e.uri))));if(d.length>1){if(t!=="*"){const{logger:e}=i(86999);e.error(`Ambiguous reference for Scenario '${t}' under Rule '${a}'. It matches multiple files:\n`+d.map((e=>` - ${e}`)).join("\n")+`\nPlease specify the full file path in your Rule to disambiguate.`)}else{const{logger:e}=i(86999);e.warn(`Rule '${a}' matches multiple feature files. Processing all of them:\n`+d.map((e=>` - ${e}`)).join("\n")+`\nIf this was unintentional, specify the full file path.`)}}return o}if(d==="testplan"||d==="testcase"){for(const e of H){const t=e.name;console.log(`📦 ${(0,a.cyan)((0,a.bold)(t))} ${(0,a.dim)(`(testplan)`)}`);const i=e.testruns;for(const[e,t]of i.entries()){const o=e===i.length-1;const m=o?"└── ":"├── ";const h=K.find((e=>e.identity===t||e.name===t||e.name.endsWith(t)||t.endsWith(e.name)||e.uri.endsWith(t)));if(h){const e=h.name;console.log(` ${link(m)}📂 ${(0,a.green)(e)} ${(0,a.dim)(`(testrun)`)}`);if(d==="testcase"){const e=h.testcases;for(let t=0;t<e.length;t++){const i=e.at(t);const d=t===e.length-1;const m=o?" ":"│ ";const h=d?"└── ":"├── ";const P=findTcs(i);if(P.length>0){for(let e=0;e<P.length;e++){const t=P.at(e);const i=d&&e===P.length-1;const o=i?"└── ":"├── ";console.log(` ${m}${link(o)}📄 ${t.name} ${(0,a.dim)(`(testcase)`)}`)}}else{console.log(` ${m}${link(h)}📄 ${(0,a.dim)(i+" (Not found)")}`)}}}}else{console.log(` ${link(m)}📂 ${(0,a.dim)(t+" (Not found)")}`)}}console.log("")}if(d==="testcase"){const e=new Set(H.flatMap((e=>e.testruns||[])));const t=K.filter((t=>!Array.from(e).some((e=>t.identity===e||t.name===e||t.uri.endsWith(e)||e.endsWith(t.name)))));if(t.length>0){console.log((0,a.bold)("Orphaned Test Runs (Not linked to any testplan)\n"));for(const e of t){const t=e.name;console.log(`📂 ${(0,a.green)(t)} ${(0,a.dim)(`(testrun)`)}`);const i=e.testcases;for(let e=0;e<i.length;e++){const t=i.at(e);const a=e===i.length-1;const o=a?"└── ":"├── ";console.log(` ${link(o)}📄 ${t}`)}console.log("")}}}}else if(d==="testrun"){for(const e of K){const t=e.name;console.log(`📂 ${(0,a.green)((0,a.bold)(t))} ${(0,a.dim)(`(testrun)`)}`);const i=e.testcases;for(let e=0;e<i.length;e++){const t=i.at(e);const o=e===i.length-1;const d=o?"└── ":"├── ";const m=findTcs(t);if(m.length>0){for(let e=0;e<m.length;e++){const t=m.at(e);const i=o&&e===m.length-1;const d=i?"└── ":"├── ";console.log(` ${link(d)}📄 ${t.name} ${(0,a.dim)(`(testcase)`)}`)}}else{console.log(` ${link(d)}📄 ${(0,a.dim)(t+" (Not found)")}`)}}console.log("")}}};t.graphCmd=graphCmd},52541:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.importCmd=void 0;const o=i(16928);const d=i(84489);const m=i(7066);const h=i(92401);const P=i(45392);const _=i(80573);const L=i(80465);const j=i(74483);const U=a(i(79896));const H=i(86999);const V=i(2560);const importCmd=async e=>{const{dir:t=".",scope:i,identityArg:a,issueNumber:K,lock:W=true,lockTimeout:J="0s",statePath:X,backupPath:Y}=e;const Q=new H.Logger;console.log((0,L.bold)(`Importing ${i} ${a} from issue #${K}...`));const Z=new m.State(t,X,Y);await Z.init();await Z.acquireLock(W,J);try{const e=Z;const m=(0,o.resolve)(t);const H=(0,o.normalize)((0,o.join)(m,V.FILE_CONFIG));if(!H.startsWith(m)){console.error((0,L.red)(`Invalid configuration path.`));process.exit(1)}if(!U.default.existsSync(H)){console.error((0,L.red)(`Configuration file ${V.FILE_CONFIG} not found in directory.`));process.exit(1)}const W=JSON.parse(U.default.readFileSync(H,"utf-8"));const J=new h.GitHubAdapter(W.github);const X=parseInt(K,10);if(isNaN(X)){console.error((0,L.red)(`Invalid issue number: ${K}`));process.exit(1)}let Y=a;const Q=new d.Config(t);const ee={identity:Q.getIdentity(i),fields:Q.getFields(i)};const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,t))return false;const i=V.SCOPE_CONFIG[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};const te=new P.Parser(t);const ne=te.content();const re=ne.filter((e=>matchesScope(e,i)));let ie=te.filter(re,ee,i)||[];const ae=ie.find((e=>{const t=e.custom?.identity;if(!t)return false;const o=i==="testrun"||i==="testplan"?t:`${e.uri}::${t}`;return o===a||o.endsWith(a)||a.endsWith(o)}));if(ae){const e=ae.custom?.identity;Y=i==="testrun"||i==="testplan"?e||a:`${ae.uri}::${e}`;console.log(`Resolved short identity to full identity: ${Y}`)}else{console.log((0,L.yellow)(`Warning: Could not find matching local scenario for identity: ${a}`));console.log((0,L.yellow)(`Import will proceed with the exact identity provided, but it might not map to any local file.`))}console.log(`Fetching issue #${X} from GitHub...`);const oe=await J.getIssue(X);if(!oe){console.error((0,L.red)(`Issue #${X} not found in GitHub repository.`));process.exit(1)}if(oe.state==="closed"){console.log((0,L.yellow)(`Warning: Issue #${X} is currently closed.`))}if(!Object.prototype.hasOwnProperty.call(V.SCOPE_RESOURCE_MAP,i)){console.error((0,L.red)(`Invalid scope: ${i}`));process.exit(1)}const se=V.SCOPE_RESOURCE_MAP[i];const ce=J.formatRemoteId(X);let le={};if(oe.node_id){le=await J.getProjectItemFields(oe.node_id)}if(!ae&&i==="testcase"&&Y.includes("::")){const[e,t]=Y.split("::");const a=(0,o.normalize)((0,o.resolve)(m,e));if(!a.startsWith(m)){console.error((0,L.red)(`Invalid file path in identity.`));process.exit(1)}if(U.default.existsSync(a)){const e=re.find((e=>e.uri===a));const o=e?.feature?.tags||[];const d=new Map;const m=U.default.readFileSync(a,"utf-8");const h=m.match(/Background:([\s\S]*?)(?=\n\s*@|\n\s*Scenario:|$)/);if(h){const e=h[1];for(const t of e.split("\n")){const e=t.match(/^\s*(?:\*|Given|When|Then|And)\s+field\s+([A-Za-z0-9_.\- ]+?)\s*=\s*(.+)$/i);if(e){d.set(e[1].trim().toLowerCase(),e[2].trim())}}}const P=Q.getFields(i)||[];const _=[];const j=[];const H=oe.labels||[];const V=P.find((e=>e.name==="labels"));const K=V?.default?String(V.default):"";for(const e of H){if(o.includes(e)||o.includes(`@${e}`))continue;if(e===K)continue;_.push(`@${e}`)}for(const e of P){if(e.name==="labels"||e.name==="assignees"||e.name==="milestone")continue;const t=Object.keys(le).find((t=>t.toLowerCase()===e.name.toLowerCase()));const i=t?le[t]:"";if(!i)continue;const a=e.default?String(e.default):"";const m=i.toLowerCase()===a.toLowerCase();const h=d.get(e.name.toLowerCase());const P=h&&h.toLowerCase()===i.toLowerCase();if(m||P)continue;if(e.type==="tags"){const e=i.startsWith("@")?i:`@${i}`;if(!o.includes(e)&&!o.includes(e.substring(1))){_.push(e)}}else if(e.type==="keywords"){j.push(`* field ${e.name} = ${i}`)}}let W=oe.body||"";const J=W.match(/```gherkin\n([\s\S]*?)```/);if(J){W=J[1].trim()}else{W=W.trim()}if(W){const e=_.length>0?` ${t} ${_.join(" ")}\n`:` ${t}\n`;const i=j.length>0?j.map((e=>` ${e}\n`)).join(""):"";const o=W.split("\n").map((e=>` ${e}`)).join("\n")+`\n`;const d=`\n\n${e} Scenario: ${oe.title}\n${i}${o}`;U.default.appendFileSync(a,d);console.log((0,L.green)(`\nAutomatically reconstructed scenario code in ${a}`))}}}let ue="";if(ae){ue=(0,j.hashScenario)(ae)}const de=ae?_.resource.evaluate(se,ae,{state:Z}):null;const pe=de;e.upsertResource({type:se,identity:Y,attributes:{title:oe.title,body:oe.body||"",labels:oe.labels||[],assignees:oe.assignees||[],milestone:oe.milestone||"",custom_fields:le,remoteId:ce,issueNumber:oe.number,localHash:ue},lastApplied:(new Date).toISOString()});e.save();console.log((0,L.green)(`\nImport successful!`));console.log(`State updated for ${(0,L.bold)(`${se}.${Y}`)} -> Issue #${X}`);console.log(`Run 'plan' to see if any local changes need to be applied.`)}finally{await Z.save();await Z.releaseLock()}};t.importCmd=importCmd},70722:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initCmd=void 0;const a=i(2560);const o=i(65301);const d=i(79896);const m=i(84489);const h=i(86999);const P=i(16928);const _=i(7066);const L=i(28742);const resolvePaths=e=>({configPath:(0,P.join)(e,a.FILE_CONFIG),statePath:(0,P.join)(e,a.FILE_STATE)});const ensureWorkingDirectory=(e,t)=>{if((0,d.existsSync)(e))return;(0,d.mkdirSync)(e,{recursive:true});t.info(`Created ${e} directory`)};const createConfigIfNotExists=(e,t)=>{if((0,d.existsSync)(e)){return true}const i={version:a.VERSION_CONFIG,github:{owner:"<required>",repository:"<required>"},backend:{type:"local",config:{}},scope:{testcase:{fields:[]},testrun:{fields:[]},testplan:{fields:[]}}};(0,d.writeFileSync)(e,JSON.stringify(i,null,2),"utf-8");return false};const ensureStateExists=(e,t)=>{if((0,d.existsSync)(e))return;const i={version:a.VERSION_STATE,lastSync:(new Date).toISOString(),testcase:[],testrun:[],testplan:[]};(0,d.writeFileSync)(e,JSON.stringify(i,null,2),"utf-8")};const loadValidatedConfig=e=>{const t=new m.Config(e);return t};const printInitSummary=(e,t)=>{e.info(`- Configuration: ${a.FILE_CONFIG} (v${t.getConfig().version})`);e.info(`- State backend: ready`);e.blank()};const printNextSteps=e=>{e.success(`${a.TITLE_APP} has been successfully initialized!`,{bold:true});e.blank();e.info(`You may now begin working with ${a.TITLE_APP}. Try running "${a.TITLE_CLI} plan" to see`);e.info("any changes that are required for your test management resources.");e.blank();e.info(`If you ever set or change configuration for ${a.TITLE_APP}, rerun this command to`);e.info("reinitialize your working directory.")};const initCmd=async(e={})=>{const{dir:t=".",verbose:i=false,backendConfigRaw:d,lock:m=true,lockTimeout:P="0s",reconfigure:j=false,backendEnabled:U=true,isJson:H=false}=e;const V=new h.Logger(i,H);const K=resolvePaths(t);ensureWorkingDirectory(t,V);const W=createConfigIfNotExists(K.configPath,V);V.info("Initializing the backend...",{bold:true});V.info(`Initializing ${a.TITLE_APP} configuration...`,{bold:true});const J=loadValidatedConfig(t);let X=J.getBackend();if(!U){X={type:"local",config:{}}}const Y=new L.WorkspaceManager(t);const Q=Y.getActiveBackend();let Z=false;const ee=Q&&X&&JSON.stringify(Q)!==JSON.stringify(X);if(W&&!ee&&!j){V.error([`${a.TITLE_APP} initialized in not empty directory!`,`The directory has ${a.TITLE_APP} configuration files. You may begin working`,`with ${a.TITLE_APP} immediately by creating ${a.TITLE_APP} resources.`]);return}if(ee&&X){if(j){V.warn("Backend configuration changed. -reconfigure passed, skipping migration.")}else{const t=e.inputEnabled??true;if(!t&&e.migrateState===undefined){V.error("Backend configuration changed.\nError: input is disabled and -migrate-state was not passed.");return}let i=e.migrateState;if(i===undefined&&t){i=await(0,o.askMigrationApproval)(X.type)}if(i){Z=true}}}if(!X||X.type==="local"){ensureStateExists(K.statePath,V)}const te=new _.State(t,undefined,undefined,!U,d);try{await te.acquireLock(m,P);if(Z&&Q&&X){V.info(`Migrating state from ${Q.type} to ${X.type}...`);const e=new _.State(t,undefined,undefined,false,undefined,Q);try{await e.init();const t=e.getState();await te.init();te.replaceState(t);await te.save();V.success(`Successfully migrated state to ${X.type} backend!`)}catch(e){V.error(`Failed to migrate state: ${e.message}`);return}}else{await te.init();if(te.getState().serial===0){await te.save()}}Y.setActiveBackend(X)}catch(e){V.error(`Failed to initialize remote backend: ${e.message}`);return}finally{await te.releaseLock()}printInitSummary(V,J);printNextSteps(V)};t.initCmd=initCmd},17155:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.loginCmd=void 0;const m=i(80465);const h=d(i(23785));const P=i(72633);const askQuestion=(e,t)=>new Promise((i=>{e.question(t,(e=>i(e.trim())))}));const loginCmd=async(e={})=>{let{hostname:t="github.com"}=e;if(t==="app.terraform.io")t="github.com";console.log(`\nTestForm must now request authentication credentials for ${(0,m.bold)(t)}.\nThese credentials will be stored locally at ~/.testform.d/credentials.json.\n`);const i=h.createInterface({input:process.stdin,output:process.stdout});try{const e=new P.Credentials;const a={};const o=await askQuestion(i,`Token (PAT) for ${t}: `);if(!o)throw new Error("Token cannot be empty.");a.token=o;e.setAuth(t,a);console.log(`\n${(0,m.green)("Success!")} Configuration saved for ${t}.`)}catch(e){console.log(`\n${(0,m.yellow)("Login aborted:")} ${e.message}`);process.exit(1)}finally{i.close()}};t.loginCmd=loginCmd},13834:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logoutCmd=void 0;const a=i(80465);const o=i(72633);const logoutCmd=async(e={})=>{let{hostname:t="github.com"}=e;if(t==="app.terraform.io")t="github.com";const i=new o.Credentials;const d=i.removeToken(t);if(d){console.log(`\n${(0,a.green)("Success!")} Removed credentials for ${t}.`)}else{console.log(`\n${(0,a.yellow)("Warning:")} No credentials found for ${t}.`)}};t.logoutCmd=logoutCmd},74483:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.planCmd=void 0;t.hashScenario=hashScenario;t.calculatePlan=calculatePlan;const a=i(76982);const o=i(2560);const d=i(80465);const m=i(80573);const h=i(84489);const P=i(45392);const _=i(32721);const L=i(7066);const j=i(86999);const U=i(79896);const H=i(31821);const V=i(2560);const K=i(62978);const W=i(16928);function hashScenario(e,t){const i=JSON.parse(JSON.stringify(e));if(!t||t==="testcase"){i.name=""}if(!t||t==="testrun"||t==="testplan"){if(i.feature){i.feature.name=""}}return(0,a.createHash)("sha256").update(JSON.stringify(i)).digest("hex")}async function calculatePlan(e){const{dir:t,scope:i,variables:a,statePath:o,backupPath:m,target:j,destroyPlan:U=false,refreshOnly:H=false,preLoadedState:J,lock:X=true,lockTimeout:Y="0s",replaceTargets:Q,compactWarnings:Z,testDirectory:ee}=e;const te=new h.Config(t);if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,i)){throw new Error(`Invalid scope: ${i}`)}const ne=V.SCOPE_CONFIG[i];const re=ne.resource;const ie=ee?(0,W.join)(t,ee):t;const ae=new P.Parser(ie,a);const oe=ae.content();const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,t))return false;const i=V.SCOPE_CONFIG[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};let se=oe.filter((e=>matchesScope(e,i)));const ce={identity:te.getIdentity(i),fields:te.getFields(i)};let le=ae.filter(se,ce,i)||[];if(j){const e=Array.isArray(j)?j:[j];le=le.filter((t=>{const i=t.custom?.identity?`${t.uri}::${t.custom.identity}`:"";return e.some((e=>i===e||i.startsWith(`${e}::`)||i.endsWith(`/${e}`)||i.endsWith(e)))}))}if(U){le=[]}const ue=_.policy.scanner(le,i,false,Z);if(ue){const e=new Error("Please fix them before continuing.");e.name="Policy violations found";throw e}const de=J||new L.State(t,o,m);if(!J){await de.init();await de.acquireLock(X,Y)}let pe=de.getResources(re);if(j){const e=Array.isArray(j)?j:[j];pe=pe.filter((t=>e.some((e=>t.identity===e||t.identity.startsWith(`${e}::`)||t.identity.endsWith(`/${e}`)||t.identity.endsWith(e)))))}if(H){return{changes:[],state:de,hasChanges:false}}for(const e of pe){const t=e.attributes.remoteId?`[id=${e.attributes.remoteId}]`:"";console.log((0,d.bold)(`${(0,K.formatResourceAddress)(e.type,e.identity)}: Refreshing state... ${t}`))}console.log("");const me=new Map(pe.map((e=>[e.identity,e])));const fe=new Set;const he=[];for(const e of le){let t;const a=e.custom?.identity;if(!a)continue;if(a.includes("::")){t=a}else if(a===e.uri){t=a}else{t=`${e.uri}::${a}`}fe.add(t);const o=hashScenario(e,i);const d=me.get(t);const m=Q?Array.isArray(Q)?Q.some((e=>t===e||t.startsWith(`${e}::`)||t.endsWith(`/${e}`)||t.endsWith(e))):t===Q||t.startsWith(`${Q}::`)||t.endsWith(`/${Q}`)||t.endsWith(Q):false;if(!d){he.push({action:"add",identity:t,resourceType:re,scenario:e,localHash:o})}else if(d.tainted||m){he.push({action:"replace",identity:t,resourceType:re,scenario:e,remoteId:d.attributes.remoteId,issueNumber:d.attributes.issueNumber,localHash:o,oldAttributes:d.attributes})}else if(d.attributes.localHash!==o){he.push({action:"change",identity:t,resourceType:re,scenario:e,remoteId:d.attributes.remoteId,issueNumber:d.attributes.issueNumber,localHash:o,oldAttributes:d.attributes})}}for(const e of pe){if(!fe.has(e.identity)){he.push({action:"destroy",identity:e.identity,resourceType:re,scenario:i==="testrun"||i==="testplan"?{uri:"(state)",feature:{tags:[],keyword:"",name:e.attributes.title,description:"",location:0},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:Array.isArray(e.attributes.labels)?e.attributes.labels:e.attributes.labels?String(e.attributes.labels).split(","):[],custom:{identity:e.identity}}:{uri:"(state)",feature:{tags:[],keyword:"",name:"",description:"",location:0},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:e.attributes.labels,custom:{identity:e.identity}},remoteId:e.attributes.remoteId,issueNumber:e.attributes.issueNumber,localHash:e.attributes.localHash})}}return{changes:he,hasChanges:he.length>0,state:de}}const planCmd=async e=>{const{dir:t=".",verbose:a=false,scope:d,outPath:h,lock:P=true,lockTimeout:_="0s",variables:K,isJson:W=false,detailedExitCode:J=false,statePath:X,backupPath:Y,target:Q,destroyPlan:Z=false,refresh:ee=true,refreshOnly:te=false,replaceTargets:ne,parallelism:re,compactWarnings:ie=false,testDirectory:ae}=e;const oe=new j.Logger(a);const se=new L.State(t,X,Y);await se.init();await se.acquireLock(P,_);let ce={changes:[],hasChanges:false,state:se};try{const e=d==="all"?["testcase","testrun","testplan"]:[d];if(ee&&!Z){if(!W)console.log(o.MSG_ACQUIRING_LOCK)}let i=[];for(const a of e){if(ee&&!Z){await(0,H.refreshState)({dir:t,scope:a,state:se,logger:oe,silent:W,parallelismRaw:re,target:Q})}const e=await calculatePlan({dir:t,scope:a,variables:K,statePath:X,backupPath:Y,target:Q,destroyPlan:Z,refreshOnly:te,preLoadedState:se,lock:P,lockTimeout:_,replaceTargets:ne,compactWarnings:ie,testDirectory:ae});i.push(...e.changes);ce.state=e.state}ce.changes=i;ce.hasChanges=i.length>0;if(W){const e={testform_version:V.VERSION_CLI,scope:d,changes:ce.changes};console.log(JSON.stringify(e,null,2))}else{m.resource.summary(ce.changes,true,{state:ce.state,outPath:h})}}finally{await se.releaseLock()}if(h){const e=i(16928);const a=e.resolve(t,h);const o={testform_version:V.VERSION_CLI,scope:d,changes:ce.changes};try{(0,U.writeFileSync)(a,JSON.stringify(o,null,2),"utf-8");console.log(`\nSaved the plan to: ${h}\n\nTo perform exactly these actions, run the following command to apply:\n testform apply "${h}"`)}catch(e){oe.error(`Failed to write plan to ${a}: ${e.message}`)}}if(J){process.exitCode=ce.hasChanges?2:0}return ce};t.planCmd=planCmd},31821:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.refreshCmd=t.refreshState=void 0;const a=i(80465);const o=i(92401);const d=i(84489);const m=i(7066);const h=i(86999);const P=i(1622);const _=i(2560);const refreshState=async e=>{const{dir:t,scope:m,state:h,logger:L,silent:j=false,parallelismRaw:U,target:H}=e;if(!Object.prototype.hasOwnProperty.call(_.SCOPE_RESOURCE_MAP,m)){throw new Error(`Invalid scope: ${m}`)}const V=_.SCOPE_RESOURCE_MAP[m];let K=h.getResources(V);if(H){const e=Array.isArray(H)?H:[H];K=K.filter((t=>e.some((e=>t.identity===e||t.identity.startsWith(`${e}::`)||t.identity.endsWith(`/${e}`)||t.identity.endsWith(e)))))}if(K.length===0){await h.save();if(!j)console.log("No resources in state to refresh.");return}const W=new d.Config(t);const J=W.getGitHub();if(!J){if(!j){P.notify.push({type:"error",title:"GitHub configuration not found",detail:[_.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return}const X=new o.GitHubAdapter(J);let Y=0;let Q=0;const Z=U?parseInt(String(U),10)||10:10;for(let e=0;e<K.length;e+=Z){const t=K.slice(e,e+Z);await Promise.all(t.map((async e=>{const t=e.attributes.remoteId??"";const{formatResourceAddress:o}=i(62978);if(!j)console.log(`${o(e.type,e.identity)}: Refreshing state... ${(0,a.dim)(`[id=${t}]`)}`);try{if(!e.attributes.issueNumber){if(!j)console.log((0,a.yellow)(` ${e.identity}: No issue number — removing from state`));h.removeResource(e.identity);Q++;return}const t=await X.getIssue(e.attributes.issueNumber);if(!t){if(!j)console.log((0,a.red)(` ${e.identity}: Issue #${e.attributes.issueNumber} not found — removing from state`));h.removeResource(e.identity);Q++}else{let i=false;if(e.attributes.title!==t.title){e.attributes.title=t.title;i=true}const arraysEqual=(e=[],t=[])=>{if(e.length!==t.length)return false;const i=[...e].sort();const a=[...t].sort();return i.every(((e,t)=>e===a[t]))};const a=t.labels??[];const o=Array.isArray(e.attributes.labels)?e.attributes.labels:e.attributes.labels?String(e.attributes.labels).split(","):[];if(!arraysEqual(o,a)){e.attributes.labels=a;i=true}const d=t.assignees??[];const m=Array.isArray(e.attributes.assignees)?e.attributes.assignees:e.attributes.assignees?String(e.attributes.assignees).split(","):[];if(!arraysEqual(m,d)){e.attributes.assignees=d;i=true}const P=t.milestone??"";const _=String(e.attributes.milestone??"");if(_!==P){e.attributes.milestone=P;i=true}if(t.node_id){const a=await X.getProjectItemFields(t.node_id);const o=e.attributes.custom_fields||{};for(const e of Object.keys(o)){const t=Object.keys(a).find((t=>t.toLowerCase()===e.toLowerCase()));const d=t?a[t]:"";const m=String(Object.prototype.hasOwnProperty.call(o,e)?o[e]:"");const h=m.startsWith("@")?m.substring(1).toLowerCase():m.toLowerCase();const P=d.toLowerCase();if(h!==P){Object.assign(o,{[e]:d});i=true}}e.attributes.custom_fields=o}if(i){e.attributes.localHash="drift_detected";h.upsertResource(e)}Y++}}catch(t){if(!j){P.notify.push({type:"warning",title:`Failed to refresh ${e.identity}: ${t.message}`,detail:[]})}}})))}await h.save();if(!j){console.log("");console.log((0,a.green)((0,a.bold)(`Refresh complete! ${Y} resource(s) refreshed, ${Q} removed.`)))}};t.refreshState=refreshState;const refreshCmd=async e=>{const{dir:i=".",verbose:a=false,scope:o,lock:d=true,lockTimeout:P="0s",statePath:_,backupPath:L,parallelismRaw:j,compactWarnings:U,target:H}=e;const V=new h.Logger(a);const K=new m.State(i,_,L);await K.init();await K.acquireLock(d,P);try{const e=o==="all"?["testcase","testrun","testplan"]:[o];for(const a of e){await(0,t.refreshState)({dir:i,scope:a,state:K,logger:V,silent:false,parallelismRaw:j,target:H})}}finally{await K.releaseLock()}};t.refreshCmd=refreshCmd},8938:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.reportCmd=void 0;t.resolvePath=resolvePath;const o=i(7066);const d=i(80465);const m=a(i(79896));const h=i(84489);const P=i(92401);function resolvePath(e,t){if(!t)return undefined;const i=t.replace(/\[(\w+)\]/g,".$1").split(".");let a=e;for(const e of i){if(a===undefined||a===null)return undefined;a=a[e]}return a}const reportCmd=async e=>{const{dir:t,type:a,format:_,filter:L,out:j,groupBy:U,statePath:H,apply:V,fields:K}=e;const W=new o.State(t,H);await W.init();const J=W.getResources("github_testcase");const X=W.getResources("github_testrun");const Y=W.getResources("github_testplan");const Q=new Map;for(const e of X)Q.set(e.identity,e);let Z=[];const ee=new Set;for(const e of X){const t=e.attributes.testcaseStatuses||{};for(const[i,a]of Object.entries(t)){const t=J.find((e=>e.identity===i));if(!t)continue;ee.add(i);Z.push({id:i,type:"github_testcase",title:String(t.attributes.title||""),status:a||"pending",labels:Array.isArray(t.attributes.labels)?t.attributes.labels.map(String):[],assignees:Array.isArray(t.attributes.assignees)?t.attributes.assignees.map(String):[],milestone:String(t.attributes.milestone||""),testRunId:e.identity,testPlanId:"",issueNumber:Number(t.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${t.attributes.issueNumber}`,custom_fields:t.attributes.custom_fields||{},createdAt:String(t.attributes.createdAt||t.lastApplied||(new Date).toISOString()),updatedAt:String(t.attributes.updatedAt||t.lastApplied||(new Date).toISOString()),originalResource:t})}}for(const e of J){if(!ee.has(e.identity)){Z.push({id:e.identity,type:"github_testcase",title:String(e.attributes.title||""),status:"unexecuted",labels:Array.isArray(e.attributes.labels)?e.attributes.labels.map(String):[],assignees:Array.isArray(e.attributes.assignees)?e.attributes.assignees.map(String):[],milestone:String(e.attributes.milestone||""),testRunId:"",testPlanId:"",issueNumber:Number(e.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${e.attributes.issueNumber}`,custom_fields:e.attributes.custom_fields||{},createdAt:String(e.attributes.createdAt||e.lastApplied||(new Date).toISOString()),updatedAt:String(e.attributes.updatedAt||e.lastApplied||(new Date).toISOString()),originalResource:e})}}for(const e of L){const[t,i]=e.split("=");if(!t||!i)continue;Z=Z.filter((e=>{const a=e[t]||e.custom_fields[t];if(Array.isArray(a)){return a.includes(i)}return String(a)===i}))}let te="";if(_==="json"){te=JSON.stringify(Z,null,2)}else if(_==="csv"){const e=["ID","Title","Status","Labels","Assignees","Milestone","TestRun","IssueNumber"];const t=Z.map((e=>[e.id,`"${e.title.replace(/"/g,'""')}"`,e.status,`"${e.labels.join(" ")}"`,`"${e.assignees.join(" ")}"`,`"${e.milestone}"`,e.testRunId,e.issueNumber]));te=[e.join(","),...t.map((e=>e.join(",")))].join("\n")}else{const e=new h.Config(t);te=generateMarkdownReport(a,Z,U,e,X,Y)}if(j){const e=i(16928);const a=e.resolve(t,j);m.default.writeFileSync(a,te,"utf-8");console.log((0,d.green)(`Report saved to ${j}`))}else if(!V){console.log(te)}if(V){if(_!=="md"){console.log((0,d.yellow)('Warning: Uploading to GitHub is recommended in "md" format. Currently using '+_))}const e=new h.Config(t);const i=e.getGitHub();if(!i){console.error((0,d.red)("Error: GitHub configuration not found in testform.json"));process.exit(1)}const o=e.getFields("testreport");const m={};let L=[];let j=undefined;let U=["testreport"];for(const e of K||[]){let t={};if(e.trim().startsWith("{")){try{t=JSON.parse(e)}catch(t){console.log((0,d.yellow)(`Warning: Could not parse field JSON: ${e}`));continue}}else{const i=e.split("=");if(i.length>=2){t[i[0]]=i.slice(1).join("=")}else{console.log((0,d.yellow)(`Warning: Invalid field format: ${e}. Expected key=value or JSON`));continue}}for(const[e,i]of Object.entries(t)){const t=o.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(e.toLowerCase()==="assignees"){L=L.concat(i.split(",").map((e=>e.trim().replace(/^@/,""))))}else if(e.toLowerCase()==="milestone"){j=i}else if(t?.type==="tags"){U.push(i)}else{m[e]=i}}}const H=new P.GitHubAdapter(i);const V=(new Date).toISOString().split("T")[0];const W=a.charAt(0).toUpperCase()+a.slice(1).replace("-"," ");const J=`${W} - ${V}`;console.log(`Uploading report to GitHub...`);const X=await H.createIssue({title:J,body:te,labels:[...new Set(U)],assignees:L.length>0?L:undefined,milestone:j?parseInt(j,10):undefined});console.log((0,d.green)(`✅ Report successfully created: https://github.com/${i.owner}/${i.repository}/issues/${X.number}`));if(X.node_id&&i.projectId){try{const e=await H.addToProject(X.node_id);if(e){console.log((0,d.green)(`✅ Issue added to GitHub Project.`));if(Object.keys(m).length>0){console.log(`Setting custom fields...`);await H.updateProjectItemFields(e,m);console.log((0,d.green)(`✅ Custom fields updated successfully.`))}}}catch(e){console.log((0,d.yellow)(`Warning: Could not add to project or update custom fields. ${e.message}`))}}}};t.reportCmd=reportCmd;const _={passed:"✅",failed:"❌",pending:"⏳",blocked:"⚠️",skipped:"⏭️",unexecuted:"❔"};function generateMarkdownReport(e,t,i="labels",a,o=[],d=[]){const m=[];if(e==="testcase-summary"){m.push("# Informe de Casos de Prueba");m.push("");m.push("| ID | Título | Etiquetas | Estado |");m.push("|---|---|---|---|");t.forEach((e=>{const t=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.id} | ${e.title} | ${e.labels.join(", ")} | ${t} ${e.status} |`)}))}else if(e==="testrun-summary"){m.push("# Test Run Summary");m.push("");const e=o.length;const i=o.filter((e=>e.attributes.state==="open")).length;const a=o.filter((e=>e.attributes.state==="closed")).length;const d=new Set(t.filter((e=>e.testRunId)).map((e=>e.id))).size;const h=new Set(t.filter((e=>e.testRunId)).map((e=>e.id.split("::")[0]))).size;const P=t.filter((e=>e.testRunId&&["failed","blocked"].includes(e.status.toLowerCase()))).length;const _={type:"doughnut",data:{labels:["Active","Closed"],datasets:[{data:[i,a],backgroundColor:["#f39c12","#3498db"]}]},options:{rotation:270,circumference:180,plugins:{doughnutlabel:{labels:[{text:e.toString(),font:{size:40}},{text:"Test Runs"}]},legend:{position:"right"}}}};const L=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(_))}`;const j=getStats(t.filter((e=>e.testRunId)));const U={type:"doughnut",data:{labels:["Passed","Failed","Blocked","Pending","Skipped"],datasets:[{data:[j.passed,j.failed,j.blocked,j.pending,j.skipped],backgroundColor:["#2ea043","#f85149","#58a6ff","#e3b341","#8b949e"]}]},options:{plugins:{doughnutlabel:{labels:[{text:d.toString(),font:{size:30}},{text:"Total Test Cases"}]},legend:{position:"right"}}}};const H=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(U))}`;const V={};for(const e of o){const t=(e.createdAt||e.lastApplied||(new Date).toISOString()).split("T")[0];V[t]=(V[t]||0)+1}const K=Object.keys(V).sort();const W=K.map((e=>V[e]));const J={type:"bar",data:{labels:K.length?K:["No Data"],datasets:[{label:"Test Runs",data:W.length?W:[0],backgroundColor:"#3498db"}]},options:{plugins:{legend:{display:false}},scales:{y:{beginAtZero:true,ticks:{stepSize:1}}}}};const X=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(J))}`;m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Total Test Runs</h3>");m.push(`<img src="${L}" />`);m.push('</td><td width="50%" valign="top">');m.push("<h3>Total Test Cases</h3>");m.push(`<h1>${d}</h1><br>`);m.push("<h3>Total Linked Requirements</h3>");m.push(`<h1>${h}</h1>`);m.push("</td></tr>");m.push("</table>");m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Test Case Break-up</h3>");m.push(`<img src="${H}" />`);m.push('</td><td width="50%">');m.push("<h3>Test Runs Break-up</h3>");m.push(`<img src="${X}" />`);m.push("</td></tr>");m.push("</table>");m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Defects Linked with Test Results</h3>");m.push(`<h1>${P}</h1>`);m.push('</td><td width="50%">');m.push("<h3>Requirements Linked with Test Runs</h3>");m.push(`<h1>${h}</h1>`);m.push("</td></tr>");m.push("</table>")}else if(e==="testrun-detailed"){m.push("# Test Run Detailed Report");m.push("");const e=o.length;const i=o.filter((e=>e.attributes.state==="open")).length;const d=o.filter((e=>e.attributes.state==="closed")).length;const h=new Set(t.filter((e=>e.testRunId)).map((e=>e.id))).size;const P=new Set(t.filter((e=>e.testRunId)).map((e=>e.id.split("::")[0]))).size;const L={};for(const e of t.filter((e=>e.testRunId))){L[e.testRunId]=(L[e.testRunId]||0)+1}const j=Object.keys(L).sort();const U=j.map((e=>L[e]));const H={type:"line",data:{labels:j.length?j:["No Data"],datasets:[{label:"Test Cases",data:U.length?U:[0],borderColor:"#3498db",fill:false}]},options:{plugins:{legend:{display:false}}}};const V=`https://quickchart.io/chart?w=500&h=200&c=${encodeURIComponent(JSON.stringify(H))}`;m.push('<table width="100%">');m.push('<tr><td width="60%">');m.push("<h3>Test run performance</h3>");m.push(`<h1>${h}</h1> <small>Test Cases trend over Specific Test Runs</small><br/>`);m.push(`<img src="${V}" />`);m.push('</td><td width="40%" valign="top">');m.push('<table width="100%"><tr><td>');m.push("<h3>Active Test Runs</h3>");m.push(`<h2>${i} / ${e}</h2>`);m.push("</td><td>");m.push("<h3>Closed Test Runs</h3>");m.push(`<h2>${d} / ${e}</h2>`);m.push("</td></tr><tr><td>");m.push("<h3>Total Test Cases</h3>");m.push(`<h2>${h}</h2>`);m.push("</td><td>");m.push("<h3>Total Linked Issues</h3>");m.push(`<h2>${P}</h2>`);m.push("</td></tr></table>");m.push("</td></tr>");m.push("</table>");m.push("");m.push(`### ${h} Test cases included in this report`);m.push("");m.push("| TEST RUN | TEST CASE | TEST RUN LATEST STATUS | TEST CASE PRIORITY |");m.push("|---|---|---|---|");const K=a.getReportMapping("priority")||"attributes.custom_fields.priority";for(const e of t.filter((e=>e.testRunId))){let t=resolvePath(e.originalResource,K);if(t===undefined)t="Medium";const i=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.testRunId} | **${e.id}**<br/>${e.title} | ${i} ${e.status} | ${t} |`)}}else if(e==="testplan-summary"){m.push("# Test Plan Summary");m.push("");const e=new Set;for(const t of d){const i=t.attributes.testruns||[];for(const t of i){const i=o.find((e=>e.identity.endsWith(t)));if(i)e.add(i.identity)}}const i=t.filter((t=>t.testRunId&&e.has(t.testRunId)));const h=i.length;const P=getStats(i);const L={type:"doughnut",data:{labels:["Passed","Failed","Blocked","Pending","Skipped"],datasets:[{data:[P.passed,P.failed,P.blocked,P.pending,P.skipped],backgroundColor:["#2ea043","#f85149","#58a6ff","#e3b341","#8b949e"]}]},options:{plugins:{doughnutlabel:{labels:[{text:h.toString(),font:{size:30}},{text:"Total Test Cases"}]},legend:{position:"right"}}}};const j=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(L))}`;const U={};for(const e of i){if(!U[e.testRunId])U[e.testRunId]={passed:0,failed:0};if(e.status.toLowerCase()==="passed")U[e.testRunId].passed++;if(e.status.toLowerCase()==="failed")U[e.testRunId].failed++}const H=Object.keys(U).sort();const V=H.map((e=>U[e].passed));const K=H.map((e=>U[e].failed));const W={type:"bar",data:{labels:H.length?H:["No Data"],datasets:[{label:"Passed",data:V.length?V:[0],backgroundColor:"#2ea043"},{label:"Failed",data:K.length?K:[0],backgroundColor:"#f85149"}]},options:{scales:{x:{stacked:true},y:{stacked:true,beginAtZero:true}}}};const J=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(W))}`;m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Overall Test Plan Progress</h3>");m.push(`<img src="${j}" />`);m.push('</td><td width="50%">');m.push("<h3>Results from All Linked Test Runs</h3>");m.push(`<img src="${J}" />`);m.push("</td></tr>");m.push("</table>");m.push("");m.push(`### ${e.size} test runs linked to these test plans`);m.push("");m.push("| RUNS | TESTS | TESTS STATUS |");m.push("|---|---|---|");for(const t of Array.from(e)){const e=i.filter((e=>e.testRunId===t));const a=getStats(e);m.push(`| **${t}** | ${e.length} | 🟢 ${a.passed} 🔴 ${a.failed} ⏳ ${a.pending} |`)}m.push("");m.push("<details><summary><b>Linked Test Cases</b></summary>");m.push("");m.push("| TEST RUN | ID | TITLE | PRIORITY | TYPE OF TEST | STATUS |");m.push("|---|---|---|---|---|---|");const X=a.getReportMapping("priority")||"attributes.custom_fields.priority";const Y=a.getReportMapping("type")||"attributes.custom_fields.type";for(const e of i){let t=resolvePath(e.originalResource,X)||"--";let i=resolvePath(e.originalResource,Y)||"--";const a=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.testRunId} | ${e.id} | ${e.title} | ${t} | ${i} | ${a} ${e.status} |`)}m.push("");m.push("</details>")}else if(e==="defects"){m.push("# Informe de Defectos");m.push("");const e=t.filter((e=>["failed","blocked"].includes(e.status.toLowerCase())));if(e.length===0){m.push("🎉 No hay defectos reportados.")}else{m.push("| Run | Test Case | Título | Issue |");m.push("|---|---|---|---|");e.forEach((e=>{m.push(`| ${e.testRunId} | ${e.id} | ${e.title} | [#${e.issueNumber}](${e.issueUrl}) |`)}))}}else if(e==="traceability"){m.push("# Requirement Traceability Report");m.push("");let e={};if(i&&i!=="labels"){e=groupByField(t,i)}else{for(const i of t){const t=i.id.split("::")[0]||"Unknown";if(!e[t])e[t]=[];e[t].push(i)}}const a=Object.keys(e).length;m.push(`[]()`);m.push("");for(const[t,i]of Object.entries(e)){const e=getStats(i);const a=i.length;const o=a>0?Math.round(e.passed/a*100):0;let d="red";if(o===100)d="success";else if(o>50)d="yellow";m.push("<details>");m.push(`<summary><b>${t}</b> <img src="https://img.shields.io/badge/Coverage-${o}%25-${d}"></summary>`);m.push("<br>");m.push('<table width="100%">');m.push(" <tr><th>Test Case</th><th>Status</th><th>Assignee</th></tr>");i.forEach((e=>{const t=_[e.status.toLowerCase()]||_.unexecuted;const i=e.assignees[0]?`@${e.assignees[0]}`:"Unassigned";m.push(` <tr>`);m.push(` <td><code>${e.id}</code><br>${e.title}</td>`);m.push(` <td align="center">${t} ${e.status}</td>`);m.push(` <td align="center">${i}</td>`);m.push(` </tr>`)}));m.push("</table>");m.push("</details>");m.push("")}}else if(e==="coverage"){m.push("# Informe de Cobertura");m.push("");const e=groupByTags(t);m.push("| Etiqueta | Total | ✅ Passed | ❌ Failed | Cobertura % |");m.push("|---|---|---|---|---|");for(const[t,i]of Object.entries(e)){const e=getStats(i);const a=i.length;const o=a>0?Math.round(e.passed/a*100):0;m.push(`| ${t} | ${a} | ${e.passed} | ${e.failed} | ${o}% |`)}}else if(e==="two-dimensional"){m.push("# Informe Bidimensional");m.push("");const e=groupByTags(t);const i=["passed","failed","pending","blocked","skipped","unexecuted"];const a=["Etiqueta",...i.map((e=>`${_[e]} ${e}`))];m.push(`| ${a.join(" | ")} |`);m.push(`|${a.map((()=>"---")).join("|")}|`);for(const[t,a]of Object.entries(e)){const e=getStats(a);const o=[t];for(const t of i){o.push(String(e[t]||0))}m.push(`| ${o.join(" | ")} |`)}}else if(e==="test-case-activity"){m.push("# Test Case Activity");m.push("");const e=t.length;const i=t.filter((e=>e.updatedAt&&e.createdAt&&e.updatedAt!==e.createdAt)).length;const o=0;m.push(`[]() []() []()`);m.push("");const d=a.getReportMapping("automation")||"attributes.custom_fields.automate";let h=0,P=0,_=0,L=0;for(const e of t){const t=resolvePath(e.originalResource,d)||resolvePath(e.originalResource,"attributes.custom_fields.automation");const i=String(t||"").toLowerCase();if(i==="true"||i==="yes"||i==="automated"){P++}else if(i==="not required"){h++}else if(i==="cannot be automated"){L++}else{_++}}const j={type:"doughnut",data:{labels:["Not Required","Automated","Not Automated","Cannot Be"],datasets:[{data:[h,P,_,L],backgroundColor:["#2ea043","#1f6feb","#d29922","#f85149"],borderWidth:0}]},options:{plugins:{datalabels:{display:false},legend:{labels:{fontSize:14}}}}};const U=`https://quickchart.io/chart?c=${encodeURIComponent(JSON.stringify(j))}&w=600&h=300`;const H={};for(const e of t){const t=e.createdAt?e.createdAt.split("T")[0]:(new Date).toISOString().split("T")[0];H[t]=(H[t]||0)+1}const V=Object.keys(H).sort();const K=V.map((e=>H[e]));let W="";if(V.length>0){const e={type:"bar",data:{labels:V,datasets:[{label:"Created",data:K,backgroundColor:"#8957e5",borderRadius:4}]},options:{plugins:{legend:{display:false}},scales:{xAxes:[{gridLines:{display:false}}],yAxes:[{ticks:{stepSize:1,beginAtZero:true},gridLines:{color:"#e1e4e8"}}]}}};W=`https://quickchart.io/chart?c=${encodeURIComponent(JSON.stringify(e))}&w=600&h=300`}m.push("### Automation Coverage");m.push(`<img src="${U}" width="100%">`);m.push("");if(W){m.push("### Trend of Test Cases");m.push(`<img src="${W}" width="100%">`);m.push("")}const J={};for(const e of t){const t=e.assignees[0]||"Unassigned";J[t]=(J[t]||0)+1}const X=Object.entries(J).sort(((e,t)=>t[1]-e[1])).slice(0,5);m.push("### 🏆 Top 5 Test Case Creators");m.push('<table width="100%">');m.push(' <tr><th width="10%">#</th><th width="70%">Assignee</th><th width="20%">Count</th></tr>');X.forEach((([e,t],i)=>{m.push(` <tr><td align="center">${i+1}</td><td><img src="https://github.com/${e}.png?size=24" width="24" style="border-radius:50%; vertical-align:middle;"> <b>@${e}</b></td><td align="center">${t}</td></tr>`)}));m.push("</table>");m.push("");const Y=a.getReportMapping("priority")||"attributes.custom_fields.priority";const Q=a.getReportMapping("type")||"attributes.custom_fields.type";const Z=a.getReportMapping("creator")||"attributes.assignees[0]";m.push("### 📋 Test Cases included in this report");m.push('<table width="100%">');m.push(" <tr><th>ID</th><th>Title</th><th>Priority</th><th>Type</th><th>Updated</th><th>Assignee</th></tr>");const ee=[...t].sort(((e,t)=>t.updatedAt>e.updatedAt?1:-1)).slice(0,5);for(const e of ee){const t=resolvePath(e.originalResource,Y)||"Medium";const i=resolvePath(e.originalResource,Q)||"General";const a=resolvePath(e.originalResource,Z)||e.assignees[0]||"Unassigned";const o=e.updatedAt?e.updatedAt.replace("T"," ").replace("Z",""):"N/A";m.push(` <tr>`);m.push(` <td><code>${e.id}</code></td>`);m.push(` <td>${e.title}</td>`);m.push(` <td align="center">${t}</td>`);m.push(` <td align="center">${i}</td>`);m.push(` <td align="center">${o.split(" ")[0]}</td>`);m.push(` <td align="center">@${a}</td>`);m.push(` </tr>`)}m.push("</table>")}else if(e==="raw"){m.push("# Raw Data Export");m.push("> Note: Use --format json or --format csv for structured data.")}else{m.push(`Unknown report type: ${e}`)}return m.join("\n")}function groupByField(e,t){const i={};for(const a of e){let e="";if(t in a){e=String(a[t]||"")}else{e=String(resolvePath(a.originalResource,t)||"")}if(!i[e])i[e]=[];i[e].push(a)}return i}function groupByTags(e){const t={};for(const i of e){for(const e of i.labels){if(!t[e])t[e]=[];t[e].push(i)}if(i.labels.length===0){if(!t["untagged"])t["untagged"]=[];t["untagged"].push(i)}}return t}function getStats(e){const t={passed:0,failed:0,pending:0,blocked:0,skipped:0,unexecuted:0};for(const i of e){const e=i.status.toLowerCase();if(t[e]!==undefined){t[e]++}else{t[e]=1}}return t}},45765:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.showCmd=void 0;const o=i(80465);const d=i(7066);const m=i(86999);const h=i(2560);const P=a(i(16928));const showCmd=async(e={})=>{const{path:t,isJson:i=false,verbose:a=false,dir:_=".",statePath:L,backupPath:j}=e;const U=new m.Logger(a);let H=t;if(t==="state")H=undefined;if(t==="plan"){U.info(`Use "${h.TITLE_CLI} plan" to generate and view an execution plan.`);return}const V=new d.State(_,H||L,j);await V.init();const K=V.getState();const W=K.resources;if(i){console.log(JSON.stringify(K,null,2));return}console.log("");console.log((0,o.bold)(`# ${h.TITLE_APP} State`));console.log(` Version: ${K.version}`);console.log(` Serial: ${K.serial}`);console.log(` Lineage: ${K.lineage}`);console.log(` Last Sync: ${K.lastSync||"(never)"}`);console.log(` Resources: ${W.length}`);console.log("");if(W.length>0){for(const e of W){const t=e.attributes.remoteId??"(unknown)";const i=e.attributes.issueNumber?(0,o.green)("synced"):(0,o.yellow)("pending");let a=e.identity;if(a.includes("::")){const e=a.split("::");const t=P.default.basename(e[0],".feature");a=`${t}::${e.slice(1).join("::")}`}else{a=P.default.basename(a,".feature")}console.log(` ${(0,o.cyan)(e.type)}.${(0,o.bold)(a)} [id=${t}] ${i}`);console.log(` title: ${e.attributes.title}`);console.log(` issueNumber: ${e.attributes.issueNumber??"(none)"}`);console.log(` localHash: ${(0,o.dim)(e.attributes.localHash.substring(0,12))}...`);console.log(` lastApplied: ${e.lastApplied}`);console.log("")}}};t.showCmd=showCmd},61047:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stateCmd=void 0;const a=i(80465);const o=i(79896);const d=i(16928);const m=i(7066);const h=i(2560);const P=i(62978);const _=`No state file was found!\n\nState management commands require a state file. Run this command\nin a directory where ${h.TITLE_CLI} has been run or use the -state flag\nto point the command to a specific state location.`;const stateCmd=async e=>{const{dir:t=".",action:i,args:L,statePath:j,backupPath:U,isJson:H,id:V,dryRun:K,force:W}=e;const J=new m.State(t,j,U);if(i!=="push"&&!await J.hasState()){console.error((0,a.red)(_));process.exit(1)}await J.init();if(i==="pull"){const e=J.getState();console.log(JSON.stringify(e,null,2));return}if(i==="push"){if(L.length!==1){console.error((0,a.red)(`Usage: ${h.TITLE_CLI} state push [path]`));process.exit(1)}const e=(0,d.resolve)(process.cwd(),L[0]);if(!(0,o.existsSync)(e)){console.error((0,a.red)(`Error: File ${e} not found.`));process.exit(1)}try{const t=(0,o.readFileSync)(e,"utf-8");const i=JSON.parse(t);await J.acquireLock(true,"0s");const d=J.getState();if(!W&&d.lineage&&i.lineage&&d.lineage!==i.lineage){console.error((0,a.red)(`Error: Cannot push state with different lineage. Use -force to override.`));process.exit(1)}const m=d;m.resources=i.resources||[];m.serial+=1;await J.save();await J.releaseLock();console.log((0,a.green)(`Successfully pushed state from ${L[0]}`));return}catch(e){console.error((0,a.red)(`Error parsing or pushing state: ${e.message}`));process.exit(1)}}await J.acquireLock(true,"0s");try{const e=J.getResources();const filterResources=e=>{let t=e;if(V){t=t.filter((e=>e.attributes.issueNumber?.toString()===V||e.attributes.remoteId===V))}if(L.length>0){t=t.filter((e=>{const t=`${e.type}.${e.identity}`;return L.some((i=>t.startsWith(i)||e.identity.startsWith(i)))}))}return t};if(i==="list"){const t=filterResources(e);if(t.length===0&&L.length>0){console.error((0,a.red)(`No instance found for the given address!`));process.exit(1)}else if(t.length===0){console.log("No resources found in state.")}else{for(const e of t){const t=e.tainted?"[tainted] ":"";console.log(`${t}${e.type}.${e.identity}`)}}}else if(i==="identities"){if(!H){console.error((0,a.red)(`The \`${h.TITLE_CLI} state identities\` command requires the \`-json\` flag.`));process.exit(1)}const t=filterResources(e);const i=t.map((e=>e.identity));console.log(JSON.stringify(i,null,2))}else if(i==="show"){if(L.length!==1){console.error((0,a.red)(`Exactly one argument expected.\nUsage: ${h.TITLE_CLI} [global options] state show [options] ADDRESS`));process.exit(1)}const t=L[0];const i=t.includes(".")?t.split(".").slice(1).join("."):t;const o=e.find((e=>e.identity===i||`${e.type}.${e.identity}`===i));if(!o){console.error((0,a.red)(`No instance found for the given address!`));process.exit(1)}console.log((0,a.bold)(`# ${o.type}.${o.identity}:`));console.log(`resource "${o.type}" "${o.identity}" {`);const d=Object.keys(o.attributes);let m=0;for(const e of d){if(e.length>m)m=e.length}for(const e of d){const t=" ".repeat(m-e.length);const i=Object.prototype.hasOwnProperty.call(o.attributes,e)?o.attributes[e]:undefined;console.log(` ${e}${t} = ${(0,P.formatHclValue)(i,1)}`)}console.log(`}`);if(o.tainted){console.log((0,a.red)(`\nThis resource is marked as tainted.`))}}else if(i==="rm"){if(L.length===0){console.error((0,a.red)(`At least one address is required.\n\nUsage: ${h.TITLE_CLI} [global options] state rm [options] ADDRESS...`));process.exit(1)}let t=0;for(const i of L){const o=i.includes(".")?i.split(".").slice(1).join("."):i;if(e.find((e=>e.identity===o||`${e.type}.${e.identity}`===o))){if(K){console.log(`Would remove ${i}`)}else{J.removeResource(o);console.log(`Removed ${i}`)}t++}else{console.error((0,a.red)(`Error: Resource ${i} not found in state.`))}}if(t>0&&!K){await J.save();console.log((0,a.green)(`\nSuccessfully removed ${t} resource instance(s).`))}}else if(i==="mv"){if(L.length!==2){console.error((0,a.red)(`Exactly two arguments expected.\n\nUsage: ${h.TITLE_CLI} [global options] state mv [options] SOURCE DESTINATION`));process.exit(1)}const t=L[0];const i=L[1];const o=t.includes(".")?t.split(".").slice(1).join("."):t;const d=i.includes(".")?i.split(".").slice(1).join("."):i;const m=e.find((e=>e.identity===o||`${e.type}.${e.identity}`===o));if(!m){console.error((0,a.red)(`Error: Source resource ${t} not found in state.`));process.exit(1)}if(K){console.log(`Would move ${t} to ${i}`)}else{J.removeResource(m.identity);m.identity=d;if(i.includes(".")){m.type=i.split(".")[0]}J.upsertResource(m);await J.save();console.log((0,a.green)(`Move ${t} to ${i} successfully executed!`))}}else{console.error((0,a.red)(`Usage: ${h.TITLE_CLI} state <identities|list|mv|pull|push|rm|show> [options] [args]`));process.exit(1)}}finally{await J.releaseLock()}};t.stateCmd=stateCmd},1510:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taintCmd=void 0;const a=i(80465);const o=i(7066);const taintCmd=async e=>{const{dir:t=".",action:i,identityRaw:d,statePath:m,backupPath:h,allowMissing:P=false,lock:_=true,lockTimeout:L="0s"}=e;const j=new o.State(t,m,h);await j.init();await j.acquireLock(_,L);try{let e=null;for(const t of["github_testcase","github_testrun","github_testplan"]){const i=d.replace(new RegExp(`^${t}\\.`),"");e=j.getResources(t).find((e=>e.identity===i));if(e)break}if(!e){if(P){console.log((0,a.green)(`Resource not found in state, but allow-missing is set. Exiting successfully.`));process.exit(0)}console.error((0,a.red)(`Error: Resource not found in state.`));process.exit(1)}if(i==="taint"){if(e.tainted){console.log(`Resource instance ${d} is already tainted`)}else{e.tainted=true;j.upsertResource(e);await j.save();console.log((0,a.green)(`Resource instance ${d} has been marked as tainted.`))}}else{if(!e.tainted){console.log(`Resource instance ${d} is not tainted`)}else{delete e.tainted;j.upsertResource(e);await j.save();console.log((0,a.green)(`Resource instance ${d} has been successfully untainted.`))}}}finally{await j.releaseLock()}};t.taintCmd=taintCmd},30010:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCmd=void 0;const a=i(79896);const o=i(16928);const d=i(84489);const m=i(45392);const h=i(32721);const P=i(86999);const validateCmd=async e=>{const{targetPath:t=".",verbose:i=false,scope:_,variables:L,isJson:j=false,testDirectory:U,noTests:H=false,query:V}=e;const K=new P.Logger(i);if(j){}else{K.info("Validating configuration...",{bold:true})}let W=t;let J=U?(0,o.join)(t,U):t;try{if((0,a.statSync)(J).isFile()){W=(0,o.dirname)(J)}}catch(e){}const X=new m.Parser(J,L);const Y=X.content();if(Y.length===0){if(j){console.log(JSON.stringify({valid:false,error_count:1,warning_count:0,diagnostics:[{severity:"error",summary:"Failed to read module directory",detail:`Module directory ${t} does not exist or cannot be read.`}]},null,2))}else{K.error(`Failed to read module directory\n\nModule directory ${J} does not exist or cannot be read.`)}return}const Q=new d.Config(W);K.debug(`Configuration loaded: v${Q.getConfig().version}`);K.debug(`Found ${Y.length} scenarios across feature files`);const Z={testcase:{tag:"@testcase",ext:".case.feature"},testrun:{tag:"@testrun",ext:".run.feature"},testplan:{tag:"@testplan",ext:".plan.feature"}};const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(Z,t))return false;const i=Z[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};const ee=Y.filter((e=>matchesScope(e,_)));if(ee.length===0){if(!j)K.warn(`No scenarios found for scope "${_}".`);return}if(!j)K.debug(`Found ${ee.length} scenarios matching scope "${_}"`);const te={identity:Q.getIdentity(_),fields:Q.getFields(_)};let ne=X.filter(ee,te,_);if(V){const e=V.toLowerCase();ne=ne.filter((t=>t.name&&t.name.toLowerCase().includes(e)||t.custom?.identity&&t.custom.identity.toLowerCase().includes(e)||t.tags&&t.tags.some((t=>t.toLowerCase().includes(e)))||t.uri&&t.uri.toLowerCase().includes(e)));if(!j){K.info(`--- Query Results for "${V}" ---`,{bold:true});if(ne.length===0){K.info(`No scenarios matched the query.`)}else{ne.forEach((e=>{K.info(`- [${_}] ${e.custom?.identity||e.name} (File: ${e.uri}:${e.location})`)}))}K.blank()}}if(!H){const e=h.policy.scanner(ne,_,j);if(e){const e=new Error("Please fix them before continuing.");e.name="Policy violations found";throw e}}else if(!j){K.info(`Skipping policy validation (-no-tests).`)}if(j){console.log(JSON.stringify({valid:true,error_count:0,warning_count:0,diagnostics:[]},null,2))}else{K.success("Success! The configuration is valid.",{bold:true});K.blank();K.info(` Scenarios: ${ne.length}`);K.info(` Scope: ${_}`)}};t.validateCmd=validateCmd},62743:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.workspaceCmd=void 0;const a=i(80465);const o=i(86999);const d=i(7066);const m=i(2560);const workspaceCmd=async e=>{const{dir:t,verbose:i,args:h}=e;const P=new o.Logger(i);const _=new d.State(t);const L=h[0];const j=h[1];if(!L){P.error(`Usage: ${m.TITLE_CLI} workspace [subcommand] [options] [args]`);process.exit(1)}await _.init();const U=_.getCurrentWorkspace();switch(L){case"show":console.log(U);break;case"list":const e=await _.listWorkspaces();for(const t of e){if(t===U){console.log((0,a.green)(`* ${t}`))}else{console.log(` ${t}`)}}break;case"new":if(!j){P.error("Expected a workspace name");process.exit(1)}const i=await _.listWorkspaces();if(i.includes(j)){P.error(`Workspace "${j}" already exists`);process.exit(1)}_.setCurrentWorkspace(j);const o=new d.State(t);await o.init();o.clearResources();await o.save();console.log((0,a.green)(`Created and switched to workspace "${j}"!`));console.log("");console.log(`You're now on a new, empty workspace. Workspaces isolate their state,`);console.log(`so if you run "${m.TITLE_CLI} plan" ${m.TITLE_CLI} will not see any existing state`);console.log(`for this configuration.`);break;case"select":if(!j){P.error("Expected a workspace name");process.exit(1)}const h=await _.listWorkspaces();if(!h.includes(j)){P.error(`Workspace "${j}" doesn't exist.\n\nYou can create this workspace with the "new" subcommand.`);process.exit(1)}_.setCurrentWorkspace(j);console.log((0,a.green)(`Switched to workspace "${j}".`));break;case"delete":if(!j){P.error("Expected a workspace name");process.exit(1)}if(j==="default"){P.error(`Workspace "default" cannot be deleted.`);process.exit(1)}if(j===U){P.error(`Workspace "${j}" is your active workspace.\n\nYou cannot delete the currently active workspace. Please switch\nto another workspace and try again.`);process.exit(1)}const H=await _.listWorkspaces();if(!H.includes(j)){P.error(`Workspace "${j}" doesn't exist.`);process.exit(1)}const V=await _.deleteWorkspace(j);if(V){console.log((0,a.green)(`Deleted workspace "${j}"!`))}else{P.error(`Failed to delete workspace "${j}".`);process.exit(1)}break;default:P.error(`Invalid workspace subcommand: ${L}`);process.exit(1)}};t.workspaceCmd=workspaceCmd},2560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MSG_APPROVE_ONLY_YES=t.MSG_ACQUIRING_LOCK=t.ERR_NO_INPUT_ALLOWED=t.ERR_GITHUB_CONFIG_NOT_FOUND=t.SCOPE_CONFIG=t.SCOPE_RESOURCE_MAP=t.FILE_STATE=t.FILE_CONFIG=t.VERSION_STATE=t.VERSION_CONFIG=t.VERSION_CLI=t.TITLE_CLI=t.TITLE_APP=void 0;t.TITLE_APP="Testform";t.TITLE_CLI="testform";t.VERSION_CLI="1.0.9";t.VERSION_CONFIG="1.0";t.VERSION_STATE="1.0";t.FILE_CONFIG="testform.json";t.FILE_STATE="testform.state";t.SCOPE_RESOURCE_MAP={testcase:"github_testcase",testrun:"github_testrun",testplan:"github_testplan",testreport:"github_testreport"};const i={testcase:"@testcase",testrun:"@testrun",testplan:"@testplan",testreport:"@testreport"};const a={testcase:".case.feature",testrun:".run.feature",testplan:".plan.feature",testreport:".report.feature"};t.SCOPE_CONFIG={testcase:{tag:i.testcase,ext:a.testcase,resource:t.SCOPE_RESOURCE_MAP.testcase},testrun:{tag:i.testrun,ext:a.testrun,resource:t.SCOPE_RESOURCE_MAP.testrun},testplan:{tag:i.testplan,ext:a.testplan,resource:t.SCOPE_RESOURCE_MAP.testplan}};const o=null&&["pending","passed","failed","blocked","skipped","undefined"];const d={pending:"⏳",passed:"✅",failed:"❌",blocked:"⚠️",skipped:"⏭️",undefined:"❓"};t.ERR_GITHUB_CONFIG_NOT_FOUND=`GitHub configuration not found. Add a "github" section to your ${t.FILE_CONFIG} with owner, repository, and tokenEnv.`;t.ERR_NO_INPUT_ALLOWED=`This command requires manual approval, but input is disabled. Use the -auto-approve flag to bypass approval.`;t.MSG_ACQUIRING_LOCK="Acquiring state lock. This may take a few moments...";t.MSG_APPROVE_ONLY_YES=`Only 'yes' will be accepted to approve.`},59491:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureRMBackend=void 0;const a=i(71400);const o=i(76982);const d=i(2560);class AzureRMBackend{config;workspace;containerClient;blobClient;currentLeaseId;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const i=e.connection_string||process.env.AZURE_STORAGE_CONNECTION_STRING;if(!i){const e=new Error("AZURE_STORAGE_CONNECTION_STRING env variable is missing");e.name="AzureRM Backend Configuration Error";throw e}const o=a.BlobServiceClient.fromConnectionString(i);this.containerClient=o.getContainerClient(e.container_name);this.config.key=this.config.key||d.FILE_STATE;this.originalKey=this.config.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}this.blobClient=this.containerClient.getBlockBlobClient(this.config.key)}async exists(){try{return await this.blobClient.exists()}catch(e){return false}}async read(){try{await this.containerClient.createIfNotExists();const e=await this.blobClient.exists();if(!e){return this.emptyState()}const t=await this.blobClient.download(0);const i=await this.streamToString(t.readableStreamBody);return JSON.parse(i)}catch(e){return this.emptyState()}}async write(e){await this.containerClient.createIfNotExists();const t=JSON.stringify(e,null,2);const i={blobHTTPHeaders:{blobContentType:"application/json"}};if(this.currentLeaseId){i.conditions={leaseId:this.currentLeaseId}}await this.blobClient.upload(t,t.length,i)}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const d=await this.blobClient.exists();if(!d){await this.write(this.emptyState())}const m=this.blobClient.getBlobLeaseClient();while(true){try{const e=await m.acquireLease(-1);this.currentLeaseId=e.leaseId;try{await this.blobClient.setMetadata({id:(0,o.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()},{conditions:{leaseId:this.currentLeaseId}})}catch(e){if(e.statusCode!==201){throw e}}return true}catch(e){if(e.statusCode===409||e.code==="LeaseAlreadyPresent"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.currentLeaseId)return true;try{const e=this.blobClient.getBlobLeaseClient(this.currentLeaseId);await e.releaseLease();this.currentLeaseId=undefined;return true}catch(e){return false}}async forceUnlock(e){try{const t=await this.blobClient.getProperties();const i=t.metadata?.id;if(t.leaseState==="available"){return{success:false,error:"No lock exists for the given state."}}if(i!==e){return{success:false,currentLockId:i||"unknown"}}const a=this.blobClient.getBlobLeaseClient();await a.breakLease(0);return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){try{const e=await this.blobClient.getProperties();return e.leaseState!=="available"}catch(e){return false}}emptyState(){return{version:d.VERSION_STATE,serial:0,lineage:(0,o.randomUUID)(),lastSync:"",resources:[]}}async streamToString(e){return new Promise(((t,i)=>{const a=[];e.on("data",(e=>{a.push(e.toString())}));e.on("end",(()=>{t(a.join(""))}));e.on("error",i)}))}async listWorkspaces(){const e=new Set(["default"]);try{for await(const t of this.containerClient.listBlobsFlat({prefix:"env:/"})){const i=t.name.match(/^env:\/([^\/]+)\//);if(i){e.add(i[1])}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const t=`env:/${e}/${this.originalKey}`;const i=this.containerClient.getBlockBlobClient(t);await i.deleteIfExists();return true}catch(e){return false}}}t.AzureRMBackend=AzureRMBackend},64558:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GCSBackend=void 0;const a=i(28525);const o=i(76982);const d=i(2560);class GCSBackend{config;workspace;storage;bucketClient;stateKey;lockKey;lockId;constructor(e,t="default"){this.config=e;this.workspace=t;const i={};if(e.credentials){i.keyFilename=e.credentials}this.storage=new a.Storage(i);this.bucketClient=this.storage.bucket(e.bucket);let o=this.config.prefix||"";if(o&&!o.endsWith("/")){o+="/"}const m=d.FILE_STATE;if(this.workspace!=="default"){this.stateKey=`${o}env:/${this.workspace}/${m}`}else{this.stateKey=`${o}${m}`}this.lockKey=`${this.stateKey}.tflock`}emptyState(){return{version:d.VERSION_STATE,serial:0,lineage:(0,o.randomUUID)(),lastSync:"",resources:[]}}async exists(){try{const[e]=await this.bucketClient.file(this.config.prefix).exists();return e}catch(e){return false}}async read(){try{const e=this.bucketClient.file(this.stateKey);const[t]=await e.exists();if(!t){return this.emptyState()}const[i]=await e.download();return JSON.parse(i.toString("utf8"))}catch(e){return this.emptyState()}}async write(e){const t=this.bucketClient.file(this.stateKey);const i=JSON.stringify(e,null,2);await t.save(i,{contentType:"application/json"})}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const d=this.bucketClient.file(this.lockKey);const m=JSON.stringify({id:(0,o.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()});while(true){try{await d.save(m,{preconditionOpts:{ifGenerationMatch:0}});this.lockId=m;return true}catch(e){if(e.code===412||e.code==="412"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.lockId)return true;const e=this.bucketClient.file(this.lockKey);try{const[t]=await e.exists();if(t){await e.delete()}this.lockId=undefined;return true}catch(e){return false}}async forceUnlock(e){const t=this.bucketClient.file(this.lockKey);try{const[i]=await t.exists();if(!i){return{success:false,error:"No lock exists for the given state."}}const[a]=await t.download();const o=JSON.parse(a.toString("utf8"));if(o.id!==e){return{success:false,currentLockId:o.id}}await t.delete();this.lockId=undefined;return{success:true}}catch(e){return{success:false,error:e.message}}}async isLocked(){const e=this.bucketClient.file(this.lockKey);try{const[t]=await e.exists();return t}catch(e){return false}}async listWorkspaces(){const e=new Set(["default"]);try{let t=this.config.prefix||"";if(t&&!t.endsWith("/")){t+="/"}const i=`${t}env:/`;const[a]=await this.bucketClient.getFiles({prefix:i});for(const t of a){const a=t.name.substring(i.length);const o=a.match(/^([^\/]+)\//);if(o){e.add(o[1])}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{let t=this.config.prefix||"";if(t&&!t.endsWith("/")){t+="/"}const i=`${t}env:/${e}/${d.FILE_STATE}`;const a=this.bucketClient.file(i);const[o]=await a.exists();if(o){await a.delete();return true}return false}catch(e){return false}}}t.GCSBackend=GCSBackend},27814:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LocalBackend=void 0;const a=i(16928);const o=i(79896);const d=i(76982);const m=i(2560);class LocalBackend{dir;customStatePath;customBackupPath;workspace;constructor(e,t,i,a="default"){this.dir=e;this.customStatePath=t;this.customBackupPath=i;this.workspace=a}getWorkspaceStatePath(){if(this.customStatePath){return(0,a.resolve)(this.dir,this.customStatePath)}if(this.workspace!=="default"){return(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`,this.workspace,m.FILE_STATE)}return(0,a.resolve)(this.dir,m.FILE_STATE)}resolvePath(){const e=this.getWorkspaceStatePath();if((0,o.existsSync)(e))return e;if(this.workspace==="default"){const e=(0,a.resolve)(this.dir,m.FILE_STATE);if((0,o.existsSync)(e))return e}return null}lockPath(){const e=this.resolvePath()??this.getWorkspaceStatePath();return`${e}.lock`}async exists(){return this.resolvePath()!==null}async read(){const e=this.resolvePath();if(!e||!(0,o.existsSync)(e)){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}const t=await o.promises.readFile(e,"utf-8");return JSON.parse(t)}async write(e){const t=this.resolvePath()??this.getWorkspaceStatePath();const i=(0,a.resolve)(t,"..");if(!(0,o.existsSync)(i)){await o.promises.mkdir(i,{recursive:true})}const d=this.customBackupPath?(0,a.resolve)(this.dir,this.customBackupPath):`${t}.backup`;if((0,o.existsSync)(t)){await o.promises.copyFile(t,d)}await o.promises.writeFile(t,JSON.stringify(e,null,2),"utf-8")}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=this.lockPath();const m=Date.now();while(true){try{await o.promises.writeFile(a,JSON.stringify({id:(0,d.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()},null,2),{flag:"wx"});return true}catch(e){if(e.code==="EEXIST"){if(Date.now()-m>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){const e=this.lockPath();if((0,o.existsSync)(e)){try{await o.promises.unlink(e);return true}catch(e){return false}}return true}async forceUnlock(e){const t=this.lockPath();if(!(0,o.existsSync)(t)){return{success:false,error:`No lock exists for the given state. (Path checked: ${t})`}}try{const i=await o.promises.readFile(t,"utf-8");const a=JSON.parse(i);if(a.id!==e){return{success:false,currentLockId:a.id}}await o.promises.unlink(t);return{success:true}}catch(e){return{success:false,error:`The lock file could not be read or parsed.`}}}async isLocked(){return(0,o.existsSync)(this.lockPath())}async listWorkspaces(){const e=["default"];const t=(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`);if((0,o.existsSync)(t)){const i=await o.promises.readdir(t,{withFileTypes:true});for(const t of i){if(t.isDirectory()){e.push(t.name)}}}return e}async deleteWorkspace(e){if(e==="default")return false;const t=(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`,e);if((0,o.existsSync)(t)){await o.promises.rm(t,{recursive:true,force:true});return true}return false}}t.LocalBackend=LocalBackend},19979:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.S3Backend=void 0;const a=i(53711);const o=i(64305);const d=i(76982);const m=i(2560);class S3Backend{config;workspace;s3;dynamo;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const i={region:e.region||process.env.AWS_REGION||"us-east-1"};if(e.profile==="local"){i.endpoint=e.region&&e.region.startsWith("http")?e.region:"http://localhost:4566";i.region=process.env.AWS_REGION||"us-east-1";i.forcePathStyle=true;i.credentials={accessKeyId:"test",secretAccessKey:"test"}}this.s3=new a.S3Client(i);if(e.dynamodb_table){this.dynamo=new o.DynamoDBClient(i)}this.config.key=this.config.key||m.FILE_STATE;this.originalKey=this.config.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}}async exists(){try{await this.s3.send(new a.HeadObjectCommand({Bucket:this.config.bucket,Key:this.config.key}));return true}catch(e){return false}}async read(){try{const e=new a.GetObjectCommand({Bucket:this.config.bucket,Key:this.config.key});const t=await this.s3.send(e);const i=await(t.Body?.transformToString());if(!i){return this.emptyState()}return JSON.parse(i)}catch(e){if(e instanceof a.NoSuchKey||e.name==="NoSuchKey"||e.Code==="NoSuchKey"){return this.emptyState()}throw e}}async write(e){const t=new a.PutObjectCommand({Bucket:this.config.bucket,Key:this.config.key,Body:JSON.stringify(e,null,2),ContentType:"application/json"});await this.s3.send(t)}async lock(e){if(!this.dynamo||!this.config.dynamodb_table){return true}const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const m=(0,d.randomUUID)();const h={LockID:{S:this.config.bucket+"/"+this.config.key},Info:{S:JSON.stringify({id:m,operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()})}};while(true){try{await this.dynamo.send(new o.PutItemCommand({TableName:this.config.dynamodb_table,Item:h,ConditionExpression:"attribute_not_exists(LockID)"}));return true}catch(e){if(e instanceof o.ConditionalCheckFailedException||e.name==="ConditionalCheckFailedException"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.dynamo||!this.config.dynamodb_table)return true;try{await this.dynamo.send(new o.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return true}catch(e){return false}}async forceUnlock(e){if(!this.dynamo||!this.config.dynamodb_table){return{success:false,error:"DynamoDB locking is not configured for this backend."}}try{const t=await this.dynamo.send(new o.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));if(!t.Item||!t.Item.Info){return{success:false,error:"No lock exists for the given state."}}const i=JSON.parse(t.Item.Info.S);if(i.id!==e){return{success:false,currentLockId:i.id}}await this.dynamo.send(new o.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){if(!this.dynamo||!this.config.dynamodb_table)return false;try{const e=await this.dynamo.send(new o.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return!!e.Item}catch(e){return false}}emptyState(){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}async listWorkspaces(){const e=new Set(["default"]);try{const{ListObjectsV2Command:t}=await Promise.resolve().then(i.t.bind(i,53711,23));const a=new t({Bucket:this.config.bucket,Prefix:"env:/"});const o=await this.s3.send(a);if(o.Contents){for(const t of o.Contents){if(t.Key){const i=t.Key.match(/^env:\/([^\/]+)\//);if(i){e.add(i[1])}}}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const{DeleteObjectCommand:t}=await Promise.resolve().then(i.t.bind(i,53711,23));const a=`env:/${e}/${this.originalKey}`;const o=new t({Bucket:this.config.bucket,Key:a});await this.s3.send(o);return true}catch(e){return false}}}t.S3Backend=S3Backend},54472:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCommandContext=createCommandContext;const a=i(92401);const o=i(84489);const d=i(7066);const m=i(86999);const h=i(1622);const P=i(2560);async function createCommandContext(e={}){const{dir:t=".",verbose:i=false,statePath:_,backupPath:L,lock:j=true,lockTimeout:U="0s",silent:H=false}=e;const V=new m.Logger(i);const K=new o.Config(t);const W=K.getGitHub();if(!W){if(!H){h.notify.push({type:"error",title:"GitHub configuration not found",detail:[P.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return null}const J=new d.State(t,_,L);await J.init();await J.acquireLock(j,U);const X=new a.GitHubAdapter(W);return{state:J,github:X,config:K,logger:V}}},84489:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Config=void 0;const a=i(79896);const o=i(16928);const d=i(2560);const m=i(1622);class Config{dir;config={};constructor(e){this.dir=e;this.required()}resolve(){let e=(0,o.resolve)(this.dir);const t=(0,o.resolve)("/");while(e!==t){const t=(0,o.resolve)(e,d.FILE_CONFIG);if((0,a.existsSync)(t)){return t}const i=(0,o.resolve)(e,"..");if(i===e)break;e=i}const i=(0,o.resolve)(process.cwd(),d.FILE_CONFIG);return(0,a.existsSync)(i)?i:null}load(e){const t=(0,a.readFileSync)(e,"utf-8");this.config=JSON.parse(t);return this.config}getConfig(){return this.config}getGitHub(){const e=this.config.github;if(!e)return undefined;return{owner:e.owner,repository:e.repository,projectId:e.projectId||e.project_id,tokenEnv:e.tokenEnv||e.token_env||"GITHUB_TOKEN"}}getBackend(){return this.config.backend}getIdentity(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;const i=t?.identity;if(e=="testcase")return i??"tc-*";if(e=="testrun")return i??"tr-*";if(e=="testplan")return i??"tp-*"}getConvention(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,"global")?this.config.scope["global"]:undefined;const i=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;if(!t?.convention&&!i?.convention)return undefined;return{...t?.convention||{},...i?.convention||{}}}getReportMapping(e){return this.config.report_mapping?this.config.report_mapping[e]:undefined}getFields(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,"global")?this.config.scope["global"]:undefined;const i=t?.fields??[];const a=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;const o=a?.fields??[];const d=new Map;for(const e of i){if(e.name)d.set(e.name.toLowerCase(),e)}for(const e of o){if(e.name)d.set(e.name.toLowerCase(),e)}return Array.from(d.values())}required(){const e=this.resolve();if(!e){m.notify.push({type:"error",title:"No configuration files",detail:["Plan requires configuration to be present. Planning without a configuration would mark everything for","destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the",`-destroy option. Otherwise, create a ${d.TITLE_APP} configuration file (.json file) and try again.`],close:true})}const t=this.load(e);const i=t.version??"";if(i==null){m.notify.push({type:"error",title:`${d.FILE_CONFIG} is missing the "version" field`,detail:[`Add a "version" field to your ${d.FILE_CONFIG} file and rerun init.`],close:true})}if(i!==d.VERSION_CONFIG){m.notify.push({type:"error",title:`configuration version mismatch`,detail:[`Found version "${this.config.version}", but expected "${d.VERSION_CONFIG}".`,`Update ${d.FILE_CONFIG} to version ${d.VERSION_CONFIG} and rerun init.`],close:true})}}}t.Config=Config},72633:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credentials=void 0;const a=i(79896);const o=i(16928);const d=i(70857);class Credentials{credsPath;constructor(){const e=(0,d.homedir)();const t=(0,o.join)(e,".testform.d");if(!(0,a.existsSync)(t)){(0,a.mkdirSync)(t,{recursive:true})}this.credsPath=(0,o.join)(t,"credentials.json")}load(){if(!(0,a.existsSync)(this.credsPath)){return{credentials:{}}}try{const e=(0,a.readFileSync)(this.credsPath,"utf8");return JSON.parse(e)}catch{return{credentials:{}}}}save(e){(0,a.writeFileSync)(this.credsPath,JSON.stringify(e,null,2),"utf8")}getToken(e="github.com"){const t=this.load();return t.credentials?.[e]?.token}getAuth(e="github.com"){const t=this.load();return t.credentials?.[e]}setToken(e="github.com",t){this.setAuth(e,{token:t})}setAuth(e="github.com",t){const i=this.load();if(!i.credentials)i.credentials={};i.credentials[e]=t;this.save(i)}removeToken(e="github.com"){const t=this.load();if(t.credentials?.[e]){delete t.credentials[e];this.save(t);return true}return false}}t.Credentials=Credentials},51387:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GherkinEditor=void 0;const a=i(79896);class GherkinEditor{static updateScenarioStatus(e,t,i,o){let d=(0,a.readFileSync)(e,"utf-8");const m=d.split("\n");let h=false;let P=false;let _=-1;let L=-1;let j=m.length;const escapeRegex=e=>e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&");const U=escapeRegex(t);const H=escapeRegex(t.split("/").pop()||t);const V=new RegExp(`^\\s*Rule:\\s*(${U}|${H})(\\.feature)?\\s*$`,"i");const K=new RegExp(`^\\s*Scenario:\\s*${escapeRegex(i)}\\s*$`,"i");const W=/^\s*Rule:/i;const J=/^\s*\*\s*link\s+status\s*=\s*(.*)$/i;for(let e=0;e<m.length;e++){const t=m[e];if(!h){if(V.test(t)){h=true;L=e}}else{if(W.test(t)){j=e;break}}}if(!h){throw new Error(`Could not find Rule '${t}' in ${e}`)}let X=false;for(let e=L+1;e<j;e++){const t=m[e];if(!P){if(K.test(t)){P=true;_=e}}else{if(/^\s*(Scenario|Rule):/i.test(t)){break}if(J.test(t)){m[e]=t.replace(/(^\s*\*\s*link\s+status\s*=\s*).*/i,`$1${o}`);X=true;break}}}if(P&&!X){m.splice(_+1,0,` * link status = ${o}`)}else if(!P){let e=j;while(e>L+1&&m[e-1].trim()===""){e--}if(e>L+1&&m[e-1].trim()!==""){m.splice(e,0,"");e++}m.splice(e,0,` Scenario: ${i}`,` * link status = ${o}`)}(0,a.writeFileSync)(e,m.join("\n"),"utf-8")}static expandScenarios(e,t,i="pending"){let a=false;for(const e of t){const t=e.split("::");if(t.length>=2&&t[t.length-1]!=="*"){a=true;break}}if(a){this.removeWildcardScenario(e)}for(const o of t){const t=o.split("::");if(t.length<2)continue;const d=t.pop();const m=t.pop();if(a&&d==="*")continue;this.ensureScenarioExists(e,m,d,i)}}static removeWildcardScenario(e){let t=(0,a.readFileSync)(e,"utf-8");const i=t.split("\n");const o=[];let d=false;for(let e=0;e<i.length;e++){const t=i[e];if(/^\s*Scenario:\s*\*\s*$/i.test(t)){d=true;continue}if(d&&/^\s*(Scenario|Rule|Feature|Background):/i.test(t)){d=false}if(!d){o.push(t)}}while(o.length>0&&o[o.length-1].trim()===""){o.pop()}(0,a.writeFileSync)(e,o.join("\n"),"utf-8")}static ensureScenarioExists(e,t,i,o){let d=(0,a.readFileSync)(e,"utf-8");const m=d.split("\n");let h=false;let P=false;let _=-1;let L=m.length;const escapeRegex=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const j=escapeRegex(t);const U=escapeRegex(t.split("/").pop()||t);const H=new RegExp(`^\\s*Rule:\\s*(${j}|${U})(\\.feature)?\\s*$`,"i");const V=new RegExp(`^\\s*Scenario:\\s*${escapeRegex(i)}\\s*$`,"i");const K=/^\s*Rule:/i;for(let e=0;e<m.length;e++){const t=m[e];if(!h){if(H.test(t)){h=true;_=e}}else{if(K.test(t)){L=e;break}}}if(!h)return;for(let e=_+1;e<L;e++){const t=m[e];if(V.test(t)){return}}let W=L;while(W>_+1&&m[W-1].trim()===""){W--}if(W>_+1&&m[W-1].trim()!==""){m.splice(W,0,"");W++}m.splice(W,0,` Scenario: ${i}`,` * link status = ${o}`);(0,a.writeFileSync)(e,m.join("\n"),"utf-8")}}t.GherkinEditor=GherkinEditor},45392:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;const a=i(39711);const o=i(53772);const d=i(64777);const m=i(70313);class ReaderParser extends a.BaseParser{filter(e){return e}}class Parser{dir;variables;reader;constructor(e,t){this.dir=e;this.variables=t;this.reader=new ReaderParser(e,t)}content(){return this.reader.content()}filter(e,t,i){let a;switch(i){case"testcase":a=new o.TestcaseParser(this.dir,this.variables);break;case"testrun":a=new d.TestrunParser(this.dir,this.variables);break;case"testplan":a=new m.TestplanParser(this.dir,this.variables);break;default:a=new o.TestcaseParser(this.dir,this.variables)}return a.filter(e,t,i)}}t.Parser=Parser},39711:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseParser=t.FIELD_PATTERN=void 0;const a=i(40119);const o=i(28569);const d=i(79896);const m=i(16928);t.FIELD_PATTERN=/^(?:field)\s+([A-Za-z0-9_.\- ]+?)\s*=\s*(.+)$/i;class BaseParser{dir;variables;constructor(e,t){this.dir=e;this.variables=t}find(e){try{const t=(0,d.statSync)(e);if(t.isFile()&&e.endsWith(".feature")){return[e]}if(t.isDirectory()){const t=(0,d.readdirSync)(e,{withFileTypes:true});const i=[];for(const a of t){const t=(0,m.join)(e,a.name);if(a.isDirectory()){i.push(...this.find(t))}else if(a.name.endsWith(".feature")){i.push(t)}}return i}return[]}catch(e){return[]}}format(e){const t=e.feature;const i=e.uri??"(unknown)";const toStep=e=>({keyword:e.keyword,keywordType:e.keywordType,text:e.text});const toBackground=e=>({keyword:e.keyword,name:e.name,steps:(e.steps??[]).map(toStep)});const interpolate=(e,t,i)=>t.reduce(((e,t,a)=>e.split(`<${t}>`).join(i[a])),e);const processChildren=(e,a,o)=>{const d=[];const m=e[0]?.background?toBackground(e[0].background):a;for(const a of e){if(a.background)continue;if(a.scenario){const e=a.scenario;const h=(t?.tags??[]).map((e=>e.name));const P=[...h,...(e.tags??[]).map((e=>e.name))];const _=P.includes("@unique");const L=e.name.includes("<")||(e.steps??[]).some((e=>e.text.includes("<")))||P.some((e=>e.includes("<")));const j={tags:(t?.tags??[]).map((e=>e.name)),keyword:t?.keyword??"",name:t?.name??"",description:t?.description??"",location:t?.location.line??0};if(_&&L&&(e.examples??[]).length>0){for(const t of e.examples){const a=(t.tableHeader?.cells??[]).map((e=>e.value));for(const h of t.tableBody??[]){const t=(h.cells??[]).map((e=>e.value));d.push({uri:i,feature:j,location:e.location.line,keyword:e.keyword,name:interpolate(e.name,a,t),description:e.description,tags:P.map((e=>interpolate(e,a,t))),steps:(e.steps??[]).map((e=>({keyword:e.keyword,keywordType:e.keywordType,text:interpolate(e.text,a,t)}))),...m?{background:JSON.parse(JSON.stringify(m))}:{},...o?{rule:o}:{}})}}}else{d.push({uri:i,feature:j,location:e.location.line,keyword:e.keyword,name:e.name,description:e.description,tags:P,steps:(e.steps??[]).map(toStep),...m?{background:JSON.parse(JSON.stringify(m))}:{},...o?{rule:o}:{}})}}if("rule"in a&&a.rule){const e=a.rule;const o={keyword:e.keyword,name:e.name,description:e.description??""};const h=processChildren(e.children??[],m,o);if(h.length===0){const a=(e.children??[])[0]?.background;const h=a?toBackground(a):m;d.push({uri:i,feature:{keyword:t?.keyword??"",name:t?.name??"",description:t?.description??"",tags:(t?.tags??[]).map((e=>e.name)),location:t?.location?.line??0},location:e.location.line,keyword:e.keyword,name:"*",description:e.description,tags:[...(t?.tags??[]).map((e=>e.name))],steps:[],...h?{background:JSON.parse(JSON.stringify(h))}:{},rule:o})}else{d.push(...h)}}}return d};if(!t)return[];return processChildren(t.children??[])}content(){const e=this.find(this.dir);const t=[];for(const i of e){let e=(0,d.readFileSync)(i,"utf-8");if(this.variables){e=this.variables.applyToTemplate(e)}const h=new a.Parser(new a.AstBuilder(o.IdGenerator.uuid()),new a.GherkinClassicTokenMatcher);const P=h.parse(e);P.uri=(0,m.relative)(this.dir,i);t.push(...this.format(P))}return t}dslFields(e){const t=new Map;const i=new Map;for(const a of e){if(a.type==="keywords"){t.set(a.name.toLowerCase(),a)}if(a.type==="tags"){i.set(a.name.toLowerCase(),a)}}return{keywordFields:t,tagFields:i}}compileIdentityMatcher(e){if(!e)return null;const t=e.trim().replace(/^@/,"");if(t.includes("*")){const e=t.split("*");return{type:"wildcard",prefix:e[0],suffix:e[1]||""}}return{type:"exact",value:t}}matchIdentity(e,t){if(t.type==="wildcard"){for(const i of e){const e=i.replace(/^@/,"");if(e.startsWith(t.prefix)&&e.endsWith(t.suffix)){return{identityValue:i,tagToRemove:i}}}return{}}const i=e.find((e=>e.replace(/^@/,"")===t.value));if(i){return{identityValue:i,tagToRemove:i}}return{}}}t.BaseParser=BaseParser},53772:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestcaseParser=void 0;const a=i(39711);class TestcaseParser extends a.BaseParser{filter(e,t,i){const o=t.identity;const d=t.fields||[];const{keywordFields:m,tagFields:h}=this.dslFields(d);const P=this.compileIdentityMatcher(o);for(const t of e){const e={};if(i){const e=`@${i}`;if(!t.tags)t.tags=[];if(!t.tags.includes(e)){t.tags.push(e)}}const{identityValue:o,tagToRemove:_}=P?this.matchIdentity(t.tags,P):{};t.tags=t.tags.filter((e=>e!=="@unique"));if(_){t.tags=t.tags.filter((e=>e!==_))}if(t.description){const i=t.description.match(/^\s*\*\s*link\s+status\s*=\s*(.*)$/im);if(i){e["status"]=i[1]?.trim()}}if(t.background){t.background.steps=t.background.steps.filter((i=>{const o=i.text.match(/^\s*(?:\*\s*)?link\s+status\s*=\s*(.*)$/i);if(o){e["status"]=o[1]?.trim();return false}const d=i.text.match(a.FIELD_PATTERN);if(!d)return true;const h=d[1]?.trim().toLowerCase();const P=d[2]?.trim();if(!h||P===undefined)return true;const _=m.get(h);if(!_){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:h});return true}e[_.name]=P;return false}));t.steps=[...t.background.steps,...t.steps];t.background.steps=[]}t.steps=t.steps.filter((i=>{const o=i.text.match(/^\s*(?:\*\s*)?link\s+status\s*=\s*(.*)$/i);if(o){e["status"]=o[1]?.trim();return false}const d=i.text.match(a.FIELD_PATTERN);if(!d)return true;const h=d[1]?.trim().toLowerCase();const P=d[2]?.trim();if(!h||P===undefined)return true;const _=m.get(h);if(!_){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:h});return true}e[_.name]=P;return false}));const tagFilter=t=>{for(const i of h.values()){const a=Array.isArray(i.values)?i.values:typeof i.values==="string"?[i.values]:[];if(a.includes(t)){e[i.name]=t;return false}}return true};t.tags=t.tags.filter(tagFilter);if(t.feature&&t.feature.tags){t.feature.tags=t.feature.tags.filter(tagFilter)}for(const i of d){if(e[i.name]===undefined&&i.default!==undefined){const t=Array.isArray(i.default)?i.default[0]:i.default;if(t!==undefined){e[i.name]=t}}if(i.required&&!e[i.name]){(t.custom??={}).policy??=[];t.custom.policy.push({type:"required-field",field:i.name});e[i.name]=""}else if(e[i.name]===undefined){e[i.name]=""}}t.custom={...t.custom??{},identity:o,fields:e}}return e}}t.TestcaseParser=TestcaseParser},70313:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestplanParser=void 0;const a=i(53772);class TestplanParser extends a.TestcaseParser{filter(e,t,i){const a=super.filter(e,t,i);const o={};for(const e of a){(o[e.uri]??=[]).push(e)}return Object.entries(o).map((([e,t])=>{const i=t.some((e=>e.name&&e.name!=="*"));if(i){throw new Error(`Testplan validation failed: Testplans must not contain explicit Scenario blocks. Found in ${e}`)}const a=JSON.parse(JSON.stringify(t[0]));a.custom??={};const o=t.find((e=>e.custom&&e.custom.identity));if(o&&o.custom?.identity){a.custom.identity=o.custom.identity}else{a.custom.identity=e}a.custom.testruns=t.filter((e=>e.rule)).map((e=>e.rule.name));return a}))}}t.TestplanParser=TestplanParser},64777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestrunParser=void 0;const a=i(53772);class TestrunParser extends a.TestcaseParser{filter(e,t,i){const a=super.filter(e,t,i);const o={};for(const e of a){(o[e.uri]??=[]).push(e)}return Object.entries(o).map((([e,t])=>{const i=JSON.parse(JSON.stringify(t[0]));i.custom??={};const a=t.find((e=>e.custom&&e.custom.identity));if(a&&a.custom?.identity){i.custom.identity=a.custom.identity}else{i.custom.identity=e}i.custom.testcases=t.filter((e=>e.rule&&e.name)).map((e=>`${e.rule?.name}::${e.name}`));i.custom.groupScenarios=t;return i}))}}t.TestrunParser=TestrunParser},32721:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerPolicy=t.policy=void 0;const a=i(86999);const o=i(1622);class Policy{builtinPolicies={};userPolicies={};resolve(e){const t=Object.values(this.builtinPolicies);const i=Object.values(this.userPolicies);return[...t,...i].filter((t=>t.scope.includes(e)))}registry(e,t="system"){if(t==="system"){this.builtinPolicies[e.id]=e}if(t==="user"){this.userPolicies[e.id]=e}}scanner(e,t,i=false,d=false){const m=[];const h=this.resolve(t);for(const i of h){try{i.action(e,m,t)}catch(e){const t=e instanceof Error?e.message:"Unknown policy execution error";m.push({id:`policy-runtime-error:${i.id}`,title:`Policy "${i.id}" failed during execution.`,detail:t,uri:"(policy-runtime)"})}}if(i){if(m.length>0){const e={valid:false,error_count:m.length,warning_count:0,diagnostics:m.map((e=>({severity:e.type??"error",summary:e.title,detail:e.detail})))};console.log(JSON.stringify(e,null,2));process.exit(1)}return}if(m.length>0){a.logger.info("Review the violations above and fix them before continuing.",{bold:true});a.logger.info(`${m.length} policy violation${m.length>1?"s":""} found:\n`,{bold:true})}let P=0;for(const e of m){const t=e.type==="warning";if(t)P++;if(t&&d)continue;let i=`on ${e.uri}`;if(e.line!==undefined)i+=` line ${e.line}`;if(e.scenario)i+=`, in scenario "${e.scenario}"`;o.notify.push({type:e.type??"error",title:e.title,detail:[e.detail,i]})}if(P>0&&d){a.logger.warn(`\n${P} warning(s) found. (Details suppressed by -compact-warnings)`)}return m.length>0}}t.policy=new Policy;const registerPolicy=e=>t.policy.registry(e,"user");t.registerPolicy=registerPolicy;t.policy.registry({id:"undeclared-fields",scope:["testcase"],action:(e,t,i)=>{for(const i of e){for(const e of i.custom?.policy?.filter((e=>e.type==="undeclared-field"))??[]){t.push({id:"undeclared-field",type:"warning",title:`Value for undeclared field "${e.field}"`,detail:`Field "${e.field}" is not declared in the configuration. Add a "fields" entry to your config.`,uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"required-fields",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{for(const i of e){for(const e of i.custom?.policy?.filter((e=>e.type==="required-field"))??[]){t.push({id:"required-field-missing",title:`Required field "${e.field}" is missing`,detail:`Add a step: "field ${e.field} = <value>" to the scenario.`,uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"required-gherkin",scope:["testcase"],action:(e,t,i)=>{const a=["scenario","scenario outline"];for(const i of e){if(!i.feature.name||i.feature.name.trim()===""){t.push({id:"feature-name-required",title:"Feature name is required",detail:"Every feature must have a name. Add a descriptive name after 'Feature'.",uri:i.uri,line:i.location})}if(!i.name||i.name.trim()===""){t.push({id:"scenario-name-required",title:"Scenario name is required",detail:"Every scenario must have a name. Add a descriptive name after 'Scenario:' or 'Scenario Outline:'.",uri:i.uri,line:i.location});continue}if(!a.includes(i.keyword.trim().toLowerCase()))continue;const e=[...i.background?.steps??[],...i.steps];const o=[];if(!e.some((e=>e.keyword.trim().toLowerCase()==="given")))o.push("Given");if(!e.some((e=>e.keyword.trim().toLowerCase()==="when")))o.push("When");if(!e.some((e=>e.keyword.trim().toLowerCase()==="then")))o.push("Then");if(o.length>0){t.push({id:"steps-required",title:`Scenario is missing required step types: ${o.join(", ")}.`,detail:"Each scenario must have at least one Given, When, and Then step.",uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"no-feature-tags",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{const a=`@${i}`;const o=new Set;for(const d of e){const e=d.uri??"(unknown)";if(o.has(e))continue;o.add(e);const m=["@testcase","@testrun","@testplan"];const h=[...m];if(d.custom?.identity){h.push(d.custom.identity.toLowerCase())}const P=d.feature?.tags??[];const _=P.filter((e=>!h.includes(e.toLowerCase())));if(_.length>0){t.push({id:"no-feature-tags",title:`Feature-level tags are not allowed in ${e} scope (found: ${_.join(", ")}).`,detail:"Move any tags from Feature: to the individual Scenario level, except for scope tags and identity tags.",uri:e})}const L=P.filter((e=>m.includes(e.toLowerCase())));for(const o of L){if(o.toLowerCase()!==a){t.push({id:"invalid-scope-tag",title:`Mismatched scope: file is tagged as ${o} but is being processed as ${a}.`,detail:`A feature file designed for ${o} cannot be executed in -scope ${i}.`,uri:e})}}}}});t.policy.registry({id:"identity-required",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{for(const a of e??[]){const e=a.custom?.identity;if(!e||e.trim()===""||e===a.uri){t.push({id:"identity-required",title:i==="testcase"?"Every scenario must have an identity tag matching the configured identity pattern.":"Every feature must have an identity tag matching the configured identity pattern.",detail:i==="testcase"?"Add the identity tag (e.g. @tc-1) to each scenario.":"Add the identity tag (e.g. @tr-1) to the Feature level.",uri:a.uri??"(unknown)",scenario:i==="testcase"?a.name:undefined,line:i==="testcase"?a.location:a.feature?.location??a.location});continue}if(i==="testrun"||i==="testplan"){const o=a.feature?.tags??[];const d=o.some((t=>t.toLowerCase()===e.toLowerCase()));if(!d){t.push({id:"identity-feature-level-required",title:`The identity tag ${e} must be declared at the Feature level.`,detail:`Move the identity tag ${e} so it is placed next to the @${i} tag before the 'Feature:' keyword.`,uri:a.uri??"(unknown)",line:a.feature?.location??a.location})}}}}});t.policy.registry({id:"identity-unique",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{const a=new Map;for(const t of e){const e=t.custom?.identity?.trim();if(!e)continue;if(e===t.uri)continue;const o={scenario:t.name,line:t.location,keyword:t.keyword||"",uri:t.uri||""};const d=i==="testcase"?`${t.uri}::${e}`:e;const m=a.get(d);if(m){m.push(o)}else{a.set(d,[o])}}for(const[o,d]of a){if(d.length<=1)continue;const a=o.includes("::")?o.split("::")[1]:o;const m=d.every((e=>(e.keyword||"").trim()==="Scenario Outline"))&&d.every((e=>e.line===d[0].line&&e.uri===d[0].uri));if(m){t.push({id:"unique-key-required",title:`Scenario Outline expanded ${d.length} rows but all share the same identity "${a}".`,detail:"Add a <key> inside the identity tag (e.g. @tc-<key>) so each expanded row has a unique identity.",uri:d[0].uri,scenario:d[0].scenario,line:d[0].line});continue}for(const o of d){let d="";const m=a.match(/^(@[a-zA-Z0-9-]+?)-?(\d+)(.*)$/);if(m){const t=m[1]+(a.includes("-")?"-":"");const h=m[3];let P=0;for(const a of e){if(i==="testcase"&&a.uri!==o.uri)continue;const e=a.custom?.identity?.trim();if(e&&e!==a.uri){const i=e.match(new RegExp(`^${t}(\\d+)${h}$`));if(i){const e=parseInt(i[1],10);if(e>P)P=e}}}if(P>0){d=` The next available identity ${i==="testcase"?"in this file ":""}is ${t}${P+1}${h}.`}}t.push({id:"identity-unique",title:i==="testcase"?`Duplicate identity "${a}" found in the same file.`:`Duplicate identity "${a}" found.`,detail:(i==="testcase"?"Each scenario within a file must have a unique identity tag.":"Each element must have a globally unique identity tag in the workspace.")+d,uri:o.uri,scenario:o.scenario,line:o.line})}}}})},65301:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.askConfirmation=askConfirmation;t.askApproval=askApproval;t.askDestroyApproval=askDestroyApproval;t.askMigrationApproval=askMigrationApproval;t.askStatus=askStatus;const a=i(23785);const o=i(80465);const d=i(2560);async function askConfirmation(e){const t=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((i=>{console.log("");for(const t of e){console.log(t)}console.log(` ${d.MSG_APPROVE_ONLY_YES}`);console.log("");t.question(" Enter a value: ",(e=>{t.close();console.log("");i(e.trim().toLowerCase()==="yes")}))}))}async function askApproval(){return askConfirmation(["Do you want to perform these actions?",` ${d.TITLE_APP} will perform the actions described above.`])}async function askDestroyApproval(e,t){const i=t?` in scope '${t}'`:"";return askConfirmation([(0,o.red)((0,o.bold)(`${d.TITLE_APP} will destroy ${e} resource(s)${i}.`))," This action cannot be undone."])}async function askMigrationApproval(e){const t=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((i=>{console.log("");console.log((0,o.bold)("Do you want to copy existing state to the new backend?"));console.log(" Pre-existing state was found while migrating the previous");console.log(` backend to the newly configured "${e}" backend.`);console.log(" Do you want to copy this state to the new backend?");console.log(' Enter "yes" to copy and "no" to start with an empty state.');console.log("");t.question(" Enter a value: ",(e=>{t.close();console.log("");i(e.trim().toLowerCase()==="yes")}))}))}async function askStatus(){const e=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((t=>{console.log("");console.log((0,o.bold)("Select the new status for this testcase:"));console.log(" Available options: passed, failed, pending, skipped, blocked, etc.");console.log("");e.question(" Enter the new status: ",(i=>{e.close();console.log("");t(i.trim().toLowerCase())}))}))}},7066:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.State=void 0;const a=i(76982);const o=i(2560);const d=i(1622);const m=i(27814);const h=i(19979);const P=i(59491);const _=i(64558);const L=i(84489);const j=i(28742);class State{state;backend;workspaceManager;lockAcquired=false;constructor(e,t,i,a=false,o,d){const U=new L.Config(e);let H=d||U.getBackend();this.workspaceManager=new j.WorkspaceManager(e);const V=this.workspaceManager.getCurrentWorkspace();if(a){H={type:"local",config:{}}}else if(H&&H.type!=="local"&&o){const e=this.parseBackendOverrides(o);H.config={...H.config,...e}}if(H?.type==="s3"){this.backend=new h.S3Backend(H.config,V)}else if(H?.type==="azurerm"){this.backend=new P.AzureRMBackend(H.config,V)}else if(H?.type==="gcs"){this.backend=new _.GCSBackend(H.config,V)}else{this.backend=new m.LocalBackend(e,t,i,V)}}parseBackendOverrides(e){const t={};const i=Array.isArray(e)?e:[e];for(const e of i){const i=e.indexOf("=");if(i>0){const a=e.substring(0,i).trim();const o=e.substring(i+1).trim();t[a]=o}}return t}async hasState(){return await this.backend.exists()}async init(){const e=await this.backend.read();if(!e.version){d.notify.push({type:"error",title:`${o.FILE_STATE} is missing the "version" field`,detail:[`Add a "version" field to your ${o.FILE_STATE} file and rerun init.`],close:true})}else if(e.version!==o.VERSION_STATE){d.notify.push({type:"error",title:`state version mismatch`,detail:[`Found version "${e.version}", but expected "${o.VERSION_STATE}".`,`Update ${o.FILE_STATE} to version ${o.VERSION_STATE} and rerun init.`],close:true})}this.state={version:e.version||o.VERSION_STATE,serial:e.serial??0,lineage:e.lineage??(0,a.randomUUID)(),lastSync:e.lastSync??"",resources:e.resources??[]}}async acquireLock(e,t){if(!e)return;const i=await this.backend.lock(t);if(!i){console.error(`\nError: Acquiring the state lock.\n\nTestform acquires a state lock to protect the state from being written\nby multiple users at the same time. Please resolve the issue above and try\nagain. For most commands, you can disable locking with the "-lock=false"\nflag, but this is not recommended.\n`);process.exit(1)}this.lockAcquired=true;const cleanup=async()=>{await this.releaseLock();process.exit(1)};process.on("SIGINT",cleanup);process.on("SIGTERM",cleanup)}async releaseLock(){if(this.lockAcquired){await this.backend.unlock();this.lockAcquired=false}}async forceUnlock(e){return this.backend.forceUnlock(e)}async save(){this.state.serial+=1;this.state.lastSync=(new Date).toISOString();await this.backend.write(this.state)}getState(){return this.state}replaceState(e){this.state=JSON.parse(JSON.stringify(e))}getResources(e){if(!this.state.resources)return[];if(!e)return this.state.resources;return this.state.resources.filter((t=>t.type===e))}getCurrentWorkspace(){return this.workspaceManager.getCurrentWorkspace()}setCurrentWorkspace(e){this.workspaceManager.setCurrentWorkspace(e)}async listWorkspaces(){return this.backend.listWorkspaces()}async deleteWorkspace(e){return this.backend.deleteWorkspace(e)}findResource(e){return this.state.resources.find((t=>t.identity===e))}upsertResource(e){const t=this.state.resources.findIndex((t=>t.identity===e.identity));if(t>=0){this.state.resources[t]=e}else{this.state.resources.push(e)}}removeResource(e){this.state.resources=this.state.resources.filter((t=>t.identity!==e))}clearResources(){this.state.resources=[]}}t.State=State},62978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatHclValue=void 0;t.elapsedSeconds=elapsedSeconds;t.formatIdentityDisplay=formatIdentityDisplay;t.formatResourceAddress=formatResourceAddress;function elapsedSeconds(e){return((Date.now()-e)/1e3).toFixed(0)}function formatIdentityDisplay(e){const t=e.split("::");if(t.length>0){let e=t[0];const i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));if(i!==-1){e=e.substring(i+1)}const a=e.lastIndexOf(".");if(a!==-1){e=e.substring(0,a)}t[0]=e;return t.join("::")}return e}function formatResourceAddress(e,t){return`${e}.${formatIdentityDisplay(t)}`}const formatHclValue=(e,i)=>{const a=" ".repeat(i);if(e===null||e===undefined)return"null";if(typeof e==="string"){if(e.includes("\n")){const t=e.split("\n").map((e=>e?`${a} ${e}`:`${a} `)).join("\n");return`<<-EOT\n${t}\n${a}EOT`}return JSON.stringify(e)}if(Array.isArray(e)){if(e.length===0)return"[]";const o=e.map((e=>(0,t.formatHclValue)(e,i+1)));return`[\n${a} ${o.join(`,\n${a} `)},\n${a}]`}if(typeof e==="object"){const o=Object.keys(e);if(o.length===0)return"{}";let d=0;for(const e of o){const t=JSON.stringify(e);if(t.length>d)d=t.length}let m=`{\n`;for(const h of o){const o=JSON.stringify(h);const P=" ".repeat(d-o.length);const _=Object.prototype.hasOwnProperty.call(e,h)?e[h]:undefined;m+=`${a} ${o}${P} = ${(0,t.formatHclValue)(_,i+1)}\n`}m+=`${a}}`;return m}return JSON.stringify(e)};t.formatHclValue=formatHclValue},29922:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VariableParser=void 0;const a=i(79896);const o=i(1622);class VariableParser{vars={};workDir;constructor(e,t,i="."){this.workDir=i;this.parseVarFiles(t);this.parseVars(e)}parseVars(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(const e of t){const t=e.indexOf("=");if(t===-1){o.notify.push({type:"warning",title:`Invalid variable format: ${e}`,detail:["Variables must be in the format key=value"]});continue}const i=e.substring(0,t).trim();const a=e.substring(t+1).trim();this.vars[i]=a}}parseVarFiles(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(let e of t){const t=i(16928);e=t.resolve(this.workDir,e);if(!(0,a.existsSync)(e)){o.notify.push({type:"error",title:`Variable file not found: ${e}`,detail:[],close:true});process.exit(1)}try{const t=(0,a.readFileSync)(e,"utf-8");let i={};if(e.endsWith(".json")){i=JSON.parse(t)}else{const e=t.split("\n");for(const t of e){const e=t.trim();if(!e||e.startsWith("#")||e.startsWith("//"))continue;const a=e.indexOf("=");if(a!==-1){const t=e.substring(0,a).trim();let o=e.substring(a+1).trim();if(o.startsWith('"')&&o.endsWith('"')){o=o.substring(1,o.length-1)}else if(o.startsWith("'")&&o.endsWith("'")){o=o.substring(1,o.length-1)}i[t]=o}}}this.vars={...this.vars,...i}}catch(t){o.notify.push({type:"error",title:`Failed to parse variable file: ${e}`,detail:[t.message],close:true});process.exit(1)}}}getVars(){return this.vars}applyToTemplate(e){let t=e;const i=/\$\{var\.([a-zA-Z0-9_-]+)\}/g;t=t.replace(i,((e,t)=>this.vars[t]!==undefined?this.vars[t]:e));return t}}t.VariableParser=VariableParser},28742:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const a=i(16928);const o=i(79896);class WorkspaceManager{envPath;statePath;constructor(e){const t=(0,a.join)(e,".testform");if(!(0,o.existsSync)(t)){(0,o.mkdirSync)(t,{recursive:true})}this.envPath=(0,a.join)(t,"environment");this.statePath=(0,a.join)(t,"testform.state")}getCurrentWorkspace(){if((0,o.existsSync)(this.envPath)&&(0,o.statSync)(this.envPath).isFile()){const e=(0,o.readFileSync)(this.envPath,"utf8").trim();if(e.length>0){return e}}return"default"}setCurrentWorkspace(e){(0,o.writeFileSync)(this.envPath,e,"utf8")}getActiveBackend(){if((0,o.existsSync)(this.statePath)&&(0,o.statSync)(this.statePath).isFile()){try{const e=(0,o.readFileSync)(this.statePath,"utf8");const t=JSON.parse(e);return t.backend||null}catch{return null}}return null}setActiveBackend(e){let t={version:3};if((0,o.existsSync)(this.statePath)&&(0,o.statSync)(this.statePath).isFile()){try{t=JSON.parse((0,o.readFileSync)(this.statePath,"utf8"))}catch{}}t.backend=e;(0,o.writeFileSync)(this.statePath,JSON.stringify(t,null,2),"utf8")}}t.WorkspaceManager=WorkspaceManager},41244:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HELP_DEBUG=t.HELP_GENERATE=t.HELP_REPORT=t.HELP_DIFF=t.HELP_WORKSPACE=t.HELP_VERSION=t.HELP_UNTAINT=t.HELP_TAINT=t.HELP_STATE_SHOW=t.HELP_STATE_RM=t.HELP_STATE_PUSH=t.HELP_STATE_PULL=t.HELP_STATE_MV=t.HELP_STATE_LIST=t.HELP_STATE_IDENTITIES=t.HELP_STATE=t.HELP_LOGOUT=t.HELP_LOGIN=t.HELP_GRAPH=t.HELP_FORCE_UNLOCK=t.HELP_FMT=t.HELP_SHOW=t.HELP_REFRESH=t.HELP_IMPORT=t.HELP_DESTROY=t.HELP_APPLY=t.HELP_VALIDATE=t.HELP_PLAN=t.HELP_INIT=t.HELP_GLOBAL=void 0;t.getCommandHelp=getCommandHelp;const a=i(2560);const o=i(80465);t.HELP_GLOBAL=`\n${(0,o.bold)("Usage:")} ${a.TITLE_CLI} [global options] [subcommand] [args]\n\nThe available commands for execution are listed below.\nThe primary workflow commands are given first, followed by\nless common or more advanced commands.\n\n${(0,o.bold)("Main commands:")}\n init Prepare working directory for other commands\n validate Check whether the configuration is valid\n plan Show changes required by current configuration\n apply Create or update resources \n destroy Destroy previously-created resources \n\n${(0,o.bold)("All other commands:")}\n diff Show drift between local configuration and state\n debug Parse a feature file and print the JSON AST\n fmt Reformat your configuration in the standard style\n force-unlock Release a stuck lock on the current workspace\n generate Generate new feature files based on your scope and convention\n graph Generate a Graphviz graph of the steps in an operation\n import Associate existing infrastructure with a ${a.TITLE_APP} resource\n login Obtain and save credentials for a remote host\n logout Remove locally-stored credentials for a remote host\n refresh Update the state to match remote systems\n report Generate multi-dimensional test execution reports\n show Show the current state or a saved plan\n state Advanced state management\n taint Mark a resource instance as not fully functional\n untaint Remove the 'tainted' state from a resource instance\n version Show the current ${a.TITLE_APP} version\n workspace Workspace management\n\n${(0,o.bold)("Global options (use these before the subcommand, if any):")}\n -chdir=DIR Switch to a different working directory before executing the given subcommand.\n -projectId Override the default project ID defined in your testform.json.\n -scope Limit the scope of the execution (testcase, testrun, testplan).\n -help Show this help output, or the help for a specified subcommand.\n -version An alias for the "version" subcommand.\n`;t.HELP_INIT=`\nUsage: ${a.TITLE_CLI} [global options] init [options]\n\n Initialize a new or existing ${a.TITLE_APP} working directory by creating\n initial files and loading any remote state.\n\n This is the first command that should be run for any new or existing\n ${a.TITLE_APP} configuration per machine. This sets up all the local data\n necessary to run ${a.TITLE_APP}.\n\n This command is always safe to run multiple times.\n\nOptions:\n\n -backend=false Disable backend initialization for this configuration\n and use what was previously initialized instead.\n\n -backend-config=path Configuration to be merged with what is in the\n configuration file's 'backend' block. This can be\n a 'key=value' format, and can be specified multiple\n times.\n\n -lock=false Don't hold a state lock during backend migration.\n This is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -json If specified, machine readable output will be\n printed in JSON format.\n\n -reconfigure Reconfigure a backend, ignoring any saved\n configuration.\n\n -migrate-state Reconfigure a backend, and attempt to migrate any\n existing state.\n`.trim();t.HELP_PLAN=`\nUsage: ${a.TITLE_CLI} [global options] plan [options]\n\n Generates a speculative execution plan, showing what actions ${a.TITLE_APP}\n would take to apply the current configuration. This command will not\n actually perform the planned actions.\n\n You can optionally save the plan to a file, which you can then pass to\n the "apply" command to perform exactly the actions described in the plan.\n\nPlan Customization Options:\n\n The following options customize how ${a.TITLE_APP} will produce its plan. You\n can also use these options when you run "${a.TITLE_CLI} apply" without passing\n it a saved plan, in order to plan and apply in a single command.\n\n -destroy Select the "destroy" planning mode, which creates a plan\n to destroy all objects currently managed by this\n ${a.TITLE_APP} configuration instead of the usual behavior.\n\n -refresh-only Select the "refresh only" planning mode, which checks\n whether remote objects still match the outcome of the\n most recent ${a.TITLE_APP} apply but does not propose any\n actions to undo any changes made outside of ${a.TITLE_APP}.\n\n -refresh=false Skip checking for external changes to remote objects\n while creating the plan. This can potentially make\n planning faster, but at the expense of possibly planning\n against a stale record of the remote system state.\n\n -replace=resource Force replacement of a particular resource instance using\n its resource address. If the plan would've normally\n produced an update or no-op action for this instance,\n ${a.TITLE_APP} will plan to replace it instead. You can use\n this option multiple times to replace more than one object.\n\n -target=resource Limit the planning operation to only the given module,\n resource, or resource instance and all of its\n dependencies. You can use this option multiple times to\n include more than one object. This is for exceptional\n use only.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file (.json or key=value format).\n Use this option more than once to include more than one\n variables file.\n\nOther Options:\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, shows them in a more compact\n form that includes only the summary messages.\n\n -detailed-exitcode Return detailed exit codes when the command exits.\n This will change the meaning of exit codes to:\n 0 - Succeeded, diff is empty (no changes)\n 1 - Errored\n 2 - Succeeded, there is a diff\n\n -lock=false Don't hold a state lock during the operation. This\n is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -out=path Write a plan file to the given path. This can be\n used as input to the "apply" command.\n\n -parallelism=n Limit the number of concurrent operations. Defaults\n to 10.\n\n -state=statefile A legacy option used for the local backend only.\n See the local backend's documentation for more\n information.\n \n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n`.trim();t.HELP_VALIDATE=`\nUsage: ${a.TITLE_CLI} [global options] validate [options]\n\n Validate the configuration files in a directory, referring only to the\n configuration and not accessing any remote services.\n\n Validate runs checks that verify whether a configuration is syntactically\n valid and internally consistent.\n\nOptions:\n\n -json Produce output in a machine-readable JSON format.\n Always disables color.\n\n -no-color If specified, output won't contain any color.\n\n -no-tests If specified, ${a.TITLE_APP} will only parse the files and\n skip policy validations.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory, defaults to "tests".\n \n -query=string Filter the parsed documents to locate specific test \n scenarios across the active scope.\n`.trim();t.HELP_APPLY=`\nUsage: ${a.TITLE_CLI} [global options] apply [options] [PLAN]\n\n Creates or updates infrastructure according to ${a.TITLE_APP} configuration\n files in the current directory.\n\n By default, ${a.TITLE_APP} will generate a new plan and present it for your\n approval before taking any action. You can optionally provide a plan\n file created by a previous call to "${a.TITLE_CLI} plan", in which case\n ${a.TITLE_APP} will take the actions described in that plan without any\n confirmation prompt.\n\nOptions:\n\n -auto-approve Skip interactive approval of plan before applying.\n\n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension. Set to "-" to disable backup.\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact\n form that includes only the summary messages.\n\n -destroy Destroy ${a.TITLE_APP}-managed infrastructure.\n The command "${a.TITLE_CLI} destroy" is a convenience alias\n for this option.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -input=true Ask for input for variables if not directly set.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of parallel resource operations.\n Defaults to 10.\n\n -replace=resource ${a.TITLE_APP} will plan to replace this resource instance\n instead of doing an update or no-op action. \n\n -set-status=assigns Injects or updates the status field in your local\n testrun features before applying.\n (e.g., "tc1=passed,tc2=failed").\n Supported statuses: passed, failed, pending,\n blocked, skipped, unexecuted.\n\n -state=path Path to read and save state. Defaults to "testform.tfstate".\n Legacy option for the local backend only. See the local\n backend's documentation for more information.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file (.json or key=value format).\n Use this option more than once to include more than one\n variables file.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n\n If you don't provide a saved plan file then this command will also accept\n all of the plan-customization options accepted by the ${a.TITLE_CLI} plan command.\n For more information on those options, run:\n ${a.TITLE_CLI} plan -help\n`.trim();t.HELP_DESTROY=`\nUsage: ${a.TITLE_CLI} [global options] destroy [options]\n\n Destroy ${a.TITLE_APP}-managed infrastructure.\n\n This command is a convenience alias for:\n ${a.TITLE_CLI} apply -destroy\n\n This command also accepts many of the plan-customization options accepted by\n the ${a.TITLE_CLI} plan command. For more information on those options, run:\n ${a.TITLE_CLI} plan -help\n`.trim();t.HELP_IMPORT=`\nUsage: ${a.TITLE_CLI} [global options] import [options] ADDR ISSUE_NUMBER\n\n Import an existing GitHub Issue into your ${a.TITLE_APP} state.\n\n This command connects to GitHub, fetches the specified ISSUE_NUMBER, and\n imports it into your local ${a.TITLE_APP} state under the given ADDR (Identity).\n This allows existing GitHub Issues to come under ${a.TITLE_APP} management\n without having to be initially created via a 'testform apply'.\n\n ADDR: The identity of the scenario (e.g., 'test1').\n ISSUE_NUMBER: The numeric ID of the GitHub Issue to import (e.g., '123').\n\n This command will make network requests to GitHub but will not modify\n the remote issue.\n\nOptions:\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_REFRESH=`\nUsage: ${a.TITLE_CLI} [global options] refresh [options]\n\n Update the local state file by checking the real-world status of all tracked\n GitHub Issues and updating their metadata (e.g., titles, descriptions).\n\n This command will not modify your GitHub Issues, but it will modify your\n local state file to reflect any changes made on GitHub. These state changes\n might cause new actions to occur when you generate a plan or call apply next.\n\nOptions:\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact form\n that includes only the summary messages.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of concurrent operations. Defaults to 10.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_SHOW=`\nUsage: ${a.TITLE_CLI} [global options] show [options] [path]\n\n Reads and outputs a ${a.TITLE_APP} state or plan file in a human-readable\n form. If no path is specified, the current state will be shown.\n\nOptions:\n\n -no-color If specified, output won't contain any color.\n -json If specified, output the ${a.TITLE_APP} plan or state in\n a machine-readable form.\n`.trim();t.HELP_FMT=`\nUsage: ${a.TITLE_CLI} [global options] fmt [options] [target...]\n\n Rewrites all ${a.TITLE_APP} scenario files to a canonical format. All\n testing files (.feature) are updated using standard Gherkin syntax\n indentation.\n\n By default, fmt scans the current directory for .feature files. If you\n provide a directory for the target argument, then fmt will scan that\n directory instead.\n\n The content must be in the Gherkin language native syntax.\n\nOptions:\n\n -list=false Don't list files whose formatting differs\n\n -write=false Don't write to source files\n\n -check Check if the input is formatted. Exit status will be 3 if\n any input is not properly formatted and zero otherwise.\n\n -no-color If specified, output won't contain any color.\n\n -recursive Also process files in subdirectories. By default, only the\n given directory (or current directory) is processed.\n`.trim();t.HELP_FORCE_UNLOCK=`\nUsage: ${a.TITLE_CLI} [global options] force-unlock LOCK_ID\n\n Manually unlock the state for the defined configuration.\n\n This will not modify your infrastructure. This command removes the lock on the\n state for the current workspace. The behavior of this lock is dependent\n on the backend being used. Local state files cannot be unlocked by another\n process.\n\nOptions:\n\n -force Don't ask for input for unlock confirmation.\n`.trim();t.HELP_GRAPH=`\nUsage: ${a.TITLE_CLI} [global options] graph [options]\n\n Produces an ASCII tree representation of the dependency graph between\n different objects in the current test configuration and state.\n\n By default the graph shows the relationships between the hierarchical\n components in your configuration: Test Plans -> Test Runs -> Test Cases.\n\nOptions:\n\n -draw-cycles Highlight the dependency links in the graph with colored\n edges to explicitly visualize the dependency between\n Plans, Runs, and Cases.\n\n -type=TYPE (deprecated) In prior versions of Testform, specified the\n type of operation graph to output.\n\n -module-depth=n (deprecated) In prior versions of Testform, specified the\n depth of modules to show in the output.\n`.trim();t.HELP_LOGIN=`\nUsage: ${a.TITLE_CLI} [global options] login [hostname]\n\n Retrieves an authentication token for the given hostname, if it supports\n automatic login, and saves it in a credentials file in your home directory.\n\n If no hostname is provided, the default hostname is github.com, to\n log in to GitHub.\n\n If not overridden by credentials helper settings in the CLI configuration,\n the credentials will be written to the following local file:\n ~/.testform.d/credentials.json\n`.trim();t.HELP_LOGOUT=`\nUsage: ${a.TITLE_CLI} [global options] logout [hostname]\n\n Removes locally-stored credentials for specified hostname.\n\n Note: the API token is only removed from local storage, not destroyed on the\n remote server, so it will remain valid until manually revoked.\n\n If no hostname is provided, the default hostname is github.com.\n`.trim();t.HELP_STATE=`\nUsage: ${a.TITLE_CLI} [global options] state [subcommand] [options] [args]\n\n This command has subcommands for advanced state management.\n\n These subcommands can be used to slice and dice the ${a.TITLE_APP} state.\n This is sometimes necessary in advanced cases. For your safety, all\n state management commands that modify the state create a timestamped\n backup of the state prior to making modifications.\n\nSubcommands:\n identities List the identities of resources in the state\n list List resources in the state\n mv Move an item in the state\n pull Pull current state and output to stdout\n push Update remote state from a local state file\n rm Remove instances from the state\n show Show a resource in the state\n`.trim();t.HELP_STATE_IDENTITIES=`\nUsage: ${a.TITLE_CLI} [global options] state identities [options] -json [address...]\n\n List the json format of the identities of resources in the ${a.TITLE_APP} state.\n\n This command lists the identities of resource instances in the ${a.TITLE_APP} state in json format.\n The address argument can be used to filter the instances by resource or module. If\n no pattern is given, identities for all resource instances are listed.\n\n The addresses must either be module addresses or absolute resource\n addresses, such as:\n github_testcase.example\n module.example\n module.example.module.child\n module.example.github_testcase.example\n\n An error will be returned if any of the resources or modules given as\n filter addresses do not exist in the state.\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default, ${a.TITLE_APP}\n will consult the state of the currently-selected\n workspace.\n\n -id=ID Filters the results to include only instances whose\n resource types have an attribute named "id" whose value\n equals the given id string.\n`.trim();t.HELP_STATE_LIST=`\nUsage: ${a.TITLE_CLI} [global options] state list [options] [address...]\n\n List resources in the ${a.TITLE_APP} state.\n\n This command lists resource instances in the ${a.TITLE_APP} state. The address\n argument can be used to filter the instances by resource or module. If\n no pattern is given, all resource instances are listed.\n\n The addresses must either be module addresses or absolute resource\n addresses, such as:\n github_testcase.example\n module.example\n module.example.module.child\n module.example.github_testcase.example\n\n An error will be returned if any of the resources or modules given as\n filter addresses do not exist in the state.\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default, ${a.TITLE_APP}\n will consult the state of the currently-selected\n workspace.\n\n -id=ID Filters the results to include only instances whose\n resource types have an attribute named "id" whose value\n equals the given id string.\n`.trim();t.HELP_STATE_MV=`\nUsage: ${a.TITLE_CLI} [global options] state mv [options] SOURCE DESTINATION\n\n This command will move an item matched by the address given to the\n destination address. This command can also move to a destination address\n in a completely different state file.\n\n This can be used for simple resource renaming, moving items to and from\n a module, moving entire modules, and more. And because this command can also\n move data to a completely new state, it can also be used for refactoring\n one configuration into multiple separately managed ${a.TITLE_APP} configurations.\n\n This command will output a backup copy of the state prior to saving any\n changes. The backup cannot be disabled. Due to the destructive nature\n of this command, backups are required.\n\n If you're moving an item to a different state file, a backup will be created\n for each state file.\n\nOptions:\n\n -dry-run If set, prints out what would've been moved but doesn't\n actually move anything.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -ignore-remote-version A rare option used for the remote backend only. See\n the remote backend documentation for more information.\n\n -state, state-out, and -backup are legacy options supported for the local\n backend only. For more information, see the local backend's documentation.\n`.trim();t.HELP_STATE_PULL=`\nUsage: ${a.TITLE_CLI} [global options] state pull [options]\n\n Pull the state from its location, upgrade the local copy, and output it\n to stdout.\n\n This command "pulls" the current state and outputs it to stdout.\n As part of this process, ${a.TITLE_APP} will upgrade the state format of the\n local copy to the current version.\n\n The primary use of this is for state stored remotely. This command\n will still work with local state but is less useful for this.\n`.trim();t.HELP_STATE_PUSH=`\nUsage: ${a.TITLE_CLI} [global options] state push [options] PATH\n\n Update remote state from a local state file at PATH.\n\n This command "pushes" a local state and overwrites remote state\n with a local state file. The command will protect you against writing\n an older serial or a different state file lineage unless you specify the\n "-force" flag.\n\n This command works with local state (it will overwrite the local\n state), but is less useful for this use case.\n\n If PATH is "-", then this command will read the state to push from stdin.\n Data from stdin is not streamed to the backend: it is loaded completely\n (until pipe close), verified, and then pushed.\n\nOptions:\n\n -force Write the state even if lineages don't match or the\n remote serial is higher.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n`.trim();t.HELP_STATE_RM=`\nUsage: ${a.TITLE_CLI} [global options] state rm [options] ADDRESS...\n\n Remove one or more items from the ${a.TITLE_APP} state, causing ${a.TITLE_APP} to\n "forget" those items without first destroying them in the remote system.\n\n This command removes one or more resource instances from the ${a.TITLE_APP} state\n based on the addresses given. You can view and list the available instances\n with "${a.TITLE_CLI} state list".\n\n If you give the address of an entire module then all of the instances in\n that module and any of its child modules will be removed from the state.\n\n If you give the address of a resource that has "count" or "for_each" set,\n all of the instances of that resource will be removed from the state.\n\nOptions:\n\n -dry-run If set, prints out what would've been removed but\n doesn't actually remove anything.\n\n -backup=PATH Path where ${a.TITLE_APP} should write the backup\n state.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state=PATH Path to the state file to update. Defaults to the\n current workspace state.\n Legacy option for the local backend only. See\n the local backend's documentation for more\n information.\n\n -ignore-remote-version Continue even if remote and local ${a.TITLE_APP} versions\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n`.trim();t.HELP_STATE_SHOW=`\nUsage: ${a.TITLE_CLI} [global options] state show [options] ADDRESS\n\n Shows the attributes of a resource in the ${a.TITLE_APP} state.\n\n This command shows the attributes of a single resource in the ${a.TITLE_APP}\n state. The address argument must be used to specify a single resource.\n You can view the list of available resources with "${a.TITLE_CLI} state list".\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default it will\n use the state "${a.FILE_STATE}" if it exists.\n`.trim();t.HELP_TAINT=`\nUsage: ${a.TITLE_CLI} [global options] taint [options] [address]\n\n ${a.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n this command.\n\n This will not modify your infrastructure directly, but subsequent\n ${a.TITLE_APP} plans will include actions to destroy the remote object\n and create a new object to replace it.\n\n You can remove the "taint" state from a resource instance using\n the "${a.TITLE_CLI} untaint" command.\n\n The address is in the usual resource address syntax, such as:\n aws_instance.foo\n aws_instance.bar[1]\n module.foo.module.bar.aws_instance.baz\n\n Use your shell's quoting or escaping syntax to ensure that the\n address will reach ${a.TITLE_APP} correctly, without any special\n interpretation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_UNTAINT=`\nUsage: ${a.TITLE_CLI} [global options] untaint [options] name\n\n ${a.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n the "${a.TITLE_CLI} taint" command.\n\n This command removes that state from a resource instance, causing\n ${a.TITLE_APP} to see it as fully-functional and not in need of\n replacement.\n\n This will not modify your infrastructure directly. It only avoids\n ${a.TITLE_APP} planning to replace a tainted instance in a future operation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_VERSION=`\nUsage: ${a.TITLE_CLI} version [options]\n\n Displays the version of ${a.TITLE_APP}.\n`.trim();t.HELP_WORKSPACE=`\nUsage: ${a.TITLE_CLI} [global options] workspace\n\n new, list, show, select and delete ${a.TITLE_APP} workspaces.\n\nSubcommands:\n delete Delete a workspace\n list List Workspaces\n new Create a new workspace\n select Select a workspace\n show Show the name of the current workspace\n`.trim();t.HELP_DIFF=`\nUsage: ${a.TITLE_CLI} [global options] diff [options]\n\n Show drift between local configuration and state.\n`.trim();t.HELP_REPORT=`\nUsage: ${a.TITLE_CLI} [global options] report <type> [options]\n\n Generates multi-dimensional test reports from the local state.\n Available report types are grouped by scope:\n\n 📦 Scope: Test Case\n testcase-summary List of all test cases and their status\n test-case-activity Dashboard of test cases with graphs and trends\n\n 🏃 Scope: Test Run\n testrun-summary Test runs and their pass/fail metrics\n testrun-detailed In-depth view of a specific Test Run\n\n 📋 Scope: Test Plan\n testplan-summary Overall Test Plan Progress and linked test runs\n\n 🌐 Cross-Scope (Multi-dimensional)\n defects List of failed/blocked tests with issue links\n traceability Mapping between requirements/tags and test runs\n coverage Percentage of passed tests grouped by tags\n two-dimensional Status distribution matrix\n raw Extract all data for custom reporting\n\nOptions:\n\n -format <md|csv|json> Output format. Default is "md" (Markdown).\n -out <path> Path to save the generated report.\n -filter <key=val> Filter data by any state attribute. Can be\n specified multiple times.\n -groupBy <field> Group results dynamically by a specific field\n using JSONPath (e.g. attributes.custom_fields.sprint).\n -apply Create a GitHub Issue for the report.\n -field <key=val> Custom field values to attach when -apply is used.\n Also accepts a JSON string (e.g. '{"key": "val"}').\n Can be specified multiple times.\n`.trim();t.HELP_GENERATE=`\nUsage: ${a.TITLE_CLI} [global options] generate <scope> [title] [options]\n\n Generate new feature files based on your scope and convention.\n\n This command simplifies creating new testcase, testrun, or testplan files.\n It automatically resolves the appropriate directory and applies the naming\n convention defined in your ${a.TITLE_APP} configuration.\n\n <scope> can be one of: testcase, testrun, testplan.\n [title] is an optional title for the feature. If not provided, a default\n will be generated.\n\nOptions:\n\n -rule <rule> Include a business rule block (Rule: <rule>) in the generated\n feature file. The command verifies that a feature file for\n this rule exists in the workspace.\n Can be specified multiple times.\n`.trim();t.HELP_DEBUG=`\nUsage: ${a.TITLE_CLI} [global options] debug <file> [options]\n\n Parse a specific feature file and print its JSON Abstract Syntax Tree (AST).\n This command is designed for developers to debug Gherkin feature parsing and Testform's\n filtering behavior.\n\n <file> The filename or partial filename to parse and output.\n\nOptions:\n\n -format <format> Choose between 'gherkin' (raw Gherkin AST) or 'testform' \n (filtered and enriched by Testform). Default is 'testform'.\n`.trim();function getCommandHelp(e){switch(e){case"init":return t.HELP_INIT;case"validate":return t.HELP_VALIDATE;case"plan":return t.HELP_PLAN;case"apply":return t.HELP_APPLY;case"destroy":return t.HELP_DESTROY;case"import":return t.HELP_IMPORT;case"refresh":return t.HELP_REFRESH;case"diff":return t.HELP_DIFF;case"show":return t.HELP_SHOW;case"fmt":return t.HELP_FMT;case"force-unlock":return t.HELP_FORCE_UNLOCK;case"login":return t.HELP_LOGIN;case"workspace":return t.HELP_WORKSPACE;case"report":return t.HELP_REPORT;case"generate":return t.HELP_GENERATE;case"debug":return t.HELP_DEBUG;case"logout":return t.HELP_LOGOUT;case"state":return t.HELP_STATE;case"state identities":return t.HELP_STATE_IDENTITIES;case"state list":return t.HELP_STATE_LIST;case"state mv":return t.HELP_STATE_MV;case"state pull":return t.HELP_STATE_PULL;case"state push":return t.HELP_STATE_PUSH;case"state rm":return t.HELP_STATE_RM;case"state show":return t.HELP_STATE_SHOW;case"taint":return t.HELP_TAINT;case"untaint":return t.HELP_UNTAINT;case"version":return t.HELP_VERSION;default:return null}}},79407:function(module,exports,__nccwpck_require__){"use strict";module=__nccwpck_require__.nmd(module);var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.main=void 0;const arg_1=__importDefault(__nccwpck_require__(840));const chalk_1=__nccwpck_require__(80465);const node_process_1=__nccwpck_require__(1708);const path_1=__nccwpck_require__(16928);const init_1=__nccwpck_require__(70722);const plan_1=__nccwpck_require__(74483);const validate_1=__nccwpck_require__(30010);const apply_1=__nccwpck_require__(8314);const destroy_1=__nccwpck_require__(29540);const show_1=__nccwpck_require__(45765);const refresh_1=__nccwpck_require__(31821);const diff_1=__nccwpck_require__(65083);const import_1=__nccwpck_require__(52541);const force_unlock_1=__nccwpck_require__(23634);const state_1=__nccwpck_require__(61047);const taint_1=__nccwpck_require__(1510);const graph_1=__nccwpck_require__(79478);const fmt_1=__nccwpck_require__(52353);const login_1=__nccwpck_require__(17155);const logout_1=__nccwpck_require__(13834);const workspace_1=__nccwpck_require__(62743);const report_1=__nccwpck_require__(8938);const generate_1=__nccwpck_require__(7651);const debug_1=__nccwpck_require__(66321);const variables_1=__nccwpck_require__(29922);const notify_1=__nccwpck_require__(1622);const chalk_2=__importDefault(__nccwpck_require__(80465));const logger_1=__nccwpck_require__(86999);const const_1=__nccwpck_require__(2560);const help_1=__nccwpck_require__(41244);function compareVersions(e,t){const i=e.split(".").map((e=>Number(e)));const a=t.split(".").map((e=>Number(e)));const o=Math.max(i.length,a.length);for(let e=0;e<o;e++){const t=i.at(e)??0;const o=a.at(e)??0;if(t>o)return 1;if(t<o)return-1}return 0}function printVersion(e=false){const t=process.env.TESTSTATE_LATEST_VERSION;const i=`${node_process_1.platform}_${node_process_1.arch}`;console.log((0,chalk_1.cyan)(`${const_1.TITLE_APP} v${const_1.VERSION_CLI}`));console.log(`on ${i}`);if(e){console.log(`+ Config Version: ${const_1.VERSION_CONFIG} (${const_1.FILE_CONFIG})`);console.log(`+ State Version: ${const_1.VERSION_STATE} (${const_1.FILE_STATE})`)}if(t&&compareVersions(const_1.VERSION_CLI,t)<0){console.log("");console.log(`Your version of ${const_1.TITLE_APP} is out of date! The latest version`);console.log(`is ${t}. You can update from your release source.`)}}function printTooManyArgsForInit(){logger_1.logger.error("Too many command line arguments. Did you mean to use -chdir?")}function ensureNoPositionalArgs(e,t){if(t.length>0){logger_1.logger.error(`Too many command line arguments\n\nTo specify a working directory for the ${e}, use the global -chdir flag.`)}}function isScopeToken(e){if(!e)return false;return["testcase","testrun","testplan"].includes(e.toLowerCase())}function normalizeLongFlags(e){const t=new Set(["chdir","scope","help","verbose","version","auto-approve","out","lock","lock-timeout","input","var","var-file","no-color","json","detailed-exitcode","state","backup","target","destroy","refresh","refresh-only","force","check","list","write","diff","recursive","plan","draw-cycles","type","module-depth","allow-missing","ignore-remote-version","backend","backend-config","force-copy","from-module","get","plugin-dir","reconfigure","lockfile","test-directory","set-status","set-state","replace","compact-warnings","generate-config-out","parallelism","no-tests","query","state-out","config","taint","untaint","workspace","report","format","filter","id","dry-run","apply","field","rule"]);const i={C:"chdir",s:"scope",h:"help",v:"verbose",a:"auto-approve",o:"out"};return e.map((e=>{const a=e.match(/^-([a-zA-Z][a-zA-Z-]*)(=.*)?$/);if(!a)return e;const o=a[1];const d=a[2]||"";if(i[o]){return`--${i[o]}${d}`}const m=o.toLowerCase();if(t.has(m)){return`--${m}${d}`}return e}))}const booleanFlags=new Set(["--help","--verbose","--version","--auto-approve","--lock","--input","--no-color","--json","--detailed-exitcode","--destroy","--refresh","--refresh-only","--force","--check","--list","--write","--diff","--recursive","--draw-cycles","--allow-missing","--ignore-remote-version","--backend","--reconfigure","--migrate-state","--compact-warnings","--no-tests","--dry-run","--apply"]);const main=async()=>{let e;try{const t=normalizeLongFlags(process.argv.slice(2));const i=new Map;const a=[];for(const e of t){const t=e.match(/^(--[a-z][a-z-]*)=(true|false)$/i);if(t&&booleanFlags.has(t[1])){i.set(t[1],t[2].toLowerCase()==="true")}else{a.push(e)}}e=(0,arg_1.default)({"--chdir":String,"--projectId":String,"--scope":String,"--out":String,"--lock-timeout":String,"--var":[String],"--var-file":[String],"--state":String,"--backup":String,"--target":[String],"--plan":String,"--type":String,"--module-depth":String,"--backend-config":[String],"--test-directory":String,"--set-status":[String],"--set-state":[String],"--replace":[String],"--parallelism":String,"--state-out":String,"--config":String,"--taint":[String],"--untaint":[String],"--workspace":String,"--report":String,"--format":String,"--filter":[String],"--id":String,"--field":[String],"--rule":[String],"--help":Boolean,"--verbose":Boolean,"--version":Boolean,"--auto-approve":Boolean,"--lock":Boolean,"--input":Boolean,"--no-color":Boolean,"--json":Boolean,"--detailed-exitcode":Boolean,"--destroy":Boolean,"--refresh":Boolean,"--refresh-only":Boolean,"--force":Boolean,"--check":Boolean,"--list":Boolean,"--write":Boolean,"--diff":Boolean,"--apply":Boolean,"--recursive":Boolean,"--draw-cycles":Boolean,"--allow-missing":Boolean,"--ignore-remote-version":Boolean,"--backend":Boolean,"--reconfigure":Boolean,"--migrate-state":Boolean,"--compact-warnings":Boolean,"--no-tests":Boolean,"--dry-run":Boolean,"-C":"--chdir","-s":"--scope","-h":"--help","-v":"--verbose","-a":"--auto-approve","-o":"--out"},{argv:a});Object.assign(e,Object.fromEntries(i))}catch(e){if(e.code==="ARG_UNKNOWN_OPTION"){console.error(`[31mError: ${e.message}[0m\n`);console.log(`Usage: ${const_1.TITLE_CLI} [global options] <subcommand> [args]\nRun '${const_1.TITLE_CLI} --help' for more information.`);process.exit(1)}throw e}const t=e._.map(String);if(e["--version"]){printVersion(false);process.exit(0)}const i=e._;const a=i[0];const o=i.slice(1);if(e["--help"]){if(a){let e=a;if(a==="state"&&o.length>0){e=`state ${o[0]}`}const t=(0,help_1.getCommandHelp)(e);if(t){console.log(t)}else{console.log(`Unknown command: ${e}\n\n${help_1.HELP_GLOBAL}`)}}else{console.log(help_1.HELP_GLOBAL)}process.exit(0)}if(!a){console.log(help_1.HELP_GLOBAL);process.exit(0)}let d=a.toLowerCase();let m=o;const h=Object.prototype.hasOwnProperty.call(e,"--scope");let P=e["--scope"]||(h?"testcase":"all");if(!h&&["plan","apply","diff","refresh","destroy"].includes(d)){logger_1.logger.warn(`Warning: Scanning all scopes. You can use -scope (testcase|testrun|testplan) to limit the operation.`)}const _=String(e["--chdir"]||".");const L=new variables_1.VariableParser(e["--var"],e["--var-file"],_);if(e["--no-color"]){chalk_2.default.level=0}if(isScopeToken(d)&&t[1]){P=d;d=t[1].toLowerCase();m=t.slice(2)}if(!_){printTooManyArgsForInit();process.exit(1)}const j=Boolean(e["--verbose"]||e["--verbose"]);const U=P;const H=U==="all"?"testcase":U;if(d==="version"){printVersion(true);process.exit(process.exitCode||0)}if(d==="init"){if(m.length>0){printTooManyArgsForInit()}await(0,init_1.initCmd)({dir:_,verbose:j,backendConfigRaw:e["--backend-config"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",reconfigure:e["--reconfigure"],migrateState:e["--migrate-state"],backendEnabled:e["--backend"]??true,isJson:e["--json"],inputEnabled:e["--input"]??true});process.exit(process.exitCode||0)}if(d==="validate"){const t=m.length>0?m[0]:_;if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,validate_1.validateCmd)({targetPath:t,verbose:j,scope:H,variables:L,isJson:e["--json"],testDirectory:e["--test-directory"],noTests:e["--no-tests"],query:e["--query"]});process.exit(process.exitCode||0)}if(d==="plan"){ensureNoPositionalArgs(d,m);await(0,plan_1.planCmd)({dir:_,verbose:j,scope:U,outPath:e["--out"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",variables:L,isJson:e["--json"],detailedExitCode:e["--detailed-exitcode"],statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],destroyPlan:e["--destroy"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="apply"){let t=undefined;if(m.length===1){t=m[0]}else if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,apply_1.applyCmd)({dir:_,autoApprove:Boolean(e["--auto-approve"]||e["--auto-approve"]),verbose:j,scope:U,planFile:t,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,variables:L,statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],setStatus:e["--set-status"]?.[0]||e["--set-state"]?.[0],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="destroy"){ensureNoPositionalArgs(d,m);await(0,destroy_1.destroyCmd)({dir:_,verbose:j,scope:U,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="show"){const t=m[0];await(0,show_1.showCmd)({path:t,isJson:e["--json"],verbose:j,dir:String(e["--chdir"]||"."),statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="refresh"){ensureNoPositionalArgs(d,m);await(0,refresh_1.refreshCmd)({dir:_,verbose:j,scope:U,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"],parallelismRaw:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false});process.exit(process.exitCode||0)}if(d==="diff"){ensureNoPositionalArgs(d,m);await(0,diff_1.diffCmd)({dir:_,verbose:j,scope:U});process.exit(0)}if(d==="import"){if(m.length!==2){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} import [options] ADDR ISSUE_NUMBER`);process.exit(1)}const t=m[0];const i=m[1];await(0,import_1.importCmd)({dir:_,scope:H,identityArg:t,issueNumber:i,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="state"){if(m.length===0){console.log((0,help_1.getCommandHelp)("state"));process.exit(1)}const t=m[0];const i=m.slice(1);await(0,state_1.stateCmd)({dir:_,action:t,args:i,statePath:e["--state"],backupPath:e["--backup"],isJson:e["--json"],id:e["--id"],dryRun:e["--dry-run"],force:e["--force"]});process.exit(process.exitCode||0)}if(d==="taint"||d==="untaint"){if(m.length===0){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} ${d} [options] name`);process.exit(1)}await(0,taint_1.taintCmd)({dir:_,action:d,identityRaw:m[0],statePath:e["--state"],backupPath:e["--backup"],allowMissing:e["--allow-missing"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s"});process.exit(process.exitCode||0)}if(d==="workspace"){await(0,workspace_1.workspaceCmd)({dir:_,verbose:j,args:m});process.exit(process.exitCode||0)}if(d==="force-unlock"){if(m.length!==1){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} force-unlock [options] LOCK_ID`);process.exit(1)}await(0,force_unlock_1.forceUnlockCmd)({dir:_,lockId:m[0],force:e["--force"],statePath:e["--state"]});process.exit(process.exitCode||0)}if(d==="graph"){if(e["--help"]){const{HELP_GRAPH:e}=__nccwpck_require__(41244);console.log(e);process.exit(0)}ensureNoPositionalArgs(d,m);await(0,graph_1.graphCmd)({dir:_,scope:H,drawCycles:e["--draw-cycles"]});process.exit(process.exitCode||0)}if(d==="report"){const t=m.length>0?m[0]:"raw";await(0,report_1.reportCmd)({dir:_,type:t,format:e["--format"]||"md",filter:e["--filter"]||[],fields:e["--field"]||[],apply:e["--apply"],out:e["--out"],statePath:e["--state"]});process.exit(0)}if(d==="generate"){let t=undefined;let i=undefined;const a=Object.prototype.hasOwnProperty.call(e,"--scope");if(m.length>0){const e=m[0].toLowerCase();if(["testcase","testrun","testplan"].includes(e)){t=e;i=m.slice(1).join(" ")}else{i=m.join(" ")}}if(!t&&a){t=String(e["--scope"])}if(!t){logger_1.logger.error(`Usage: testform generate <scope> [title]\n\nYou must specify the scope either as the first argument or using the -scope flag (e.g., -scope=testrun).`);process.exit(1)}if(!["testcase","testrun","testplan"].includes(t)){logger_1.logger.error(`Invalid scope '${t}'. Must be one of: testcase, testrun, testplan.`);process.exit(1)}if(!i)i=undefined;await(0,generate_1.generateCmd)({dir:_,scope:t,title:i,rules:e["--rule"]||[]});process.exit(process.exitCode||0)}if(d==="fmt"){const t=e["--test-directory"]?(0,path_1.resolve)(_,e["--test-directory"]):_;const i=m.length>0?(0,path_1.resolve)(_,m[0]):t;await(0,fmt_1.fmtCmd)({dir:i,check:e["--check"],list:e["--list"]??true,write:e["--write"]??true,recursive:e["--recursive"]});process.exit(process.exitCode||0)}if(d==="debug"){if(m.length===0){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} debug <file> [options]`);process.exit(1)}await(0,debug_1.debugCmd)({dir:_,file:m[0],format:e["--format"]||"testform",scope:H,variables:L});process.exit(process.exitCode||0)}if(d==="login"){const e=m.length>0?m[0]:"github.com";await(0,login_1.loginCmd)({hostname:e});process.exit(process.exitCode||0)}if(d==="logout"){const e=m.length>0?m[0]:"github.com";await(0,logout_1.logoutCmd)({hostname:e});process.exit(process.exitCode||0)}console.log(help_1.HELP_GLOBAL);process.exit(1)};exports.main=main;if(require.main===require.cache[eval("__filename")]||!module.parent){main().catch((e=>{notify_1.notify.push({type:"error",title:e.name,detail:[e.message]})}))}},86999:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.Logger=void 0;const a=i(80465);class Logger{verbose=false;isJson=false;constructor(e=false,t=false){this.verbose=e;this.isJson=t}applyStyle(e,t){let i=e;if(t?.bold)i=(0,a.bold)(i);if(t?.dim)i=(0,a.dim)(i);return i}emitJson(e,t,i){const a={"@level":e,"@message":t,"@module":"testform.ui","@timestamp":(new Date).toISOString(),type:"log"};if(i){a.data=i}console.log(JSON.stringify(a))}formatMessage(e){return Array.isArray(e)?e.join("\n"):e}debug(e,t){if(!this.verbose)return;const i=this.formatMessage(e);if(this.isJson){this.emitJson("debug",i,t?.data);return}const o=t?.prefix!==false;const d=o?(0,a.dim)(`[DEBUG] `):"";const m=this.applyStyle(i,t);console.log(`${d}${(0,a.gray)(m)}`);if(t?.data)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}info(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("info",i,t?.data);return}const o=t?.prefix===true;const d=o?(0,a.cyan)(`[INFO] `):"";const m=this.applyStyle(i,t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}success(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("info",i,t?.data);return}const o=t?.prefix===true;const d=o?(0,a.green)(`[✓] `):"";const m=this.applyStyle((0,a.green)(i),t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}warn(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("warn",i,t?.data);return}console.error((0,a.yellow)("╷"));const o=(0,a.bold)((0,a.yellow)("Warning:"));const d=this.applyStyle(i,t);console.error(`${(0,a.yellow)("│")} ${o} ${d}`);if(t?.data&&this.verbose){console.error((0,a.yellow)("│"));const e=JSON.stringify(t.data,null,2);e.split("\n").forEach((e=>console.error(`${(0,a.yellow)("│")} ${e}`)))}console.error((0,a.yellow)("╵"))}error(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("error",i,t?t instanceof Error?t.stack:t:undefined);process.exit(1);return}console.error((0,a.red)("╷"));const o=(0,a.bold)((0,a.red)("Error:"));const d=i.split("\n");console.error(`${(0,a.red)("│")} ${o} ${(0,a.bold)(d[0])}`);for(let e=1;e<d.length;e++){console.error(`${(0,a.red)("│")} ${d[e]}`)}if(t){console.error((0,a.red)("│"));if(t instanceof Error){console.error(`${(0,a.red)("│")} ${t.message}`);if(this.verbose&&t.stack){t.stack.split("\n").forEach((e=>console.error(`${(0,a.red)("│")} ${(0,a.dim)(e)}`)))}}else if(typeof t==="object"){const e=JSON.stringify(t,null,2);e.split("\n").forEach((e=>console.error(`${(0,a.red)("│")} ${e}`)))}else{console.error(`${(0,a.red)("│")} ${String(t)}`)}}console.error((0,a.red)("╵"));process.exit(1)}blank(){if(this.isJson)return;console.log("")}}t.Logger=Logger;t.logger=new Logger},1622:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.notify=void 0;const a=i(80465);class Notify{push(e){const t=e.type==="warning";const i=t?(0,a.bold)((0,a.yellow)("Warning:")):(0,a.bold)((0,a.red)("Error:"));const o=t?a.yellow:a.red;const d=(0,a.bold)(e.title);const m=e.close??false;console.log(o("╷"));console.log(`${o("│")} ${i} ${d}`);console.log(o("│"));if(e.detail){const t=e.detail;for(const e of t){console.log(`${o("│")} ${e}`)}}if(e.extra){const t=e.extra;for(const e of t){console.log(`${o("│")} ${e}`)}}console.log(o("╵"));if(m)process.exit(1)}refresh(e,t){const i=t?(0,a.dim)(`[id=${t}]`):"";console.log(`${(0,a.cyan)(e)}: Refreshing state... ${i}`)}}t.notify=new Notify},42078:module=>{module.exports=eval("require")("encoding")},42613:e=>{"use strict";e.exports=require("assert")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},76982:e=>{"use strict";e.exports=require("crypto")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},16698:e=>{"use strict";e.exports=require("node:async_hooks")},4573:e=>{"use strict";e.exports=require("node:buffer")},31421:e=>{"use strict";e.exports=require("node:child_process")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},37067:e=>{"use strict";e.exports=require("node:http")},32467:e=>{"use strict";e.exports=require("node:http2")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},76760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},73136:e=>{"use strict";e.exports=require("node:url")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},24876:e=>{"use strict";e.exports=require("punycode")},83480:e=>{"use strict";e.exports=require("querystring")},23785:e=>{"use strict";e.exports=require("readline")},2203:e=>{"use strict";e.exports=require("stream")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},43106:e=>{"use strict";e.exports=require("zlib")},59192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},83134:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var a=i(59192);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return a.AbortError}})},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{_key;get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const a=i(87779);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}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,a.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const a=i(87779);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}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,a.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var a=i(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return a.AzureKeyCredential}});var o=i(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return o.isKeyCredential}});var d=i(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var m=i(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return m.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return m.isSASCredential}});var h=i(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return h.isTokenCredential}})},99155:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const a=i(87779);function isKeyCredential(e){return(0,a.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;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)}},17698:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const a=i(89994);const o=i(20741);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 i=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return i.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:i}=e;const d=e.logger||a.logger;const m=i.headers.get("WWW-Authenticate");if(!m){d.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const h=parseCAEChallenge(m)||[];const P=h.find((e=>e.claims));if(!P){d.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const _=await e.getAccessToken(P.scope?[P.scope]:t,{claims:(0,o.decodeStringToString)(P.claims)});if(!_){return false}e.request.headers.set("Authorization",`${_.tokenType??"Bearer"} ${_.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const i={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 a=getChallenge(e.response);if(a){const o=parseChallenge(a);const d=buildScopes(e,o);const m=extractTenantId(o);if(!m){return false}const h=await e.getAccessToken(d,{...t,tenantId:m});if(!h){return false}e.request.headers.set(i.HeaderConstants.AUTHORIZATION,`${h.tokenType??"Bearer"} ${h.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const i=t.pathname.split("/");const a=i[1];if(a&&isUuid(a)){return a}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const a=new URL(t.resource_id);a.pathname=i.DefaultScope;let o=a.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}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 i=`${t.trim()} `.split(" ").filter((e=>e));const a=i.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return a.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;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 decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const a=i(56058);const o=i(20778);const d=i(31530);const m=i(19688);const h=["application/json","text/json"];const P=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){const i=e.expectedContentTypes?.json??h;const o=e.expectedContentTypes?.xml??P;const d=e.parseXML;const m=e.serializerOptions;const _={xml:{rootName:m?.xml.rootName??"",includeRoot:m?.xml.includeRoot??false,xmlCharKey:m?.xml.xmlCharKey??a.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const a=await t(e);return deserializeResponseBody(i,o,a,_,d)}}}function getOperationResponseMap(e){let t;const i=e.request;const a=(0,m.getOperationRequestInfo)(i);const o=a?.operationSpec;if(o){if(!a?.operationResponseGetter){t=o.responses[e.status]}else{t=a?.operationResponseGetter(o,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const i=(0,m.getOperationRequestInfo)(t);const a=i?.shouldDeserialize;let o;if(a===undefined){o=true}else if(typeof a==="boolean"){o=a}else{o=a(e)}return o}async function deserializeResponseBody(e,t,i,a,h){const P=await parse(e,t,i,a,h);if(!shouldDeserializeResponse(P)){return P}const _=(0,m.getOperationRequestInfo)(P.request);const L=_?.operationSpec;if(!L||!L.responses){return P}const j=getOperationResponseMap(P);const{error:U,shouldReturnResponse:H}=handleErrorResponse(P,L,j,a);if(U){throw U}else if(H){return P}if(j){if(j.bodyMapper){let e=P.parsedBody;if(L.isXML&&j.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[j.bodyMapper.xmlElementName]:[]}try{P.parsedBody=L.serializer.deserialize(j.bodyMapper,e,"operationRes.parsedBody",a)}catch(e){const t=new o.RestError(`Error ${e} occurred in deserializing the responseBody - ${P.bodyAsText}`,{statusCode:P.status,request:P.request,response:P});throw t}}else if(L.httpMethod==="HEAD"){P.parsedBody=i.status>=200&&i.status<300}if(j.headersMapper){P.parsedHeaders=L.serializer.deserialize(j.headersMapper,P.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return P}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,i,a){const m=200<=e.status&&e.status<300;const h=isOperationSpecEmpty(t)?m:!!i;if(h){if(i){if(!i.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const P=i??t.responses.default;const _=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const L=new o.RestError(_,{statusCode:e.status,request:e.request,response:e});if(!P&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw L}const j=P?.bodyMapper;const U=P?.headersMapper;try{if(e.parsedBody){const i=e.parsedBody;let o;if(j){let e=i;if(t.isXML&&j.type.name===d.MapperTypeNames.Sequence){e=[];const t=j.xmlElementName;if(typeof i==="object"&&t){e=i[t]}}o=t.serializer.deserialize(j,e,"error.response.parsedBody",a)}const m=i.error||o||i;L.code=m.code;if(m.message){L.message=m.message}if(j){L.response.parsedBody=o}}if(e.headers&&U){L.response.parsedHeaders=t.serializer.deserialize(U,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){L.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:L,shouldReturnResponse:false}}async function parse(e,t,i,a,d){if(!i.request.streamResponseStatusCodes?.has(i.status)&&i.bodyAsText){const m=i.bodyAsText;const h=i.headers.get("Content-Type")||"";const P=!h?[]:h.split(";").map((e=>e.toLowerCase()));try{if(P.length===0||P.some((t=>e.indexOf(t)!==-1))){i.parsedBody=JSON.parse(m);return i}else if(P.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(m,a.xml);i.parsedBody=e;return i}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${i.bodyAsText}.`;const a=e.code||o.RestError.PARSE_ERROR;const d=new o.RestError(t,{code:a,statusCode:i.status,request:i.request,response:i});throw d}}return i}},26323:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const a=i(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,a.createDefaultHttpClient)()}return o}},60160:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var a=i(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return a.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return a.MapperTypeNames}});var o=i(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return o.ServiceClient}});var d=i(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var m=i(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return m.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return m.XML_CHARKEY}});var h=i(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return h.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return h.deserializationPolicyName}});var P=i(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return P.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return P.serializationPolicyName}});var _=i(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return _.authorizeRequestOnClaimChallenge}});var L=i(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return L.authorizeRequestOnTenantChallenge}})},92066:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const a=i(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const i in e.responses){const o=e.responses[i];if(o.bodyMapper&&o.bodyMapper.type.name===a.MapperTypeNames.Stream){t.add(Number(i))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:i}=e;let a;if(typeof t==="string"){a=t}else if(Array.isArray(t)){a=t.join(".")}else{a=i.serializedName}return a}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("core-client")},19688:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const a=i(33345);function getOperationArgumentValueFromParameter(e,t,i){let a=t.parameterPath;const o=t.mapper;let d;if(typeof a==="string"){a=[a]}if(Array.isArray(a)){if(a.length>0){if(o.isConstant){d=o.defaultValue}else{let t=getPropertyFromParameterPath(e,a);if(!t.propertyFound&&i){t=getPropertyFromParameterPath(i,a)}let m=false;if(!t.propertyFound){m=o.required||a[0]==="options"&&a.length===2}d=m?o.defaultValue:t.propertyValue}}}else{if(o.required){d={}}for(const t in a){const m=o.type.modelProperties[t];const h=a[t];const P=getOperationArgumentValueFromParameter(e,{parameterPath:h,mapper:m},i);if(P!==undefined){if(!d){d={}}d[t]=P}}}return d}function getPropertyFromParameterPath(e,t){const i={propertyFound:false};let a=0;for(;a<t.length;++a){const i=t[a];if(e&&i in e){e=e[i]}else{break}}if(a===t.length){i.propertyValue=e;i.propertyFound=true}return i}const o=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return o in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[o])}let t=a.state.operationRequestMap.get(e);if(!t){t={};a.state.operationRequestMap.set(e,t)}return t}},74136:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const a=i(90111);const o=i(20778);const d=i(56234);function createClientPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e??{});if(e.credentialOptions){t.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,a.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const a=i(56058);const o=i(19688);const d=i(31530);const m=i(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const i=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const a=(0,o.getOperationRequestInfo)(e);const d=a?.operationSpec;const m=a?.operationArguments;if(d&&m){serializeHeaders(e,m,d);serializeRequestBody(e,m,d,i)}return t(e)}}}function serializeHeaders(e,t,i){if(i.headerParameters){for(const a of i.headerParameters){let d=(0,o.getOperationArgumentValueFromParameter)(t,a);if(d!==null&&d!==undefined||a.mapper.required){d=i.serializer.serialize(a.mapper,d,(0,m.getPathStringFromParameter)(a));const t=a.mapper.headerCollectionPrefix;if(t){for(const i of Object.keys(d)){e.headers.set(t+i,d[i])}}else{e.headers.set(a.mapper.serializedName||(0,m.getPathStringFromParameter)(a),d)}}}}const a=t.options?.requestOptions?.customHeaders;if(a){for(const t of Object.keys(a)){e.headers.set(t,a[t])}}}function serializeRequestBody(e,t,i,h=function(){throw new Error("XML serialization unsupported!")}){const P=t.options?.serializerOptions;const _={xml:{rootName:P?.xml.rootName??"",includeRoot:P?.xml.includeRoot??false,xmlCharKey:P?.xml.xmlCharKey??a.XML_CHARKEY}};const L=_.xml.xmlCharKey;if(i.requestBody&&i.requestBody.mapper){e.body=(0,o.getOperationArgumentValueFromParameter)(t,i.requestBody);const a=i.requestBody.mapper;const{required:P,serializedName:j,xmlName:U,xmlElementName:H,xmlNamespace:V,xmlNamespacePrefix:K,nullable:W}=a;const J=a.type.name;try{if(e.body!==undefined&&e.body!==null||W&&e.body===null||P){const t=(0,m.getPathStringFromParameter)(i.requestBody);e.body=i.serializer.serialize(a,e.body,t,_);const o=J===d.MapperTypeNames.Stream;if(i.isXML){const t=K?`xmlns:${K}`:"xmlns";const i=getXmlValueWithNamespace(V,t,J,e.body,_);if(J===d.MapperTypeNames.Sequence){e.body=h(prepareXMLRootList(i,H||U||j,t,V),{rootName:U||j,xmlCharKey:L})}else if(!o){e.body=h(i,{rootName:U||j,xmlCharKey:L})}}else if(J===d.MapperTypeNames.String&&(i.contentType?.match("text/plain")||i.mediaType==="text")){return}else if(!o){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(j,undefined," ")}.`)}}else if(i.formDataParameters&&i.formDataParameters.length>0){e.formData={};for(const a of i.formDataParameters){const d=(0,o.getOperationArgumentValueFromParameter)(t,a);if(d!==undefined&&d!==null){const t=a.mapper.serializedName||(0,m.getPathStringFromParameter)(a);e.formData[t]=i.serializer.serialize(a.mapper,d,(0,m.getPathStringFromParameter)(a),_)}}}}function getXmlValueWithNamespace(e,t,i,o,d){if(e&&!["Composite","Sequence","Dictionary"].includes(i)){const i={};i[d.xml.xmlCharKey]=o;i[a.XML_ATTRKEY]={[t]:e};return i}return o}function prepareXMLRootList(e,t,i,o){if(!Array.isArray(e)){e=[e]}if(!i||!o){return{[t]:e}}const d={[t]:e};d[a.XML_ATTRKEY]={[i]:o};return d}},31530:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const a=i(61860);const o=a.__importStar(i(20741));const d=i(56058);const m=i(31193);class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,i){const failValidation=(e,a)=>{throw new Error(`"${i}" with value "${t}" should satisfy the constraint "${e}": ${a}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:i,ExclusiveMinimum:a,InclusiveMaximum:o,InclusiveMinimum:d,MaxItems:m,MaxLength:h,MinItems:P,MinLength:_,MultipleOf:L,Pattern:j,UniqueItems:U}=e.constraints;if(i!==undefined&&t>=i){failValidation("ExclusiveMaximum",i)}if(a!==undefined&&t<=a){failValidation("ExclusiveMinimum",a)}if(o!==undefined&&t>o){failValidation("InclusiveMaximum",o)}if(d!==undefined&&t<d){failValidation("InclusiveMinimum",d)}if(m!==undefined&&t.length>m){failValidation("MaxItems",m)}if(h!==undefined&&t.length>h){failValidation("MaxLength",h)}if(P!==undefined&&t.length<P){failValidation("MinItems",P)}if(_!==undefined&&t.length<_){failValidation("MinLength",_)}if(L!==undefined&&t%L!==0){failValidation("MultipleOf",L)}if(j){const e=typeof j==="string"?new RegExp(j):j;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",j)}}if(U&&t.some(((e,t,i)=>i.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,i,a={xml:{}}){const o={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??d.XML_CHARKEY}};let m={};const h=e.type.name;if(!i){i=e.serializedName}if(h.match(/^Sequence$/i)!==null){m=[]}if(e.isConstant){t=e.defaultValue}const{required:P,nullable:_}=e;if(P&&_&&t===undefined){throw new Error(`${i} cannot be undefined.`)}if(P&&!_&&(t===undefined||t===null)){throw new Error(`${i} cannot be null or undefined.`)}if(!P&&_===false&&t===null){throw new Error(`${i} cannot be null.`)}if(t===undefined||t===null){m=t}else{if(h.match(/^any$/i)!==null){m=t}else if(h.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){m=serializeBasicTypes(h,i,t)}else if(h.match(/^Enum$/i)!==null){const a=e;m=serializeEnumType(i,a.type.allowedValues,t)}else if(h.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){m=serializeDateTypes(h,t,i)}else if(h.match(/^ByteArray$/i)!==null){m=serializeByteArrayType(i,t)}else if(h.match(/^Base64Url$/i)!==null){m=serializeBase64UrlType(i,t)}else if(h.match(/^Sequence$/i)!==null){m=serializeSequenceType(this,e,t,i,Boolean(this.isXML),o)}else if(h.match(/^Dictionary$/i)!==null){m=serializeDictionaryType(this,e,t,i,Boolean(this.isXML),o)}else if(h.match(/^Composite$/i)!==null){m=serializeCompositeType(this,e,t,i,Boolean(this.isXML),o)}}return m}deserialize(e,t,i,a={xml:{}}){const m={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??d.XML_CHARKEY},ignoreUnknownProperties:a.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 h;const P=e.type.name;if(!i){i=e.serializedName}if(P.match(/^Composite$/i)!==null){h=deserializeCompositeType(this,e,t,i,m)}else{if(this.isXML){const e=m.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(P.match(/^Number$/i)!==null){h=parseFloat(t);if(isNaN(h)){h=t}}else if(P.match(/^Boolean$/i)!==null){if(t==="true"){h=true}else if(t==="false"){h=false}else{h=t}}else if(P.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){h=t}else if(P.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){h=new Date(t)}else if(P.match(/^UnixTime$/i)!==null){h=unixTimeToDate(t)}else if(P.match(/^ByteArray$/i)!==null){h=o.decodeString(t)}else if(P.match(/^Base64Url$/i)!==null){h=base64UrlToByteArray(t)}else if(P.match(/^Sequence$/i)!==null){h=deserializeSequenceType(this,e,t,i,m)}else if(P.match(/^Dictionary$/i)!==null){h=deserializeDictionaryType(this,e,t,i,m)}}if(e.isConstant){h=e.defaultValue}return h}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let i=e.length;while(i-1>=0&&e[i-1]===t){--i}return e.substr(0,i)}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=o.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 o.decodeString(e)}function splitSerializeName(e){const t=[];let i="";if(e){const a=e.split(".");for(const e of a){if(e.charAt(e.length-1)==="\\"){i+=e.substr(0,e.length-1)+"."}else{i+=e;t.push(i);i=""}}}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,i){if(i!==null&&i!==undefined){if(e.match(/^Number$/i)!==null){if(typeof i!=="number"){throw new Error(`${t} with value ${i} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof i.valueOf()!=="string"){throw new Error(`${t} with value "${i}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof i.valueOf()==="string"&&(0,m.isValidUuid)(i))){throw new Error(`${t} with value "${i}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof i!=="boolean"){throw new Error(`${t} with value ${i} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof i;if(e!=="string"&&typeof i.pipe!=="function"&&typeof i.tee!=="function"&&!(i instanceof ArrayBuffer)&&!ArrayBuffer.isView(i)&&!((typeof Blob==="function"||typeof Blob==="object")&&i instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return i}function serializeEnumType(e,t,i){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const a=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===i.toLowerCase()}return e===i}));if(!a){throw new Error(`${i} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return i}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=o.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,i){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(`${i} 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(`${i} 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(`${i} 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(`${i} 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(!(0,m.isDuration)(t)){throw new Error(`${i} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,i,a,o,m){if(!Array.isArray(i)){throw new Error(`${a} must be of type Array.`)}let h=t.type.element;if(!h||typeof h!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}if(h.type.name==="Composite"&&h.type.className){h=e.modelMappers[h.type.className]??h}const P=[];for(let t=0;t<i.length;t++){const _=e.serialize(h,i[t],a,m);if(o&&h.xmlNamespace){const e=h.xmlNamespacePrefix?`xmlns:${h.xmlNamespacePrefix}`:"xmlns";if(h.type.name==="Composite"){P[t]={..._};P[t][d.XML_ATTRKEY]={[e]:h.xmlNamespace}}else{P[t]={};P[t][m.xml.xmlCharKey]=_;P[t][d.XML_ATTRKEY]={[e]:h.xmlNamespace}}}else{P[t]=_}}return P}function serializeDictionaryType(e,t,i,a,o,m){if(typeof i!=="object"){throw new Error(`${a} must be of type object.`)}const h=t.type.value;if(!h||typeof h!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const P={};for(const t of Object.keys(i)){const d=e.serialize(h,i[t],a,m);P[t]=getXmlObjectValue(h,d,o,m)}if(o&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const i=P;i[d.XML_ATTRKEY]={[e]:t.xmlNamespace};return i}return P}function resolveAdditionalProperties(e,t,i){const a=t.type.additionalProperties;if(!a&&t.type.className){const a=resolveReferencedMapper(e,t,i);return a?.type.additionalProperties}return a}function resolveReferencedMapper(e,t,i){const a=t.type.className;if(!a){throw new Error(`Class name for model "${i}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[a]}function resolveModelProperties(e,t,i){let a=t.type.modelProperties;if(!a){const o=resolveReferencedMapper(e,t,i);if(!o){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}a=o?.type.modelProperties;if(!a){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(o)}" of type "${t.type.className}" for object "${i}".`)}}return a}function serializeCompositeType(e,t,i,a,o,m){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,i,"clientName")}if(i!==undefined&&i!==null){const h={};const P=resolveModelProperties(e,t,a);for(const _ of Object.keys(P)){const L=P[_];if(L.readOnly){continue}let j;let U=h;if(e.isXML){if(L.xmlIsWrapped){j=L.xmlName}else{j=L.xmlElementName||L.xmlName}}else{const e=splitSerializeName(L.serializedName);j=e.pop();for(const t of e){const e=U[t];if((e===undefined||e===null)&&(i[_]!==undefined&&i[_]!==null||L.defaultValue!==undefined)){U[t]={}}U=U[t]}}if(U!==undefined&&U!==null){if(o&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";U[d.XML_ATTRKEY]={...U[d.XML_ATTRKEY],[e]:t.xmlNamespace}}const h=L.serializedName!==""?a+"."+L.serializedName:a;let P=i[_];const H=getPolymorphicDiscriminatorRecursively(e,t);if(H&&H.clientName===_&&(P===undefined||P===null)){P=t.serializedName}const V=e.serialize(L,P,h,m);if(V!==undefined&&j!==undefined&&j!==null){const e=getXmlObjectValue(L,V,o,m);if(o&&L.xmlIsAttribute){U[d.XML_ATTRKEY]=U[d.XML_ATTRKEY]||{};U[d.XML_ATTRKEY][j]=V}else if(o&&L.xmlIsWrapped){U[j]={[L.xmlElementName]:e}}else{U[j]=e}}}}const _=resolveAdditionalProperties(e,t,a);if(_){const t=Object.keys(P);for(const o in i){const d=t.every((e=>e!==o));if(d){h[o]=e.serialize(_,i[o],a+'["'+o+'"]',m)}}}return h}return i}function getXmlObjectValue(e,t,i,a){if(!i||!e.xmlNamespace){return t}const o=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const m={[o]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e={...t};e[d.XML_ATTRKEY]=m;return e}}const h={};h[a.xml.xmlCharKey]=t;h[d.XML_ATTRKEY]=m;return h}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,i,a,o){const m=o.xml.xmlCharKey??d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,i,"serializedName")}const h=resolveModelProperties(e,t,a);let P={};const _=[];for(const L of Object.keys(h)){const j=h[L];const U=splitSerializeName(h[L].serializedName);_.push(U[0]);const{serializedName:H,xmlName:V,xmlElementName:K}=j;let W=a;if(H!==""&&H!==undefined){W=a+"."+H}const J=j.headerCollectionPrefix;if(J){const t={};for(const a of Object.keys(i)){if(a.startsWith(J)){t[a.substring(J.length)]=e.deserialize(j.type.value,i[a],W,o)}_.push(a)}P[L]=t}else if(e.isXML){if(j.xmlIsAttribute&&i[d.XML_ATTRKEY]){P[L]=e.deserialize(j,i[d.XML_ATTRKEY][V],W,o)}else if(j.xmlIsMsText){if(i[m]!==undefined){P[L]=i[m]}else if(typeof i==="string"){P[L]=i}}else{const t=K||V||H;if(j.xmlIsWrapped){const t=i[V];const a=t?.[K]??[];P[L]=e.deserialize(j,a,W,o);_.push(V)}else{const a=i[t];P[L]=e.deserialize(j,a,W,o);_.push(t)}}}else{let a;let d=i;let m=0;for(const e of U){if(!d)break;m++;d=d[e]}if(d===null&&m<U.length){d=undefined}a=d;const _=t.type.polymorphicDiscriminator;if(_&&L===_.clientName&&(a===undefined||a===null)){a=t.serializedName}let H;if(Array.isArray(i[L])&&h[L].serializedName===""){a=i[L];const t=e.deserialize(j,a,W,o);for(const[e,i]of Object.entries(P)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=i}}P=t}else if(a!==undefined||j.defaultValue!==undefined){H=e.deserialize(j,a,W,o);P[L]=H}}}const L=t.type.additionalProperties;if(L){const isAdditionalProperty=e=>{for(const t in h){const i=splitSerializeName(h[t].serializedName);if(i[0]===e){return false}}return true};for(const t in i){if(isAdditionalProperty(t)){P[t]=e.deserialize(L,i[t],a+'["'+t+'"]',o)}}}else if(i&&!o.ignoreUnknownProperties){for(const e of Object.keys(i)){if(P[e]===undefined&&!_.includes(e)&&!isSpecialXmlProperty(e,o)){P[e]=i[e]}}}return P}function deserializeDictionaryType(e,t,i,a,o){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){const t={};for(const m of Object.keys(i)){t[m]=e.deserialize(d,i[m],a,o)}return t}return i}function deserializeSequenceType(e,t,i,a,o){let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){if(!Array.isArray(i)){i=[i]}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const t=[];for(let m=0;m<i.length;m++){t[m]=e.deserialize(d,i[m],`${a}[${m}]`,o)}return t}return i}function getIndexDiscriminator(e,t,i){const a=[i];while(a.length){const i=a.shift();const o=t===i?t:i+"."+t;if(Object.prototype.hasOwnProperty.call(e,o)){return e[o]}else{for(const[t,o]of Object.entries(e)){if(t.startsWith(i+".")&&o.type.uberParent===i&&o.type.className){a.push(o.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,i,a){const o=getPolymorphicDiscriminatorRecursively(e,t);if(o){let d=o[a];if(d){if(a==="serializedName"){d=d.replace(/\\/gi,"")}const o=i[d];const m=t.type.uberParent??t.type.className;if(typeof o==="string"&&m){const i=getIndexDiscriminator(e.modelMappers.discriminators,o,m);if(i){t=i}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}t.MapperTypeNames={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"}},89544:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const a=i(20778);const o=i(74136);const d=i(31193);const m=i(26323);const h=i(19688);const P=i(61752);const _=i(92066);const L=i(89994);class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){L.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,m.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:i}of e.additionalPolicies){const e=i==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const i=t.baseUrl||this._endpoint;if(!i){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 o=(0,P.getRequestUrl)(i,t,e,this);const m=(0,a.createPipelineRequest)({url:o});m.method=t.httpMethod;const L=(0,h.getOperationRequestInfo)(m);L.operationSpec=t;L.operationArguments=e;const j=t.contentType||this._requestContentType;if(j&&t.requestBody){m.headers.set("Content-Type",j)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){m.timeout=e.timeout}if(e.onUploadProgress){m.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){m.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){L.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){m.allowInsecureConnection=true}}if(U.abortSignal){m.abortSignal=U.abortSignal}if(U.tracingOptions){m.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){m.allowInsecureConnection=true}if(m.streamResponseStatusCodes===undefined){m.streamResponseStatusCodes=(0,_.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(m);const i=(0,d.flattenResponse)(e,t.responses[e.status]);if(U?.onResponse){U.onResponse(e,i)}return i}catch(e){if(typeof e==="object"&&e?.response){const i=e.response;const a=(0,d.flattenResponse)(i,t.responses[e.statusCode]||t.responses["default"]);e.details=a;if(U?.onResponse){U.onResponse(i,a,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const i=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,o.createClientPipeline)({...e,credentialOptions:i})}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}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const a=i(19688);const o=i(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,i,a){const o=calculateUrlReplacements(t,i,a);let d=false;let m=replaceAll(e,o);if(t.path){let e=replaceAll(t.path,o);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){m=e;d=true}else{m=appendPath(m,e)}}const{queryParams:h,sequenceParams:P}=calculateQueryParameters(t,i,a);m=appendQueryParams(m,h,P,d);return m}function replaceAll(e,t){let i=e;for(const[e,a]of t){i=i.split(e).join(a)}return i}function calculateUrlReplacements(e,t,i){const d=new Map;if(e.urlParameters?.length){for(const m of e.urlParameters){let h=(0,a.getOperationArgumentValueFromParameter)(t,m,i);const P=(0,o.getPathStringFromParameter)(m);h=e.serializer.serialize(m.mapper,h,P);if(!m.skipEncoding){h=encodeURIComponent(h)}d.set(`{${m.mapper.serializedName||P}}`,h)}}return d}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const i=new URL(e);let a=i.pathname;if(!a.endsWith("/")){a=`${a}/`}if(t.startsWith("/")){t=t.substring(1)}const o=t.indexOf("?");if(o!==-1){const e=t.substring(0,o);const d=t.substring(o+1);a=a+e;if(d){i.search=i.search?`${i.search}&${d}`:d}}else{a=a+t}i.pathname=a;return i.toString()}function calculateQueryParameters(e,t,i){const m=new Map;const h=new Set;if(e.queryParameters?.length){for(const P of e.queryParameters){if(P.mapper.type.name==="Sequence"&&P.mapper.serializedName){h.add(P.mapper.serializedName)}let _=(0,a.getOperationArgumentValueFromParameter)(t,P,i);if(_!==undefined&&_!==null||P.mapper.required){_=e.serializer.serialize(P.mapper,_,(0,o.getPathStringFromParameter)(P));const t=P.collectionFormat?d[P.collectionFormat]:"";if(Array.isArray(_)){_=_.map((e=>{if(e===null||e===undefined){return""}return e}))}if(P.collectionFormat==="Multi"&&_.length===0){continue}else if(Array.isArray(_)&&(P.collectionFormat==="SSV"||P.collectionFormat==="TSV")){_=_.join(t)}if(!P.skipEncoding){if(Array.isArray(_)){_=_.map((e=>encodeURIComponent(e)))}else{_=encodeURIComponent(_)}}if(Array.isArray(_)&&(P.collectionFormat==="CSV"||P.collectionFormat==="Pipes")){_=_.join(t)}m.set(P.mapper.serializedName||(0,o.getPathStringFromParameter)(P),_)}}}return{queryParams:m,sequenceParams:h}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const i=e.split("&");for(const e of i){const[i,a]=e.split("=",2);const o=t.get(i);if(o){if(Array.isArray(o)){o.push(a)}else{t.set(i,[o,a])}}else{t.set(i,a)}}return t}function appendQueryParams(e,t,i,a=false){if(t.size===0){return e}const o=new URL(e);const d=simpleParseQueryParams(o.search);for(const[e,o]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(o)){t.push(...o);const i=new Set(t);d.set(e,Array.from(i))}else{t.push(o)}}else if(t){if(Array.isArray(o)){o.unshift(t)}else if(i.has(e)){d.set(e,[t,o])}if(!a){d.set(e,o)}}else{d.set(e,o)}}const m=[];for(const[e,t]of d){if(typeof t==="string"){m.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const i of t){m.push(`${e}=${i}`)}}else{m.push(`${e}=${t}`)}}o.search=m.length?`?${m.join("&")}`:"";return o.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;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 i=/^(-|\+)?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 i.test(e)}const a=/^[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 a.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 i=e.parsedHeaders;if(e.request.method==="HEAD"){return{...i,body:e.parsedBody}}const a=t&&t.bodyMapper;const o=Boolean(a?.nullable);const d=a?.type.name;if(d==="Stream"){return{...i,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const m=d==="Composite"&&a.type.modelProperties||{};const h=Object.keys(m).some((e=>m[e].serializedName===""));if(d==="Sequence"||h){const t=e.parsedBody??[];for(const i of Object.keys(m)){if(m[i].serializedName){t[i]=e.parsedBody?.[i]}}if(i){for(const e of Object.keys(i)){t[e]=i[e]}}return o&&!e.parsedBody&&!i&&Object.getOwnPropertyNames(m).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:i,hasNullableType:o,shouldWrapBody:isPrimitiveBody(e.parsedBody,d)})}},95492:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{ExtendedServiceClient:()=>ExtendedServiceClient});e.exports=__toCommonJS(h);var P=i(32639);var _=i(20778);var L=i(60160);var j=i(38153);class ExtendedServiceClient extends L.ServiceClient{constructor(e){super(e);if(e.keepAliveOptions?.enable===false&&!(0,P.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,P.createDisableKeepAlivePolicy)())}if(e.redirectOptions?.handleRedirects===false){this.pipeline.removePolicy({name:_.redirectPolicyName})}}async sendOperationRequest(e,t){const i=e?.options?.onResponse;let a;function onResponse(e,t,o){a=e;if(i){i(e,t,o)}}e.options={...e.options,onResponse:onResponse};const o=await super.sendOperationRequest(e,t);if(a){Object.defineProperty(o,"_response",{value:(0,j.toCompatResponse)(a)})}return o}}0&&0},2078:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{convertHttpClient:()=>convertHttpClient});e.exports=__toCommonJS(h);var P=i(38153);var _=i(33850);function convertHttpClient(e){return{sendRequest:async t=>{const i=await e.sendRequest((0,_.toWebResourceLike)(t,{createProxy:true}));return(0,P.toPipelineResponse)(i)}}}0&&0},61584:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{ExtendedServiceClient:()=>P.ExtendedServiceClient,HttpPipelineLogLevel:()=>L.HttpPipelineLogLevel,convertHttpClient:()=>U.convertHttpClient,createRequestPolicyFactoryPolicy:()=>L.createRequestPolicyFactoryPolicy,disableKeepAlivePolicyName:()=>j.disableKeepAlivePolicyName,requestPolicyFactoryPolicyName:()=>L.requestPolicyFactoryPolicyName,toCompatResponse:()=>_.toCompatResponse,toHttpHeadersLike:()=>H.toHttpHeadersLike});e.exports=__toCommonJS(h);var P=i(95492);var _=i(38153);var L=i(3466);var j=i(32639);var U=i(2078);var H=i(33850);0&&0},32639:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{createDisableKeepAlivePolicy:()=>createDisableKeepAlivePolicy,disableKeepAlivePolicyName:()=>m,pipelineContainsDisableKeepAlivePolicy:()=>pipelineContainsDisableKeepAlivePolicy});e.exports=__toCommonJS(d);const m="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:m,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===m))}0&&0},3466:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{HttpPipelineLogLevel:()=>L,createRequestPolicyFactoryPolicy:()=>createRequestPolicyFactoryPolicy,requestPolicyFactoryPolicyName:()=>U});e.exports=__toCommonJS(h);var P=i(33850);var _=i(38153);var L=(e=>{e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING";return e})(L||{});const j={log(e,t){},shouldLog(e){return false}};const U="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const t=e.slice().reverse();return{name:U,async sendRequest(e,i){let a={async sendRequest(e){const t=await i((0,P.toPipelineRequest)(e));return(0,_.toCompatResponse)(t,{createProxy:true})}};for(const e of t){a=e.create(a,j)}const o=(0,P.toWebResourceLike)(e,{createProxy:true});const d=await a.sendRequest(o);return(0,_.toPipelineResponse)(d)}}}0&&0},38153:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{toCompatResponse:()=>toCompatResponse,toPipelineResponse:()=>toPipelineResponse});e.exports=__toCommonJS(h);var P=i(20778);var _=i(33850);const L=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let i=(0,_.toWebResourceLike)(e.request);let a=(0,_.toHttpHeadersLike)(e.headers);if(t?.createProxy){return new Proxy(e,{get(t,o,d){if(o==="headers"){return a}else if(o==="request"){return i}else if(o===L){return e}return Reflect.get(t,o,d)},set(e,t,o,d){if(t==="headers"){a=o}else if(t==="request"){i=o}return Reflect.set(e,t,o,d)}})}else{return{...e,request:i,headers:a}}}function toPipelineResponse(e){const t=e;const i=t[L];const a=(0,P.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(i){i.headers=a;return i}else{return{...e,headers:a,request:(0,_.toPipelineRequest)(e.request)}}}0&&0},33850:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{HttpHeaders:()=>HttpHeaders,toHttpHeadersLike:()=>toHttpHeadersLike,toPipelineRequest:()=>toPipelineRequest,toWebResourceLike:()=>toWebResourceLike});e.exports=__toCommonJS(h);var P=i(20778);const _=Symbol("Original PipelineRequest");const L=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const i=e;const a=i[_];const o=(0,P.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(a){a.headers=o;return a}else{const i=(0,P.createPipelineRequest)({url:e.url,method:e.method,headers:o,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){i[L]=t.originalRequest}return i}}function toWebResourceLike(e,t){const i=t?.originalRequest??e;const a={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(a,{get(t,o,d){if(o===_){return e}else if(o==="clone"){return()=>toWebResourceLike(toPipelineRequest(a,{originalRequest:i}),{createProxy:true,originalRequest:i})}return Reflect.get(t,o,d)},set(t,i,a,o){if(i==="keepAlive"){e.disableKeepAlive=!a}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof i==="string"&&d.includes(i)){e[i]=a}return Reflect.set(t,i,a,o)}})}else{return a}}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?void 0: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 i=0;i<t.length;++i){e.push(t[i].name)}return e}headerValues(){const e=[];const t=this.headersArray();for(let i=0;i<t.length;++i){e.push(t[i].value)}return e}toJson(e={}){const t={};if(e.preserveCase){for(const e in this._headersMap){const i=this._headersMap[e];t[i.name]=i.value}}else{for(const e in this._headersMap){const i=this._headersMap[e];t[getHeaderKey(i.name)]=i.value}}return t}toString(){return JSON.stringify(this.toJson({preserveCase:true}))}clone(){const e={};for(const t in this._headersMap){const i=this._headersMap[t];e[i.name]=i.value}return new HttpHeaders(e)}}0&&0},93878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const a=i(30736);const o=i(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:i}=e;return i!==null&&i!==void 0?i: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:i,requestMethod:a,requestPath:o,resourceLocationConfig:d}=e;switch(a){case"PUT":{return o}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:o}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return i}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:i,requestPath:a,resourceLocationConfig:o}=e;const d=getOperationLocationHeader(t);const m=getAzureAsyncOperationHeader(t);const h=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:m});const P=getLocationHeader(t);const _=i===null||i===void 0?void 0:i.toLocaleUpperCase();if(h!==undefined){return{mode:"OperationLocation",operationLocation:h,resourceLocation:findResourceLocation({requestMethod:_,location:P,requestPath:a,resourceLocationConfig:o})}}else if(P!==undefined){return{mode:"ResourceLocation",operationLocation:P}}else if(_==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:i}=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(i);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:{o.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:i}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:i,statusCode:e.statusCode})}function getProvisioningState(e){var t,i;const{properties:a,provisioningState:o}=(t=e.body)!==null&&t!==void 0?t:{};const d=(i=a===null||a===void 0?void 0:a.provisioningState)!==null&&i!==void 0?i:o;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function 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}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){o.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){o.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const i=e.getTime();if(t<i){return i-t}return undefined}function getStatusFromInitialResponse(e){const{response:t,state:i,operationLocation:a}=e;function helper(){var e;const a=(e=i.config.metadata)===null||e===void 0?void 0:e["mode"];switch(a){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return getOperationStatus(t,i);default:return"running"}}const o=helper();return o==="running"&&a===undefined?"succeeded":o}t.getStatusFromInitialResponse=getStatusFromInitialResponse;async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:i,processResult:o,lro:d,setErrorAsResult:m}=e;return(0,a.initOperation)({init:async()=>{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:i});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:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:m})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var i;const a=(i=t.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var i;const a=(i=t.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){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: ${a}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},i){var a,o;return(a=e===null||e===void 0?void 0:e[i])!==null&&a!==void 0?a:(o=t.body)===null||o===void 0?void 0:o[i]}function getResourceLocation(e,t){const i=accessBodyProperty(e,"resourceLocation");if(i&&typeof i==="string"){t.config.resourceLocation=i}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:i,options:o,processResult:d,updateState:m,setDelay:h,state:P,setErrorAsResult:_}=e;return(0,a.pollOperation)({state:P,stateProxy:i,setDelay:h,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:m,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,i)=>t.sendPollRequest(e,i),setErrorAsResult:_})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const a=i(93878);const o=i(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:i,intervalInMs:d,processResult:m,restoreFrom:h,updateState:P,withOperationLocation:_,resolveOnUnsuccessful:L=false}=t||{};return(0,o.buildCreatePoller)({getStatusFromInitialResponse:a.getStatusFromInitialResponse,getStatusFromPollResponse:a.getOperationStatus,isOperationError:a.isOperationError,getOperationLocation:a.getOperationLocation,getResourceLocation:a.getResourceLocation,getPollingInterval:a.parseRetryAfter,getError:a.getErrorFromResponse,resolveOnUnsuccessful:L})({init:async()=>{const t=await e.sendInitialRequest();const o=(0,a.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:i});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:_,restoreFrom:h,updateState:P,processResult:m?({flatResponse:e},t)=>m(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const a=i(61860);var o=i(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return o.createHttpPoller}});a.__exportStar(i(55454),t);a.__exportStar(i(36272),t);a.__exportStar(i(82670),t)},55454:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var a=i(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return a.LroEngine}})},91607:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const a=i(54267);const o=i(55044);const d=i(36272);const m=i(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:i=o.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:h=false,isDone:P,lroResourceLocationConfig:_,processResult:L,updateState:j}=t||{};const U=d?(0,m.deserializeState)(d):{};const H=new a.GenericPollOperation(U,e,!h,_,L,j,P);super(H);this.resolveOnUnsuccessful=h;this.config={intervalInMs:i};H.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const a=i(93878);const o=i(50480);const 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,i,a,o,d,m){this.state=e;this.lro=t;this.setErrorAsResult=i;this.lroResourceLocationConfig=a;this.processResult=o;this.updateState=d;this.isDone=m}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const i=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,a.initHttpOperation)({lro:this.lro,stateProxy:i,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,a.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:i,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(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(){o.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;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()}}t.Poller=Poller},50480:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const a=i(50480);const o=i(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:i,isOperationError:a}=e;return e=>{if(a(e)){i.setError(t,e);i.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let i=e;if(i.slice(-1)!=="."){i=i+"."}return i+" "+t}function simplifyError(e){let t=e.message;let i=e.code;let a=e;while(a.innererror){a=a.innererror;i=a.code;t=appendReadableErrorMessage(t,a.message)}return{code:i,message:t}}function processOperationStatus(e){const{state:t,stateProxy:i,status:o,isDone:d,processResult:m,getError:h,response:P,setErrorAsResult:_}=e;switch(o){case"succeeded":{i.setSucceeded(t);break}case"failed":{const e=h===null||h===void 0?void 0:h(P);let o="";if(e){const{code:t,message:i}=simplifyError(e);o=`. ${t}. ${i}`}const d=`The long-running operation has failed${o}`;i.setError(t,new Error(d));i.setFailed(t);a.logger.warning(d);break}case"canceled":{i.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(P,t))||d===undefined&&["succeeded","canceled"].concat(_?[]:["failed"]).includes(o)){i.setResult(t,buildResult({response:P,state:t,processResult:m}))}}function buildResult(e){const{processResult:t,response:i,state:a}=e;return t?t(i,a):i}async function initOperation(e){const{init:t,stateProxy:i,processResult:o,getOperationStatus:d,withOperationLocation:m,setErrorAsResult:h}=e;const{operationLocation:P,resourceLocation:_,metadata:L,response:j}=await t();if(P)m===null||m===void 0?void 0:m(P,false);const U={metadata:L,operationLocation:P,resourceLocation:_};a.logger.verbose(`LRO: Operation description:`,U);const H=i.initState(U);const V=d({response:j,state:H,operationLocation:P});processOperationStatus({state:H,status:V,stateProxy:i,response:j,setErrorAsResult:h,processResult:o});return H}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:i,stateProxy:d,operationLocation:m,getOperationStatus:h,getResourceLocation:P,isOperationError:_,options:L}=e;const j=await t(m,L).catch(setStateError({state:i,stateProxy:d,isOperationError:_}));const U=h(j,i);a.logger.verbose(`LRO: Status:\n\tPolling from: ${i.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${o.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=P(j,i);if(e!==undefined){return{response:await t(e).catch(setStateError({state:i,stateProxy:d,isOperationError:_})),status:U}}}return{response:j,status:U}}async function pollOperation(e){const{poll:t,state:i,stateProxy:a,options:d,getOperationStatus:m,getResourceLocation:h,getOperationLocation:P,isOperationError:_,withOperationLocation:L,getPollingInterval:j,processResult:U,getError:H,updateState:V,setDelay:K,isDone:W,setErrorAsResult:J}=e;const{operationLocation:X}=i.config;if(X!==undefined){const{response:e,status:Y}=await pollOperationHelper({poll:t,getOperationStatus:m,state:i,stateProxy:a,operationLocation:X,getResourceLocation:h,isOperationError:_,options:d});processOperationStatus({status:Y,response:e,state:i,stateProxy:a,isDone:W,processResult:U,getError:H,setErrorAsResult:J});if(!o.terminalStates.includes(Y)){const t=j===null||j===void 0?void 0:j(e);if(t)K(t);const a=P===null||P===void 0?void 0:P(e,i);if(a!==undefined){const e=X!==a;i.config.operationLocation=a;L===null||L===void 0?void 0:L(a,e)}else L===null||L===void 0?void 0:L(X,false)}V===null||V===void 0?void 0:V(i,e)}}t.pollOperation=pollOperation},18835:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const a=i(30736);const o=i(55044);const d=i(87779);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 buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:i,getStatusFromPollResponse:m,isOperationError:h,getResourceLocation:P,getPollingInterval:_,getError:L,resolveOnUnsuccessful:j}=e;return async({init:e,poll:U},H)=>{const{processResult:V,updateState:K,withOperationLocation:W,intervalInMs:J=o.POLL_INTERVAL_IN_MS,restoreFrom:X}=H||{};const Y=createStateProxy();const Q=W?(()=>{let e=false;return(t,i)=>{if(i)W(t);else if(!e)W(t);e=true}})():undefined;const Z=X?(0,a.deserializeState)(X):await(0,a.initOperation)({init:e,stateProxy:Y,processResult:V,getOperationStatus:i,withOperationLocation:Q,setErrorAsResult:!j});let ee;const te=new AbortController;const ne=new Map;const handleProgressEvents=async()=>ne.forEach((e=>e(Z)));const re="Operation was canceled";let ie=J;const ae={getOperationState:()=>Z,getResult:()=>Z.result,isDone:()=>["succeeded","failed","canceled"].includes(Z.status),isStopped:()=>ee===undefined,stopPolling:()=>{te.abort()},toString:()=>JSON.stringify({state:Z}),onProgress:e=>{const t=Symbol();ne.set(t,e);return()=>ne.delete(t)},pollUntilDone:e=>ee!==null&&ee!==void 0?ee:ee=(async()=>{const{abortSignal:t}=e||{};function abortListener(){te.abort()}const i=te.signal;if(t===null||t===void 0?void 0:t.aborted){te.abort()}else if(!i.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ae.isDone()){await ae.poll({abortSignal:i});while(!ae.isDone()){await(0,d.delay)(ie,{abortSignal:i});await ae.poll({abortSignal:i})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(j){return ae.getResult()}else{switch(Z.status){case"succeeded":return ae.getResult();case"canceled":throw new Error(re);case"failed":throw Z.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{ee=undefined})),async poll(e){if(j){if(ae.isDone())return}else{switch(Z.status){case"succeeded":return;case"canceled":throw new Error(re);case"failed":throw Z.error}}await(0,a.pollOperation)({poll:U,state:Z,stateProxy:Y,getOperationLocation:t,isOperationError:h,withOperationLocation:Q,getPollingInterval:_,getOperationStatus:m,getResourceLocation:P,processResult:V,getError:L,updateState:K,options:e,setDelay:e=>{ie=e},setErrorAsResult:!j});await handleProgressEvents();if(!j){switch(Z.status){case"canceled":throw new Error(re);case"failed":throw Z.error}}}};return ae}}t.buildCreatePoller=buildCreatePoller},66427:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{DEFAULT_RETRY_POLICY_COUNT:()=>h,SDK_VERSION:()=>m});e.exports=__toCommonJS(d);const m="1.22.3";const h=3;0&&0},90862:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createPipelineFromOptions:()=>createPipelineFromOptions});e.exports=__toCommonJS(h);var P=i(53253);var _=i(29590);var L=i(64087);var j=i(32799);var U=i(45807);var H=i(39295);var V=i(48170);var K=i(75497);var W=i(87779);var J=i(32815);var X=i(95686);var Y=i(18554);var Q=i(75798);var Z=i(93237);var ee=i(37466);function createPipelineFromOptions(e){const t=(0,_.createEmptyPipeline)();if(W.isNodeLike){if(e.agent){t.addPolicy((0,Y.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,Q.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,J.proxyPolicy)(e.proxyOptions));t.addPolicy((0,H.decompressResponsePolicy)())}t.addPolicy((0,ee.wrapAbortSignalLikePolicy)());t.addPolicy((0,K.formDataPolicy)(),{beforePolicies:[U.multipartPolicyName]});t.addPolicy((0,j.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,X.setClientRequestIdPolicy)(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy((0,U.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,V.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});t.addPolicy((0,Z.tracingPolicy)({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(W.isNodeLike){t.addPolicy((0,L.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,P.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}0&&0},7960:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createDefaultHttpClient:()=>createDefaultHttpClient});e.exports=__toCommonJS(h);var P=i(41958);var _=i(91297);function createDefaultHttpClient(){const e=(0,P.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:i,cleanup:a}=t.abortSignal?(0,_.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=i;return await e.sendRequest(t)}finally{a?.()}}}}0&&0},192:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createHttpHeaders:()=>createHttpHeaders});e.exports=__toCommonJS(h);var P=i(41958);function createHttpHeaders(e){return(0,P.createHttpHeaders)(e)}0&&0},20778:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{RestError:()=>H.RestError,agentPolicy:()=>ue.agentPolicy,agentPolicyName:()=>ue.agentPolicyName,auxiliaryAuthenticationHeaderPolicy:()=>le.auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>le.auxiliaryAuthenticationHeaderPolicyName,bearerTokenAuthenticationPolicy:()=>se.bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>se.bearerTokenAuthenticationPolicyName,createDefaultHttpClient:()=>L.createDefaultHttpClient,createEmptyPipeline:()=>P.createEmptyPipeline,createFile:()=>de.createFile,createFileFromStream:()=>de.createFileFromStream,createHttpHeaders:()=>j.createHttpHeaders,createPipelineFromOptions:()=>_.createPipelineFromOptions,createPipelineRequest:()=>U.createPipelineRequest,decompressResponsePolicy:()=>V.decompressResponsePolicy,decompressResponsePolicyName:()=>V.decompressResponsePolicyName,defaultRetryPolicy:()=>re.defaultRetryPolicy,exponentialRetryPolicy:()=>K.exponentialRetryPolicy,exponentialRetryPolicyName:()=>K.exponentialRetryPolicyName,formDataPolicy:()=>oe.formDataPolicy,formDataPolicyName:()=>oe.formDataPolicyName,getDefaultProxySettings:()=>Y.getDefaultProxySettings,isRestError:()=>H.isRestError,logPolicy:()=>J.logPolicy,logPolicyName:()=>J.logPolicyName,multipartPolicy:()=>X.multipartPolicy,multipartPolicyName:()=>X.multipartPolicyName,ndJsonPolicy:()=>ce.ndJsonPolicy,ndJsonPolicyName:()=>ce.ndJsonPolicyName,proxyPolicy:()=>Y.proxyPolicy,proxyPolicyName:()=>Y.proxyPolicyName,redirectPolicy:()=>Q.redirectPolicy,redirectPolicyName:()=>Q.redirectPolicyName,retryPolicy:()=>te.retryPolicy,setClientRequestIdPolicy:()=>W.setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>W.setClientRequestIdPolicyName,systemErrorRetryPolicy:()=>Z.systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>Z.systemErrorRetryPolicyName,throttlingRetryPolicy:()=>ee.throttlingRetryPolicy,throttlingRetryPolicyName:()=>ee.throttlingRetryPolicyName,tlsPolicy:()=>ae.tlsPolicy,tlsPolicyName:()=>ae.tlsPolicyName,tracingPolicy:()=>ne.tracingPolicy,tracingPolicyName:()=>ne.tracingPolicyName,userAgentPolicy:()=>ie.userAgentPolicy,userAgentPolicyName:()=>ie.userAgentPolicyName});e.exports=__toCommonJS(h);var P=i(29590);var _=i(90862);var L=i(7960);var j=i(192);var U=i(95709);var H=i(8666);var V=i(39295);var K=i(16708);var W=i(95686);var J=i(53253);var X=i(45807);var Y=i(32815);var Q=i(64087);var Z=i(96518);var ee=i(97540);var te=i(56085);var ne=i(93237);var re=i(48170);var ie=i(32799);var ae=i(75798);var oe=i(75497);var se=i(26925);var ce=i(36827);var le=i(42262);var ue=i(18554);var de=i(97073);0&&0},80544:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{logger:()=>_});e.exports=__toCommonJS(h);var P=i(26515);const _=(0,P.createClientLogger)("core-rest-pipeline");0&&0},29590:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createEmptyPipeline:()=>createEmptyPipeline});e.exports=__toCommonJS(h);var P=i(41958);function createEmptyPipeline(){return(0,P.createEmptyPipeline)()}0&&0},95709:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createPipelineRequest:()=>createPipelineRequest});e.exports=__toCommonJS(h);var P=i(41958);function createPipelineRequest(e){return(0,P.createPipelineRequest)(e)}0&&0},18554:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{agentPolicy:()=>agentPolicy,agentPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.agentPolicyName;function agentPolicy(e){return(0,P.agentPolicy)(e)}0&&0},42262:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{auxiliaryAuthenticationHeaderPolicy:()=>auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(39202);var _=i(80544);const L="auxiliaryAuthenticationHeaderPolicy";const j="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:i,request:a}=e;const o={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions};return(await i(t,o))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:i}=e;const a=e.logger||_.logger;const o=new WeakMap;return{name:L,async sendRequest(e,d){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){a.info(`${L} header will not be set due to empty credentials.`);return d(e)}const m=[];for(const d of t){let t=o.get(d);if(!t){t=(0,P.createTokenCycler)(d);o.set(d,t)}m.push(sendAuthorizeRequest({scopes:Array.isArray(i)?i:[i],request:e,getAccessToken:t,logger:a}))}const h=(await Promise.all(m)).filter((e=>Boolean(e)));if(h.length===0){a.warning(`None of the auxiliary tokens are valid. ${j} header will not be set.`);return d(e)}e.headers.set(j,h.map((e=>`Bearer ${e}`)).join(", "));return d(e)}}}0&&0},26925:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{bearerTokenAuthenticationPolicy:()=>bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>j,parseChallenges:()=>parseChallenges});e.exports=__toCommonJS(h);var P=i(39202);var _=i(80544);var L=i(8666);const j="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),void 0]}catch(e){if((0,L.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:i,request:a}=e;const o={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions,enableCae:true};const d=await i(t,o);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:i}=e;const a=await e.getAccessToken(i,{enableCae:true,claims:t});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:i,challengeCallbacks:a}=e;const o=e.logger||_.logger;const d={authorizeRequest:a?.authorizeRequest?.bind(a)??defaultAuthorizeRequest,authorizeRequestOnChallenge:a?.authorizeRequestOnChallenge?.bind(a)};const m=t?(0,P.createTokenCycler)(t):()=>Promise.resolve(null);return{name:j,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 d.authorizeRequest({scopes:Array.isArray(i)?i:[i],request:e,getAccessToken:m,logger:o});let a;let h;let P;[a,h]=await trySendRequest(e,t);if(isChallengeResponse(a)){let _=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(_){let d;try{d=atob(_)}catch(e){o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${_}`);return a}P=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(i)?i:[i],response:a,request:e,getAccessToken:m,logger:o},d);if(P){[a,h]=await trySendRequest(e,t)}}else if(d.authorizeRequestOnChallenge){P=await d.authorizeRequestOnChallenge({scopes:Array.isArray(i)?i:[i],request:e,response:a,getAccessToken:m,logger:o});if(P){[a,h]=await trySendRequest(e,t)}if(isChallengeResponse(a)){_=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(_){let d;try{d=atob(_)}catch(e){o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${_}`);return a}P=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(i)?i:[i],response:a,request:e,getAccessToken:m,logger:o},d);if(P){[a,h]=await trySendRequest(e,t)}}}}}if(h){throw h}else{return a}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const i=/(\w+)="([^"]*)"/g;const a=[];let o;while((o=t.exec(e))!==null){const e=o[1];const t=o[2];const d={};let m;while((m=i.exec(t))!==null){d[m[1]]=m[2]}a.push({scheme:e,params:d})}return a}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}0&&0},39295:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{decompressResponsePolicy:()=>decompressResponsePolicy,decompressResponsePolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,P.decompressResponsePolicy)()}0&&0},48170:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{defaultRetryPolicy:()=>defaultRetryPolicy,defaultRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,P.defaultRetryPolicy)(e)}0&&0},16708:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{exponentialRetryPolicy:()=>exponentialRetryPolicy,exponentialRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,P.exponentialRetryPolicy)(e)}0&&0},75497:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{formDataPolicy:()=>formDataPolicy,formDataPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.formDataPolicyName;function formDataPolicy(){return(0,P.formDataPolicy)()}0&&0},53253:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{logPolicy:()=>logPolicy,logPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(80544);var _=i(44960);const L=_.logPolicyName;function logPolicy(e={}){return(0,_.logPolicy)({logger:P.logger.info,...e})}0&&0},45807:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{multipartPolicy:()=>multipartPolicy,multipartPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(44960);var _=i(97073);const L=P.multipartPolicyName;function multipartPolicy(){const e=(0,P.multipartPolicy)();return{name:L,sendRequest:async(t,i)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,_.hasRawContent)(e.body)){e.body=(0,_.getRawContent)(e.body)}}}return e.sendRequest(t,i)}}}0&&0},36827:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{ndJsonPolicy:()=>ndJsonPolicy,ndJsonPolicyName:()=>m});e.exports=__toCommonJS(d);const m="ndJsonPolicy";function ndJsonPolicy(){return{name:m,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}0&&0},32815:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{getDefaultProxySettings:()=>getDefaultProxySettings,proxyPolicy:()=>proxyPolicy,proxyPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.proxyPolicyName;function getDefaultProxySettings(e){return(0,P.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,P.proxyPolicy)(e,t)}0&&0},64087:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{redirectPolicy:()=>redirectPolicy,redirectPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.redirectPolicyName;function redirectPolicy(e={}){return(0,P.redirectPolicy)(e)}0&&0},56085:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{retryPolicy:()=>retryPolicy});e.exports=__toCommonJS(h);var P=i(26515);var _=i(66427);var L=i(44960);const j=(0,P.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:_.DEFAULT_RETRY_POLICY_COUNT}){return(0,L.retryPolicy)(e,{logger:j,...t})}0&&0},95686:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{setClientRequestIdPolicy:()=>setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>m});e.exports=__toCommonJS(d);const m="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:m,async sendRequest(t,i){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return i(t)}}}0&&0},96518:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{systemErrorRetryPolicy:()=>systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,P.systemErrorRetryPolicy)(e)}0&&0},97540:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{throttlingRetryPolicy:()=>throttlingRetryPolicy,throttlingRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,P.throttlingRetryPolicy)(e)}0&&0},75798:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{tlsPolicy:()=>tlsPolicy,tlsPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.tlsPolicyName;function tlsPolicy(e){return(0,P.tlsPolicy)(e)}0&&0},93237:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{tracingPolicy:()=>tracingPolicy,tracingPolicyName:()=>K});e.exports=__toCommonJS(h);var P=i(20623);var _=i(66427);var L=i(28431);var j=i(80544);var U=i(87779);var H=i(8666);var V=i(95750);const K="tracingPolicy";function tracingPolicy(e={}){const t=(0,L.getUserAgentValue)(e.userAgentPrefix);const i=new V.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const a=tryCreateTracingClient();return{name:K,async sendRequest(e,o){if(!a){return o(e)}const d=await t;const m={"http.url":i.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":d,requestId:e.requestId};if(d){m["http.user_agent"]=d}const{span:h,tracingContext:P}=tryCreateSpan(a,e,m)??{};if(!h||!P){return o(e)}try{const t=await a.withContext(P,o,e);tryProcessResponse(h,t);return t}catch(e){tryProcessError(h,e);throw e}}}}function tryCreateTracingClient(){try{return(0,P.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:_.SDK_VERSION})}catch(e){j.logger.warning(`Error when creating the TracingClient: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryCreateSpan(e,t,i){try{const{span:a,updatedOptions:o}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:i});if(!a.isRecording()){a.end();return void 0}const d=e.createRequestHeaders(o.tracingOptions.tracingContext);for(const[e,i]of Object.entries(d)){t.headers.set(e,i)}return{span:a,tracingContext:o.tracingOptions.tracingContext}}catch(e){j.logger.warning(`Skipping creating a tracing span due to an error: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,U.isError)(t)?t:void 0});if((0,H.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){j.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const i=t.headers.get("x-ms-request-id");if(i){e.setAttribute("serviceRequestId",i)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){j.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}0&&0},32799:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{userAgentPolicy:()=>userAgentPolicy,userAgentPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(28431);const _=(0,P.getUserAgentHeaderName)();const L="userAgentPolicy";function userAgentPolicy(e={}){const t=(0,P.getUserAgentValue)(e.userAgentPrefix);return{name:L,async sendRequest(e,i){if(!e.headers.has(_)){e.headers.set(_,await t)}return i(e)}}}0&&0},37466:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{wrapAbortSignalLikePolicy:()=>wrapAbortSignalLikePolicy,wrapAbortSignalLikePolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(91297);const _="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:_,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:i,cleanup:a}=(0,P.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=i;try{return await t(e)}finally{a?.()}}}}0&&0},8666:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{RestError:()=>_,isRestError:()=>isRestError});e.exports=__toCommonJS(h);var P=i(41958);const _=P.RestError;function isRestError(e){return(0,P.isRestError)(e)}0&&0},97073:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createFile:()=>createFile,createFileFromStream:()=>createFileFromStream,getRawContent:()=>getRawContent,hasRawContent:()=>hasRawContent});e.exports=__toCommonJS(h);var P=i(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const _={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 L=Symbol("rawContent");function hasRawContent(e){return typeof e[L]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[L]()}else{return e}}function createFileFromStream(e,t,i={}){return{..._,type:i.type??"",lastModified:i.lastModified??(new Date).getTime(),webkitRelativePath:i.webkitRelativePath??"",size:i.size??-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[L]:e}}function createFile(e,t,i={}){if(P.isNodeLike){return{..._,type:i.type??"",lastModified:i.lastModified??(new Date).getTime(),webkitRelativePath:i.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[L]:()=>e}}else{return new File([toArrayBuffer(e)],t,i)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}0&&0},39202:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{DEFAULT_CYCLER_OPTIONS:()=>_,createTokenCycler:()=>createTokenCycler});e.exports=__toCommonJS(h);var P=i(87779);const _={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,i){async function tryGetAccessToken(){if(Date.now()<i){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let a=await tryGetAccessToken();while(a===null){await(0,P.delay)(t);a=await tryGetAccessToken()}return a}function createTokenCycler(e,t){let i=null;let a=null;let o;const d={..._,...t};const m={get isRefreshing(){return i!==null},get shouldRefresh(){if(m.isRefreshing){return false}if(a?.refreshAfterTimestamp&&a.refreshAfterTimestamp<Date.now()){return true}return(a?.expiresOnTimestamp??0)-d.refreshWindowInMs<Date.now()},get mustRefresh(){return a===null||a.expiresOnTimestamp-d.forcedRefreshWindowInMs<Date.now()}};function refresh(t,h){if(!m.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,h);i=beginRefresh(tryGetAccessToken,d.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then((e=>{i=null;a=e;o=h.tenantId;return a})).catch((e=>{i=null;a=null;o=void 0;throw e}))}return i}return async(e,t)=>{const i=Boolean(t.claims);const d=o!==t.tenantId;if(i){a=null}const h=d||i||m.mustRefresh;if(h){return refresh(e,t)}if(m.shouldRefresh){refresh(e,t)}return a}}0&&0},28431:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{getUserAgentHeaderName:()=>getUserAgentHeaderName,getUserAgentValue:()=>getUserAgentValue});e.exports=__toCommonJS(h);var P=i(31848);var _=i(66427);function getUserAgentString(e){const t=[];for(const[i,a]of e){const e=a?`${i}/${a}`:i;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,P.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",_.SDK_VERSION);await(0,P.setPlatformSpecificData)(t);const i=getUserAgentString(t);const a=e?`${e} ${i}`:i;return a}0&&0},31848:(e,t,i)=>{var a=Object.create;var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var h=Object.getPrototypeOf;var P=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)o(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of m(t))if(!P.call(e,h)&&h!==i)o(e,h,{get:()=>t[h],enumerable:!(a=d(t,h))||a.enumerable})}return e};var __toESM=(e,t,i)=>(i=e!=null?a(h(e)):{},__copyProps(t||!e||!e.__esModule?o(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(o({},"__esModule",{value:true}),e);var _={};__export(_,{getHeaderName:()=>getHeaderName,setPlatformSpecificData:()=>setPlatformSpecificData});e.exports=__toCommonJS(_);var L=__toESM(i(48161));var j=__toESM(i(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(j.default&&j.default.versions){const t=`${L.default.type()} ${L.default.release()}; ${L.default.arch()}`;const i=j.default.versions;if(i.bun){e.set("Bun",`${i.bun} (${t})`)}else if(i.deno){e.set("Deno",`${i.deno} (${t})`)}else if(i.node){e.set("Node",`${i.node} (${t})`)}}}0&&0},91297:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{wrapAbortSignalLike:()=>wrapAbortSignalLike});e.exports=__toCommonJS(d);function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let i=true;function cleanup(){if(i){e.removeEventListener("abort",listener);i=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}0&&0},20623:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var a=i(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return a.useInstrumenter}});var o=i(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return o.createTracingClient}})},48729:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const a=i(79186);const o=i(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,a.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...i){return t(...i)}}}function useInstrumenter(e){o.state.instrumenterImplementation=e}function getInstrumenter(){if(!o.state.instrumenterImplementation){o.state.instrumenterImplementation=createDefaultInstrumenter()}return o.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const a=i(48729);const o=i(79186);function createTracingClient(e){const{namespace:t,packageName:i,packageVersion:d}=e;function startSpan(e,m,h){const P=(0,a.getInstrumenter)().startSpan(e,{...h,packageName:i,packageVersion:d,tracingContext:m?.tracingOptions?.tracingContext});let _=P.tracingContext;const L=P.span;if(!_.getValue(o.knownContextKeys.namespace)){_=_.setValue(o.knownContextKeys.namespace,t)}L.setAttribute("az.namespace",_.getValue(o.knownContextKeys.namespace));const j=Object.assign({},m,{tracingOptions:{...m?.tracingOptions,tracingContext:_}});return{span:L,updatedOptions:j}}async function withSpan(e,t,i,a){const{span:o,updatedOptions:d}=startSpan(e,t,a);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(i(d,o))));o.setStatus({status:"success"});return e}catch(e){o.setStatus({status:"error",error:e});throw e}finally{o.end()}}function withContext(e,t,...i){return(0,a.getInstrumenter)().withContext(e,t,...i)}function parseTraceparentHeader(e){return(0,a.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,a.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let i=new TracingContextImpl(e.parentContext);if(e.span){i=i.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){i=i.setValue(t.knownContextKeys.namespace,e.namespace)}return i}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const i=new TracingContextImpl(this);i._contextMap.set(e,t);return i}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){const i=new AbortController;function abortHandler(){i.abort()}t?.abortSignal?.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:i.signal}))))}finally{i.abort();t?.abortSignal?.removeEventListener("abort",abortHandler)}}},63128:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const a=i(83134);function createAbortablePromise(e,t){const{cleanupBeforeAbort:i,abortSignal:o,abortErrorMsg:d}=t??{};return new Promise(((t,m)=>{function rejectOnAbort(){m(new a.AbortError(d??"The operation was aborted."))}function removeListeners(){o?.removeEventListener("abort",onAbort)}function onAbort(){i?.();removeListeners();rejectOnAbort()}if(o?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();m(e)}))}catch(e){m(e)}o?.addEventListener("abort",onAbort)}))}},90636:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const a=i(63128);const o=i(95750);const d="The delay was aborted.";function delay(e,t){let i;const{abortSignal:o,abortErrorMsg:m}=t??{};return(0,a.createAbortablePromise)((t=>{i=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(i),abortSignal:o,abortErrorMsg:m??d})}function calculateRetryDelay(e,t){const i=t.retryDelayInMs*Math.pow(2,e);const a=Math.min(t.maxRetryDelayInMs,i);const d=a/2+(0,o.getRandomIntegerInclusive)(0,a/2);return{retryAfterInMs:d}}},99945:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const a=i(95750);function getErrorMessage(e){if((0,a.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}`}}},87779:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const a=i(61860);const o=a.__importStar(i(95750));var d=i(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var m=i(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return m.createAbortablePromise}});var h=i(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return h.delay}});var P=i(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return P.getErrorMessage}});var _=i(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return _.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return _.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return _.objectHasProperty}});function calculateRetryDelay(e,t){return o.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return o.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,i){return o.computeSha256Hmac(e,t,i)}function getRandomIntegerInclusive(e,t){return o.getRandomIntegerInclusive(e,t)}function isError(e){return o.isError(e)}function isObject(e){return o.isObject(e)}function randomUUID(){return o.randomUUID()}t.isBrowser=o.isBrowser;t.isBun=o.isBun;t.isDeno=o.isDeno;t.isNode=o.isNodeLike;t.isNodeLike=o.isNodeLike;t.isNodeRuntime=o.isNodeRuntime;t.isReactNative=o.isReactNative;t.isWebWorker=o.isWebWorker;function uint8ArrayToString(e,t){return o.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return o.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const i of t){if(!objectHasProperty(e,i)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},78756:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{XML_ATTRKEY:()=>_.XML_ATTRKEY,XML_CHARKEY:()=>_.XML_CHARKEY,parseXML:()=>P.parseXML,stringifyXML:()=>P.stringifyXML});e.exports=__toCommonJS(h);var P=i(48133);var _=i(93406);0&&0},93406:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{XML_ATTRKEY:()=>m,XML_CHARKEY:()=>h});e.exports=__toCommonJS(d);const m="$";const h="_";0&&0},48133:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{parseXML:()=>parseXML,stringifyXML:()=>stringifyXML});e.exports=__toCommonJS(h);var P=i(50591);var _=i(93406);function getCommonOptions(e){return{attributesGroupName:_.XML_ATTRKEY,textNodeName:e.xmlCharKey??_.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){return{...getCommonOptions(e),attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:e.rootName??"root",cdataPropName:e.cdataPropName??"__cdata"}}function getParserOptions(e={}){return{...getCommonOptions(e),parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false}}function stringifyXML(e,t={}){const i=getSerializerOptions(t);const a=new P.XMLBuilder(i);const o={[i.rootNodeName]:e};const d=a.build(o);return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${d}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const i=P.XMLValidator.validate(e);if(i!==true){throw i}const a=new P.XMLParser(getParserOptions(t));const o=a.parse(e);if(o["?xml"]){delete o["?xml"]}if(!t.includeRoot){for(const e of Object.keys(o)){const t=o[e];return typeof t==="object"?{...t}:t}}return o}0&&0},26515:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const a=i(82490);const o=(0,a.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=o.logger;function setLogLevel(e){o.setLogLevel(e)}function getLogLevel(){return o.getLogLevel()}function createClientLogger(e){return o.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const a=i(20778);const o=i(61584);const d=i(27323);const m=i(72995);const h=i(46370);const P=": ";const _=" ";const L=-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}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,m.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const i=t.length;if(i!==this.subRequests.size&&i!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const j=new Array(i);let U=0;let H=0;for(let e=0;e<i;e++){const i=t[e];const m={};m.headers=(0,o.toHttpHeadersLike)((0,a.createHttpHeaders)());const V=i.split(`${d.HTTP_LINE_ENDING}`);let K=false;let W=false;let J=false;let X=L;for(const e of V){if(!K){if(e.startsWith(d.HeaderConstants.CONTENT_ID)){X=parseInt(e.split(P)[1])}if(e.startsWith(d.HTTP_VERSION_1_1)){K=true;const t=e.split(_);m.status=parseInt(t[1]);m.statusMessage=t.slice(2).join(_)}continue}if(e.trim()===""){if(!W){W=true}continue}if(!W){if(e.indexOf(P)===-1){throw new Error(`Invalid state: find non-empty line '${e}' without HTTP header delimiter '${P}'.`)}const t=e.split(P);m.headers.set(t[0],t[1]);if(t[0]===d.HeaderConstants.X_MS_ERROR_CODE){m.errorCode=t[1];J=true}}else{if(!m.bodyAsText){m.bodyAsText=""}m.bodyAsText+=e}}if(X!==L&&Number.isInteger(X)&&X>=0&&X<this.subRequests.size&&j[X]===undefined){m._request=this.subRequests.get(X);j[X]=m}else{h.logger.error(`subResponses[${e}] is dropped as the Content-ID is not found or invalid, Content-ID: ${X}`)}if(J){H++}else{U++}}return{subResponses:j,subResponsesSucceededCount:U,subResponsesFailedCount:H}}}t.BatchResponseParser=BatchResponseParser},72995:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const a=i(53563);const o=i(27323);async function getBodyAsText(e){let t=Buffer.alloc(o.BATCH_MAX_PAYLOAD_IN_BYTES);const i=await(0,a.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,i);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const a=i(87779);const o=i(50417);const d=i(20778);const m=i(87779);const h=i(51382);const P=i(90372);const _=i(58913);const L=i(25984);const j=i(47764);const U=i(78756);const H=i(27323);const V=i(53952);const K=i(60160);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,i){let a;let d;if(typeof e==="string"&&(m.isNodeLike&&t instanceof h.StorageSharedKeyCredential||t instanceof h.AnonymousCredential||(0,o.isTokenCredential)(t))){a=e;d=t}else if(e instanceof P.BlobClient){a=e.url;d=e.credential;i=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}return V.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",i,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:a,credential:d},(async()=>{await new P.BlobClient(a,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,i,a){let d;let _;let L;if(typeof e==="string"&&(m.isNodeLike&&t instanceof h.StorageSharedKeyCredential||t instanceof h.AnonymousCredential||(0,o.isTokenCredential)(t))){d=e;_=t;L=i}else if(e instanceof P.BlobClient){d=e.url;_=e.credential;L=t;a=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}return V.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",a,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:_},(async()=>{await new P.BlobClient(d,this.batchRequest.createPipeline(_)).setAccessTier(L,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,a.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${H.HTTP_LINE_ENDING}${H.HeaderConstants.CONTENT_TYPE}: application/http${H.HTTP_LINE_ENDING}${H.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,K.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,o.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:H.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:K.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof h.StorageSharedKeyCredential){t.addPolicy((0,h.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const i=new L.Pipeline([]);i._credential=e;i._corePipeline=t;return i}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${H.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,j.getURLPathAndQuery)(e.url)} ${H.HTTP_VERSION_1_1}${H.HTTP_LINE_ENDING}`].join(H.HTTP_LINE_ENDING);for(const[t,i]of e.headers){this.body+=`${t}: ${i}${H.HTTP_LINE_ENDING}`}this.body+=H.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=H.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${H.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,j.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}${H.HTTP_LINE_ENDING}`}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:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let i="";for(const[t]of e.headers){if((0,j.iEqual)(t,H.HeaderConstants.X_MS_VERSION)){i=t}}if(i!==""){e.headers.delete(i)}return t(e)}}}},12094:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const a=i(41564);const o=i(72995);const d=i(95561);const m=i(53952);const h=i(51382);const P=i(53789);const _=i(25984);const L=i(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,i){let a;if((0,_.isPipelineLike)(t)){a=t}else if(!t){a=(0,_.newPipeline)(new h.AnonymousCredential,i)}else{a=(0,_.newPipeline)(t,i)}const o=new P.StorageContextClient(e,(0,_.getCoreClientOptions)(a));const d=(0,L.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=o.container}else{this.serviceOrContainerContext=o.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,i){const a=new d.BlobBatch;for(const o of e){if(typeof o==="string"){await a.deleteBlob(o,t,i)}else{await a.deleteBlob(o,t)}}return this.submitBatch(a)}async setBlobsAccessTier(e,t,i,a){const o=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await o.setBlobAccessTier(d,t,i,a)}else{await o.setBlobAccessTier(d,t,i)}}return this.submitBatch(o)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return m.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const i=e.getHttpRequestBody();const d=(0,L.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,o.utf8ByteLength)(i),e.getMultiPartContentType(),i,{...t}));const m=new a.BatchResponseParser(d,e.getSubRequests());const h=await m.parseBatchResponse();const P={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:h.subResponses,subResponsesSucceededCount:h.subResponsesSucceededCount,subResponsesFailedCount:h.subResponsesFailedCount};return P}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const a=i(87779);const o=i(98684);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 a.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,i,a,d={}){this.originalResponse=e;this.blobDownloadStream=new o.RetriableReadableStream(this.originalResponse.readableStreamBody,t,i,a,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const a=i(87779);const o=i(27323);const d=i(53952);const m=i(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const i=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=i.container}else{this._isContainer=false;this._containerOrBlobOperation=i.blob}if(!t){t=(0,a.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async i=>(0,m.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async i=>{const a=(0,m.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}));this._leaseId=e;return a}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,m.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!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.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!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async i=>{const a={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions};return(0,m.assertResponse)(await this._containerOrBlobOperation.breakLease(a))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const a=i(87779);const o=i(36426);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 a.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new o.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const a=i(50417);const o=i(20778);const d=i(87779);const m=i(25984);const h=i(81884);const P=i(47764);const _=i(51382);const L=i(47764);const j=i(53952);const U=i(12094);const H=i(73542);const V=i(6358);const K=i(85238);const W=i(46940);class BlobServiceClient extends H.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const i=(0,P.extractConnectionStringParts)(e);if(i.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(i.accountName,i.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,o.getDefaultProxySettings)(i.proxyUri)}const a=(0,m.newPipeline)(e,t);return new BlobServiceClient(i.url,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(i.kind==="SASConnString"){const e=(0,m.newPipeline)(new _.AnonymousCredential,t);return new BlobServiceClient(i.url+"?"+i.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,i){let o;if((0,m.isPipelineLike)(t)){o=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,a.isTokenCredential)(t)){o=(0,m.newPipeline)(t,i)}else{o=(0,m.newPipeline)(new _.AnonymousCredential,i)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new h.ContainerClient((0,P.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const i=this.getContainerClient(e);const a=await i.create(t);return{containerClient:i,containerCreateResponse:a}}))}async deleteContainer(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const i=this.getContainerClient(e);return i.delete(t)}))}async undeleteContainer(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-undeleteContainer",i,(async a=>{const o=this.getContainerClient(i.destinationContainerName||e);const d=o["storageClientContext"].container;const m=(0,L.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:a.tracingOptions}));return{containerClient:o,containerUndeleteResponse:m}}))}async getProperties(e={}){return j.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async i=>(0,L.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:i.tracingOptions}))))}async getStatistics(e={}){return j.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return j.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async i=>(0,L.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:i.tracingOptions}))))}async findBlobsByTagsSegment(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",i,(async a=>{const o=(0,L.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:i.abortSignal,where:e,marker:t,maxPageSize:i.maxPageSize,tracingOptions:a.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,P.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.findBlobsByTagsSegment(e,t,i);a.blobs=a.blobs||[];t=a.continuationToken;yield a}while(t)}}async*findBlobsByTagsItems(e,t={}){let i;for await(const a of this.findBlobsByTagsSegments(e,i,t)){yield*a.blobs}}findBlobsByTags(e,t={}){const i={...t};const a=this.findBlobsByTagsItems(e,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async*listSegments(e,t={}){let i;if(!!e||e===undefined){do{i=await this.listContainersSegment(e,t);i.containerItems=i.containerItems||[];e=i.continuationToken;yield await i}while(e)}}async*listItems(e={}){let t;for await(const i of this.listSegments(t,e)){yield*i.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 i={...e,...t.length>0?{include:t}:{}};const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...i})}}async getUserDelegationKey(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",i,(async a=>{const o=(0,L.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,L.truncatedISO8061Date)(e,false),expiresOn:(0,L.truncatedISO8061Date)(t,false)},{abortSignal:i.abortSignal,tracingOptions:a.tracingOptions}));const d={signedObjectId:o.signedObjectId,signedTenantId:o.signedTenantId,signedStartsOn:new Date(o.signedStartsOn),signedExpiresOn:new Date(o.signedExpiresOn),signedService:o.signedService,signedVersion:o.signedVersion,value:o.value};const m={_response:o._response,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,date:o.date,errorCode:o.errorCode,...d};return m}))}getBlobBatchClient(){return new U.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=V.AccountSASPermissions.parse("r"),i="sco",a={}){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 o=(0,K.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:i,services:W.AccountSASServices.parse("b").toString(),...a},this.credential).toString();return(0,P.appendToURLQuery)(this.url,o)}generateSasStringToSign(e,t=V.AccountSASPermissions.parse("r"),i="sco",a={}){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(0,K.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:i,services:W.AccountSASServices.parse("b").toString(),...a},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const a=i(20778);const o=i(50417);const d=i(87779);const m=i(87779);const h=i(4894);const P=i(95602);const _=i(51382);const L=i(58560);const j=i(95302);const U=i(25984);const H=i(73145);const V=i(52045);const K=i(73542);const W=i(81582);const J=i(51382);const X=i(27323);const Y=i(53952);const Q=i(47764);const Z=i(53563);const ee=i(656);const te=i(23276);class BlobClient extends K.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,i,m){m=m||{};let h;let P;if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;if(i&&typeof i!=="string"){m=i}h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,Q.getURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,Q.getURLParameter)(this.url,X.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.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,i={}){i.conditions=i.conditions||{};i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-download",i,(async a=>{const o=(0,Q.assertResponse)(await this.blobContext.download({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:i.onProgress},range:e===0&&!t?undefined:(0,V.rangeToString)({offset:e,count:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey,tracingOptions:a.tracingOptions}));const m={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Q.parseObjectReplicationRecord)(o.objectReplicationRules)};if(!d.isNodeLike){return m}if(i.maxRetryRequests===undefined||i.maxRetryRequests<0){i.maxRetryRequests=X.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(o.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!o.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new h.BlobDownloadResponse(m,(async t=>{const a={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||o.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({count:e+o.contentLength-t,offset:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey};return(await this.blobContext.download({abortSignal:i.abortSignal,...a})).readableStreamBody}),e,o.contentLength,{maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})}))}async exists(e={}){return Y.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,L.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===X.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===X.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const i=(0,Q.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{...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Q.parseObjectReplicationRecord)(i.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return Y.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,Q.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 Y.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,Q.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 Y.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,Q.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-setMetadata",t,(async i=>(0,Q.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:i.tracingOptions}))))}async setTags(e,t={}){return Y.tracingClient.withSpan("BlobClient-setTags",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:i.tracingOptions,tags:(0,Q.toBlobTags)(e)}))))}async getTags(e={}){return Y.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const i=(0,Q.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 a={...i,_response:i._response,tags:(0,Q.toTags)({blobTagSet:i.blobTagSet})||{}};return a}))}getBlobLeaseClient(e){return new te.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,Q.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 i={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const a=new H.BlobBeginCopyFromUrlPoller({blobClient:i,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await a.poll();return a}async abortCopyFromURL(e,t={}){return Y.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async i=>(0,Q.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:i.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return Y.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async i=>(0,Q.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:(0,Q.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async setAccessTier(e,t={}){return Y.tracingClient.withSpan("BlobClient-setAccessTier",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setTier((0,L.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:i.tracingOptions}))))}async downloadToBuffer(e,t,i,a={}){let o;let d=0;let m=0;let h=a;if(e instanceof Buffer){o=e;d=t||0;m=typeof i==="number"?i:0}else{d=typeof e==="number"?e:0;m=typeof t==="number"?t:0;h=i||{}}let P=h.blockSize??0;if(P<0){throw new RangeError("blockSize option must be >= 0")}if(P===0){P=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(m&&m<=0){throw new RangeError("count option must be greater than 0")}if(!h.conditions){h.conditions={}}return Y.tracingClient.withSpan("BlobClient-downloadToBuffer",h,(async e=>{if(!m){const t=await this.getProperties({...h,tracingOptions:e.tracingOptions});m=t.contentLength-d;if(m<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!o){try{o=Buffer.alloc(m)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${m}(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(o.length<m){throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${m}`)}let t=0;const i=new W.Batch(h.concurrency);for(let a=d;a<d+m;a=a+P){i.addOperation((async()=>{let i=d+m;if(a+P<i){i=a+P}const _=await this.download(a,i-a,{abortSignal:h.abortSignal,conditions:h.conditions,maxRetryRequests:h.maxRetryRequestsPerBlock,customerProvidedKey:h.customerProvidedKey,tracingOptions:e.tracingOptions});const L=_.readableStreamBody;await(0,Z.streamToBuffer)(L,o,a-d,i-d);t+=i-a;if(h.onProgress){h.onProgress({loadedBytes:t})}}))}await i.do();return o}))}async downloadToFile(e,t=0,i,a={}){return Y.tracingClient.withSpan("BlobClient-downloadToFile",a,(async o=>{const d=await this.download(t,i,{...a,tracingOptions:o.tracingOptions});if(d.readableStreamBody){await(0,Z.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const i=new URL(this.url);if(i.host.split(".")[1]==="blob"){const a=i.pathname.match("/([^/]*)(/(.*))?");e=a[1];t=a[3]}else if((0,Q.isIpEndpointStyle)(i)){const a=i.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=a[2];t=a[4]}else{const a=i.pathname.match("/([^/]*)(/(.*))?");e=a[1];t=a[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 Y.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async i=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:i.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 i=(0,ee.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,Q.appendToURLQuery)(this.url,i))}))}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(0,ee.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((i=>{const a=(0,ee.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();i((0,Q.appendToURLQuery)(this.url,a))}))}generateUserDelegationSasStringToSign(e,t){return(0,ee.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Y.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,Q.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return Y.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,Q.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return Y.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,Q.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Y.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,Q.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,Q.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:(0,Q.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:X.ETagAny};return Y.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const i=(0,Q.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...i,_response:i._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 Y.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,Q.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,i={}){i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-appendBlock",i,(async a=>(0,Q.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:i.abortSignal,appendPositionAccessConditions:i.conditions,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async appendBlockFromURL(e,t,i,a={}){a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",a,(async o=>(0,Q.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:a.abortSignal,sourceRange:(0,V.rangeToString)({offset:t,count:i}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions?.ifMatch,sourceIfModifiedSince:a.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,Q.httpAuthorizationToString)(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;if(i&&typeof i!=="string"){m=i}h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return Y.tracingClient.withSpan("BlockBlobClient-query",t,(async i=>{const a=(0,Q.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,Q.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,Q.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:i.tracingOptions}));return new P.BlobQueryResponse(a,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,i={}){i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-upload",i,(async a=>(0,Q.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:i.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:i.immutabilityPolicy?.policyMode,legalHold:i.legalHold,tier:(0,L.toAccessTier)(i.tier),blobTagsString:(0,Q.toBlobTagsString)(i.tags),tracingOptions:a.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async i=>(0,Q.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:(0,Q.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async stageBlock(e,t,i,a={}){(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-stageBlock",a,(async o=>(0,Q.assertResponse)(await this.blockBlobContext.stageBlock(e,i,t,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))))}async stageBlockFromURL(e,t,i=0,a,o={}){(0,L.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",o,(async d=>(0,Q.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:i===0&&!a?undefined:(0,V.rangeToString)({offset:i,count:a}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,Q.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async i=>(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),tracingOptions:i.tracingOptions}))))}async getBlockList(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async i=>{const a=(0,Q.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}))}async uploadData(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let i;if(e instanceof Buffer){i=e}else if(e instanceof ArrayBuffer){i=Buffer.from(e)}else{e=e;i=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.byteLength,t)}else{const i=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.size,t)}}))}async uploadBrowserData(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const i=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.size,t)}))}async uploadSeekableInternal(e,t,i={}){let a=i.blockSize??0;if(a<0||a>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const o=i.maxSingleShotSize??X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(o<0||o>X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(a===0){if(t>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>o){a=Math.ceil(t/X.BLOCK_BLOB_MAX_BLOCKS);if(a<X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES){a=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}}}if(!i.blobHTTPHeaders){i.blobHTTPHeaders={}}if(!i.conditions){i.conditions={}}return Y.tracingClient.withSpan("BlockBlobClient-uploadSeekableInternal",i,(async d=>{if(t<=o){return(0,Q.assertResponse)(await this.upload(e(0,t),t,d))}const h=Math.floor((t-1)/a)+1;if(h>X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${X.BLOCK_BLOB_MAX_BLOCKS}`)}const P=[];const _=(0,m.randomUUID)();let L=0;const j=new W.Batch(i.concurrency);for(let o=0;o<h;o++){j.addOperation((async()=>{const m=(0,Q.generateBlockID)(_,o);const j=a*o;const U=o===h-1?t:j+a;const H=U-j;P.push(m);await this.stageBlock(m,e(j,H),H,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:d.tracingOptions});L+=H;if(i.onProgress){i.onProgress({loadedBytes:L})}}))}await j.do();return this.commitBlockList(P,d)}))}async uploadFile(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async i=>{const a=(await(0,Z.fsStat)(e)).size;return this.uploadSeekableInternal(((t,i)=>()=>(0,Z.fsCreateReadStream)(e,{autoClose:true,end:i?t+i-1:Infinity,start:t})),a,{...t,tracingOptions:i.tracingOptions})}))}async uploadStream(e,t=X.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,i=5,a={}){if(!a.blobHTTPHeaders){a.blobHTTPHeaders={}}if(!a.conditions){a.conditions={}}return Y.tracingClient.withSpan("BlockBlobClient-uploadStream",a,(async o=>{let d=0;const h=(0,m.randomUUID)();let P=0;const _=[];const L=new J.BufferScheduler(e,t,i,(async(e,t)=>{const i=(0,Q.generateBlockID)(h,d);_.push(i);d++;await this.stageBlock(i,e,t,{customerProvidedKey:a.customerProvidedKey,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions});P+=t;if(a.onProgress){a.onProgress({loadedBytes:P})}}),Math.ceil(i/4*3));await L.do();return(0,Q.assertResponse)(await this.commitBlockList(_,{...a,tracingOptions:o.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-create",t,(async i=>(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),tracingOptions:i.tracingOptions}))))}async createIfNotExists(e,t={}){return Y.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async i=>{try{const a={ifNoneMatch:X.ETagAny};const o=(0,Q.assertResponse)(await this.create(e,{...t,conditions:a,tracingOptions:i.tracingOptions}));return{succeeded:true,...o,_response:o._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,i,a={}){a.conditions=a.conditions||{};(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-uploadPages",a,(async o=>(0,Q.assertResponse)(await this.pageBlobContext.uploadPages(i,e,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},requestOptions:{onUploadProgress:a.onProgress},range:(0,V.rangeToString)({offset:t,count:i}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))))}async uploadPagesFromURL(e,t,i,a,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,L.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",o,(async d=>(0,Q.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,V.rangeToString)({offset:t,count:a}),0,(0,V.rangeToString)({offset:i,count:a}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,Q.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-clearPages",i,(async a=>(0,Q.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:i.conditions,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async getPageRanges(e=0,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-getPageRanges",i,(async a=>{const o=(0,Q.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:a.tracingOptions}));return(0,j.rangeResponseFromModel)(o)}))}async listPageRangesSegment(e=0,t,i,a={}){return Y.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",a,(async o=>(0,Q.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:a.maxPageSize,tracingOptions:o.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,i,a={}){let o;if(!!i||i===undefined){do{o=await this.listPageRangesSegment(e,t,i,a);i=o.continuationToken;yield await o}while(i)}}async*listPageRangeItems(e=0,t,i={}){let a;for await(const o of this.listPageRangeItemSegments(e,t,a,i)){yield*(0,Q.ExtractPageRangeInfoItems)(o)}}listPageRanges(e=0,t,i={}){i.conditions=i.conditions||{};const a=this.listPageRangeItems(e,t,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(e,t,a.continuationToken,{maxPageSize:a.maxPageSize,...i})}}async getPageRangesDiff(e,t,i,a={}){a.conditions=a.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",a,(async o=>{const d=(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevsnapshot:i,range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,j.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,i,a,o={}){return Y.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",o,(async d=>(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:i,range:(0,V.rangeToString)({offset:e,count:t}),marker:a,maxPageSize:o?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,i,a,o){let d;if(!!a||a===undefined){do{d=await this.listPageRangesDiffSegment(e,t,i,a,o);a=d.continuationToken;yield await d}while(a)}}async*listPageRangeDiffItems(e,t,i,a){let o;for await(const d of this.listPageRangeDiffItemSegments(e,t,i,o,a)){yield*(0,Q.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,i,a={}){a.conditions=a.conditions||{};const o=this.listPageRangeDiffItems(e,t,i,{...a});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(e,t,i,o.continuationToken,{maxPageSize:o.maxPageSize,...a})}}async getPageRangesDiffForManagedDisks(e,t,i,a={}){a.conditions=a.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",a,(async o=>{const d=(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevSnapshotUrl:i,range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,j.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-resize",t,(async i=>(0,Q.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:i.tracingOptions}))))}async updateSequenceNumber(e,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",i,(async a=>(0,Q.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:i.abortSignal,blobSequenceNumber:t,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},tracingOptions:a.tracingOptions}))))}async startCopyIncremental(e,t={}){return Y.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async i=>(0,Q.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const a=i(20778);const o=i(87779);const d=i(50417);const m=i(51382);const h=i(25984);const P=i(73542);const _=i(53952);const L=i(47764);const j=i(656);const U=i(23276);const H=i(90372);const V=i(12094);class ContainerClient extends P.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,i){let P;let _;i=i||{};if((0,h.isPipelineLike)(t)){_=e;P=t}else if(o.isNodeLike&&t instanceof m.StorageSharedKeyCredential||t instanceof m.AnonymousCredential||(0,d.isTokenCredential)(t)){_=e;P=(0,h.newPipeline)(t,i)}else if(!t&&typeof t!=="string"){_=e;P=(0,h.newPipeline)(new m.AnonymousCredential,i)}else if(t&&typeof t==="string"){const d=t;const j=(0,L.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(o.isNodeLike){const e=new m.StorageSharedKeyCredential(j.accountName,j.accountKey);_=(0,L.appendToURLPath)(j.url,encodeURIComponent(d));if(!i.proxyOptions){i.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}P=(0,h.newPipeline)(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){_=(0,L.appendToURLPath)(j.url,encodeURIComponent(d))+"?"+j.accountSas;P=(0,h.newPipeline)(new m.AnonymousCredential,i)}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(_,P);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return _.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,L.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return _.tracingClient.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 _.tracingClient.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 H.BlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new H.AppendBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new H.BlockBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new H.PageBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,L.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,L.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return _.tracingClient.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 _.tracingClient.withSpan("ContainerClient-setMetadata",t,(async i=>(0,L.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:i.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const i=(0,L.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const a={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const e of i){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)}}a.signedIdentifiers.push({accessPolicy:t,id:e.id})}return a}))}async setAccessPolicy(e,t,i={}){i.conditions=i.conditions||{};return _.tracingClient.withSpan("ContainerClient-setAccessPolicy",i,(async a=>{const o=[];for(const e of t||[]){o.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,L.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,L.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,L.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:i.abortSignal,access:e,containerAcl:o,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,tracingOptions:a.tracingOptions}))}))}getBlobLeaseClient(e){return new U.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,i,a={}){return _.tracingClient.withSpan("ContainerClient-uploadBlockBlob",a,(async a=>{const o=this.getBlockBlobClient(e);const d=await o.upload(t,i,a);return{blockBlobClient:o,response:d}}))}async deleteBlob(e,t={}){return _.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async i=>{let a=this.getBlobClient(e);if(t.versionId){a=a.withVersion(t.versionId)}return a.delete(i)}))}async listBlobFlatSegment(e,t={}){return _.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async i=>{const a=(0,L.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:i.tracingOptions}));const o={...a,_response:{...a._response,parsedBody:(0,L.ConvertInternalResponseOfListBlobFlat)(a._response.parsedBody)},segment:{...a.segment,blobItems:a.segment.blobItems.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name),tags:(0,L.toTags)(e.blobTags),objectReplicationSourceProperties:(0,L.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return o}))}async listBlobHierarchySegment(e,t,i={}){return _.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",i,(async a=>{const o=(0,L.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...i,tracingOptions:a.tracingOptions}));const d={...o,_response:{...o._response,parsedBody:(0,L.ConvertInternalResponseOfListBlobHierarchy)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name),tags:(0,L.toTags)(e.blobTags),objectReplicationSourceProperties:(0,L.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:o.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let i;if(!!e||e===undefined){do{i=await this.listBlobFlatSegment(e,t);e=i.continuationToken;yield await i}while(e)}}async*listItems(e={}){let t;for await(const i of this.listSegments(t,e)){yield*i.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 i={...e,...t.length>0?{include:t}:{}};const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...i})}}async*listHierarchySegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.listBlobHierarchySegment(e,t,i);t=a.continuationToken;yield await a}while(t)}}async*listItemsByHierarchy(e,t={}){let i;for await(const a of this.listHierarchySegments(e,i,t)){const e=a.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 i=[];if(t.includeCopy){i.push("copy")}if(t.includeDeleted){i.push("deleted")}if(t.includeMetadata){i.push("metadata")}if(t.includeSnapshots){i.push("snapshots")}if(t.includeVersions){i.push("versions")}if(t.includeUncommitedBlobs){i.push("uncommittedblobs")}if(t.includeTags){i.push("tags")}if(t.includeDeletedWithVersions){i.push("deletedwithversions")}if(t.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(t.includeLegalHold){i.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const a={...t,...i.length>0?{include:i}:{}};const o=this.listItemsByHierarchy(e,a);return{async next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...a})}}async findBlobsByTagsSegment(e,t,i={}){return _.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",i,(async a=>{const o=(0,L.assertResponse)(await this.containerContext.filterBlobs({abortSignal:i.abortSignal,where:e,marker:t,maxPageSize:i.maxPageSize,tracingOptions:a.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,L.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.findBlobsByTagsSegment(e,t,i);a.blobs=a.blobs||[];t=a.continuationToken;yield a}while(t)}}async*findBlobsByTagsItems(e,t={}){let i;for await(const a of this.findBlobsByTagsSegments(e,i,t)){yield*a.blobs}}findBlobsByTags(e,t={}){const i={...t};const a=this.findBlobsByTagsItems(e,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async getAccountInfo(e={}){return _.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,L.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((0,L.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 m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=(0,j.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,L.appendToURLQuery)(this.url,i))}))}generateSasStringToSign(e){if(!(this.credential instanceof m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,j.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((i=>{const a=(0,j.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();i((0,L.appendToURLQuery)(this.url,a))}))}generateUserDelegationSasStringToSign(e,t){return(0,j.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const i=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:i,_response:{...e._response,parsedBody:{pageRange:t,clearRange:i}}}}},25984:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const a=i(61584);const o=i(20778);const d=i(60160);const m=i(78756);const h=i(50417);const P=i(46370);const _=i(51382);const L=i(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return L.StorageOAuthScopes}});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}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new _.AnonymousCredential}const i=new Pipeline([],t);i._credential=e;return i}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const i=e.factories.filter((e=>!t.some((t=>t(e)))));if(i.length){const e=i.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,a.createRequestPolicyFactoryPolicy)(i),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...i}=e.options;let j=e._coreHttpClient;if(!j){j=t?(0,a.convertHttpClient)(t):(0,_.getCachedDefaultHttpClient)();e._coreHttpClient=j}let U=e._corePipeline;if(!U){const t=`azsdk-js-azure-storage-blob/${L.SDK_VERSION}`;const a=i.userAgentOptions&&i.userAgentOptions.userAgentPrefix?`${i.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;U=(0,d.createClientPipeline)({...i,loggingOptions:{additionalAllowedHeaderNames:L.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:L.StorageBlobLoggingAllowedQueryParameters,logger:P.logger.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:m.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:m.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});U.removePolicy({phase:"Retry"});U.removePolicy({name:o.decompressResponsePolicyName});U.addPolicy((0,_.storageCorrectContentLengthPolicy)());U.addPolicy((0,_.storageRetryPolicy)(i.retryOptions),{phase:"Retry"});U.addPolicy((0,_.storageRequestFailureDetailsParserPolicy)());U.addPolicy((0,_.storageBrowserPolicy)());const j=processDownlevelPipeline(e);if(j){U.addPolicy(j.wrappedPolicies,j.afterRetry?{afterPhase:"Retry"}:undefined)}const H=getCredentialFromPipeline(e);if((0,h.isTokenCredential)(H)){U.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:H,scopes:i.audience??L.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(H instanceof _.StorageSharedKeyCredential){U.addPolicy((0,_.storageSharedKeyCredentialPolicy)({accountName:H.accountName,accountKey:H.accountKey}),{phase:"Sign"})}e._corePipeline=U}return{...i,allowInsecureConnection:true,httpClient:j,pipeline:U}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new _.AnonymousCredential;for(const i of e.factories){if((0,h.isTokenCredential)(i.credential)){t=i.credential}else if(isStorageSharedKeyCredential(i)){return i}}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(0,h.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 i={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const a={log(e,t){},shouldLog(e){return false}};const o=e.create(i,a);const d=o.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;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}-`}},73542:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(53789);const o=i(25984);const d=i(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new a.StorageContextClient(this.url,(0,o.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,o.getCredentialFromPipeline)(t);const i=this.storageClientContext;i.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const a=i(30247);class StorageContextClient extends a.StorageClient{async sendOperationRequest(e,t){const i={...t};if(i.path==="/{containerName}"||i.path==="/{containerName}/{blob}"){i.path=""}return super.sendOperationRequest(e,i)}}t.StorageContextClient=StorageContextClient},30247:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(61860);a.__exportStar(i(12362),t);var o=i(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return o.StorageClient}});a.__exportStar(i(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var i;(function(e){e["AES256"]="AES256"})(i||(t.KnownEncryptionAlgorithmType=i={}));var a;(function(e){e["Backup"]="backup"})(a||(t.KnownFileShareTokenIntent=a={}));var o;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(o||(t.KnownBlobExpiryOptions=o={}));var d;(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"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={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"}}}}};t.Logging={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"}}}}};t.RetentionPolicy={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"}}}}};t.Metrics={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"}}}}};t.CorsRule={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"}}}}};t.StaticWebsite={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"}}}}};t.StorageError={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"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={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"}}}}};t.ListContainersSegmentResponse={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"}}}}};t.ContainerItem={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"}}}}}}};t.ContainerProperties={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"}}}}};t.KeyInfo={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"}}}}};t.UserDelegationKey={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"}}}}};t.FilterBlobSegment={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"}}}}};t.FilterBlobItem={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"}}}}};t.BlobTags={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"}}}}}}};t.BlobTag={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"}}}}};t.SignedIdentifier={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"}}}}};t.AccessPolicy={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"}}}}};t.ListBlobsFlatSegmentResponse={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"}}}}};t.BlobFlatListSegment={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"}}}}}}};t.BlobItemInternal={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"}}}}};t.BlobName={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"}}}}};t.BlobPropertiesInternal={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"}}}}};t.ListBlobsHierarchySegmentResponse={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"}}}}};t.BlobHierarchyListSegment={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"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={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"}}}}}}};t.BlockList={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"}}}}}}};t.Block={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"}}}}};t.PageList={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"}}}}};t.PageRange={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"}}}}};t.ClearRange={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"}}}}};t.QueryRequest={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"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={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"}}}}}}};t.DelimitedTextConfiguration={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"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={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"}}}}}}};t.ArrowField={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"}}}}};t.ServiceSetPropertiesHeaders={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"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={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"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={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"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={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"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={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"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={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"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={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"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={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"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={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"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={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"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={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"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={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"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={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"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={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"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={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"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={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"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={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"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={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"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={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"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={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"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={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"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={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"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={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"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={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"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={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"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={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"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={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"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={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"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={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"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={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"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={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"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={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"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={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"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={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"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={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"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={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"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={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"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={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"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={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"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={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"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={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"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={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"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={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"}}}}};t.BlobStartCopyFromURLExceptionHeaders={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"}}}}};t.BlobCopyFromURLHeaders={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"}}}}};t.BlobCopyFromURLExceptionHeaders={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"}}}}};t.BlobAbortCopyFromURLHeaders={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"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={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"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={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"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={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"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={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"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={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"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={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"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={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"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={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"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={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"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={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"}}}}};t.PageBlobGetPageRangesHeaders={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"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={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"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={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"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={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"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={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"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={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"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={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"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={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"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={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"}}}}};t.AppendBlobSealHeaders={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"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={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"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={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"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={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"}}}}};t.BlockBlobStageBlockHeaders={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"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={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"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={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"}}}}};t.BlockBlobCommitBlockListHeaders={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"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={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"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.startFrom=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.ifNoneMatch1=t.ifMatch1=t.ifUnmodifiedSince1=t.ifModifiedSince1=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=t.fileRequestIntent=void 0;const a=i(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:a.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:a.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={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"};t.startFrom={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={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"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={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"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:a.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.ifModifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.ifMatch1={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};t.ifNoneMatch1={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:a.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:a.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},P)}appendBlock(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},_)}appendBlockFromUrl(e,t,i){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:i},L)}seal(e){return this.client.sendOperationRequest({options:e},j)}}t.AppendBlobImpl=AppendBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.blobTagsString,m.legalHold1,m.blobType1],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.maxSize,m.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.transactionalContentMD5,m.sourceUrl,m.sourceContentCrc64,m.maxSize,m.appendPosition,m.sourceRange1],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp23],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.appendPosition],isXML:true,serializer:h}},57559:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}delete(e){return this.client.sendOperationRequest({options:e},L)}undelete(e){return this.client.sendOperationRequest({options:e},j)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},H)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},V)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},W)}setMetadata(e){return this.client.sendOperationRequest({options:e},J)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}changeLease(e,t,i){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:i},Z)}breakLease(e){return this.client.sendOperationRequest({options:e},ee)}createSnapshot(e){return this.client.sendOperationRequest({options:e},te)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ne)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},re)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},ie)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},oe)}query(e){return this.client.sendOperationRequest({options:e},se)}getTags(e){return this.client.sendOperationRequest({options:e},ce)}setTags(e){return this.client.sendOperationRequest({options:e},le)}}t.BlobImpl=BlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.rangeGetContentMD5,m.rangeGetContentCRC64,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.blobDeleteType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.deleteSnapshots],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp11],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.expiryOptions,m.expiresOn],isXML:true,serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition],isXML:true,serializer:h};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifUnmodifiedSince,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode],isXML:true,serializer:h};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const W={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp13],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.legalHold],isXML:true,serializer:h};const J={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:h};const X={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Q={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Z={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp14],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:h};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.tier,m.rehydratePriority,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sealBlob,m.legalHold1],isXML:true,serializer:h};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.copySource,m.blobTagsString,m.legalHold1,m.xMsRequiresSync,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent],isXML:true,serializer:h};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp15,m.copyId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.copyActionAbortConstant],isXML:true,serializer:h};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp16],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.rehydratePriority,m.tier1],isXML:true,serializer:h};const oe={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const se={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:m.queryRequest,queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp17],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const ce={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1],isXML:true,serializer:h};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:m.tags,queryParameters:[m.timeoutInSeconds,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h}},95440:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},P)}putBlobFromUrl(e,t,i){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:i},_)}stageBlock(e,t,i,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:i,options:a},L)}stageBlockFromURL(e,t,i,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:i,options:a},j)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},H)}}t.BlockBlobImpl=BlockBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent,m.transactionalContentMD5,m.blobType2,m.copySourceBlobProperties],isXML:true,serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.sourceUrl,m.sourceContentCrc64,m.sourceRange1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:m.blocks,queryParameters:[m.timeoutInSeconds,m.comp25],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp25,m.listType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags],isXML:true,serializer:h}},14509:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}delete(e){return this.client.sendOperationRequest({options:e},L)}setMetadata(e){return this.client.sendOperationRequest({options:e},j)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},H)}restore(e){return this.client.sendOperationRequest({options:e},V)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,i,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:i,options:a},W)}filterBlobs(e){return this.client.sendOperationRequest({options:e},J)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}breakLease(e){return this.client.sendOperationRequest({options:e},Z)}changeLease(e,t,i){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:i},ee)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},te)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},ne)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},re)}}t.ContainerImpl=ContainerImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.access,m.defaultEncryptionScope,m.preventEncryptionScopeOverride],isXML:true,serializer:h};const _={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:h};const L={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,serializer:h};const j={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince],isXML:true,serializer:h};const U={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:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:h};const H={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:m.containerAcl,queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.access,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const V={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.deletedContainerName,m.deletedContainerVersion],isXML:true,serializer:h};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp9],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.sourceContainerName,m.sourceLeaseId],isXML:true,serializer:h};const W={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4,m.restype2],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const J={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const X={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId],isXML:true,serializer:h};const Y={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1],isXML:true,serializer:h};const Q={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2],isXML:true,serializer:h};const Z={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod],isXML:true,serializer:h};const ee={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1],isXML:true,serializer:h};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const ne={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom,m.delimiter],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const re={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h}},37878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=i(61860);a.__exportStar(i(44181),t);a.__exportStar(i(14509),t);a.__exportStar(i(57559),t);a.__exportStar(i(69156),t);a.__exportStar(i(40535),t);a.__exportStar(i(95440),t)},69156:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,i){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:i},P)}uploadPages(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},_)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},L)}uploadPagesFromURL(e,t,i,a,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:i,range:a,options:o},j)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},H)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},V)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},W)}}t.PageBlobImpl=PageBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.blobType,m.blobContentLength,m.blobSequenceNumber],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.pageWrite1],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.sourceUrl,m.sourceRange,m.sourceContentCrc64,m.range1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20,m.prevsnapshot],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags,m.prevSnapshotUrl],isXML:true,serializer:h};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.blobContentLength],isXML:true,serializer:h};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobSequenceNumber,m.sequenceNumberAction],isXML:true,serializer:h};const W={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp21],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.copySource],isXML:true,serializer:h}},44181:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}getStatistics(e){return this.client.sendOperationRequest({options:e},L)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},j)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},H)}submitBatch(e,t,i,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:i,options:a},V)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const h=o.createSerializer(d,true);const P={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:m.blobServiceProperties,queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const _={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const L={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[m.restype,m.timeoutInSeconds,m.comp1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const j={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.include],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:m.keyInfo,queryParameters:[m.restype,m.timeoutInSeconds,m.comp3],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const H={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const V={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=i(61860);a.__exportStar(i(26865),t);a.__exportStar(i(15337),t);a.__exportStar(i(68355),t);a.__exportStar(i(14400),t);a.__exportStar(i(56635),t);a.__exportStar(i(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(61860);const o=a.__importStar(i(61584));const d=i(37878);class StorageClient extends o.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const i={requestContentType:"application/json; charset=utf-8"};const a=`azsdk-js-azure-storage-blob/12.30.0`;const o=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${a}`:`${a}`;const m={...i,...t,userAgentOptions:{userAgentPrefix:o},endpoint:t.endpoint??t.baseUri??"{url}"};super(m);this.url=e;this.version=t.version||"2026-02-06";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var i;(function(e){e["AES256"]="AES256"})(i||(t.KnownEncryptionAlgorithmType=i={}))},71400:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=t.StorageSharedKeyCredentialPolicy=t.StorageSharedKeyCredential=t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=t.Credential=t.CredentialPolicy=t.BaseRequestPolicy=t.AnonymousCredentialPolicy=t.AnonymousCredential=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const a=i(61860);const o=i(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return o.RestError}});a.__exportStar(i(96341),t);a.__exportStar(i(90372),t);a.__exportStar(i(81884),t);a.__exportStar(i(23276),t);a.__exportStar(i(6358),t);a.__exportStar(i(91267),t);a.__exportStar(i(46940),t);var d=i(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});a.__exportStar(i(95561),t);a.__exportStar(i(12094),t);a.__exportStar(i(48175),t);a.__exportStar(i(2232),t);var m=i(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return m.generateBlobSASQueryParameters}});a.__exportStar(i(51622),t);var h=i(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return h.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return h.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return h.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return h.getBlobServiceAccountAudience}});var P=i(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return P.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return P.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return P.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return P.StorageOAuthScopes}});var _=i(51382);Object.defineProperty(t,"AnonymousCredential",{enumerable:true,get:function(){return _.AnonymousCredential}});Object.defineProperty(t,"AnonymousCredentialPolicy",{enumerable:true,get:function(){return _.AnonymousCredentialPolicy}});Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return _.BaseRequestPolicy}});Object.defineProperty(t,"CredentialPolicy",{enumerable:true,get:function(){return _.CredentialPolicy}});Object.defineProperty(t,"Credential",{enumerable:true,get:function(){return _.Credential}});Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return _.StorageRetryPolicyType}});Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return _.StorageRetryPolicy}});Object.defineProperty(t,"StorageRetryPolicyFactory",{enumerable:true,get:function(){return _.StorageRetryPolicyFactory}});Object.defineProperty(t,"StorageSharedKeyCredential",{enumerable:true,get:function(){return _.StorageSharedKeyCredential}});Object.defineProperty(t,"StorageSharedKeyCredentialPolicy",{enumerable:true,get:function(){return _.StorageSharedKeyCredentialPolicy}});Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return _.StorageBrowserPolicy}});Object.defineProperty(t,"StorageBrowserPolicyFactory",{enumerable:true,get:function(){return _.StorageBrowserPolicyFactory}});a.__exportStar(i(26823),t);a.__exportStar(i(83627),t);var L=i(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return L.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,i={}){const a=await e.read(t,{abortSignal:i.abortSignal});if(a.length!==t){throw new Error("Hit stream end.")}return a}static async readByte(e,t={}){const i=await AvroParser.readFixedBytes(e,1,t);return i[0]}static async readZigZagLong(e,t={}){let i=0;let a=0;let o,d,m;do{o=await AvroParser.readByte(e,t);d=o&128;i|=(o&127)<<a;a+=7}while(d&&a<28);if(d){i=i;m=268435456;do{o=await AvroParser.readByte(e,t);i+=(o&127)*m;m*=128}while(o&128);const a=(i%2?-(i+1):i)/2;if(a<Number.MIN_SAFE_INTEGER||a>Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return i>>1^-(i&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 i=await AvroParser.readByte(e,t);if(i===1){return true}else if(i===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const i=await AvroParser.readFixedBytes(e,4,t);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat32(0,true)}static async readDouble(e,t={}){const i=await AvroParser.readFixedBytes(e,8,t);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat64(0,true)}static async readBytes(e,t={}){const i=await AvroParser.readLong(e,t);if(i<0){throw new Error("Bytes size was negative.")}return e.read(i,{abortSignal:t.abortSignal})}static async readString(e,t={}){const i=await AvroParser.readBytes(e,t);const a=new TextDecoder;return a.decode(i)}static async readMapPair(e,t,i={}){const a=await AvroParser.readString(e,i);const o=await t(e,i);return{key:a,value:o}}static async readMap(e,t,i={}){const readPairMethod=(e,i={})=>AvroParser.readMapPair(e,t,i);const a=await AvroParser.readArray(e,readPairMethod,i);const o={};for(const e of a){o[e.key]=e.value}return o}static async readArray(e,t,i={}){const a=[];for(let o=await AvroParser.readLong(e,i);o!==0;o=await AvroParser.readLong(e,i)){if(o<0){await AvroParser.readLong(e,i);o=-o}while(o--){const o=await t(e,i);a.push(o)}}return a}}t.AvroParser=AvroParser;var i;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(i||(i={}));var a;(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"})(a||(a={}));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 a.NULL:case a.BOOLEAN:case a.INT:case a.LONG:case a.FLOAT:case a.DOUBLE:case a.BYTES:case a.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 i.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 a={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){a[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(a,e.name);case i.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 i.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case i.ARRAY:case i.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case a.NULL:return AvroParser.readNull();case a.BOOLEAN:return AvroParser.readBoolean(e,t);case a.INT:return AvroParser.readInt(e,t);case a.LONG:return AvroParser.readLong(e,t);case a.FLOAT:return AvroParser.readFloat(e,t);case a.DOUBLE:return AvroParser.readDouble(e,t);case a.BYTES:return AvroParser.readBytes(e,t);case a.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 i=await AvroParser.readInt(e,t);return this._symbols[i]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const i=await AvroParser.readInt(e,t);return this._types[i].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 i={};i["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){i[a]=await this._fields[a].read(e,t)}}return i}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const a=i(41675);const o=i(83134);const d=i(20181);const m=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends a.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.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 m}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 i=this._readable.read(e);if(i){this._position+=i.length;return this.toUint8Array(i)}else{return new Promise(((i,a)=>{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();i(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(m)};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)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const a=i(11326);const o=i(35652);const d=i(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,i,a){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=i||0;this._objectIndex=a||0;this._initialBlockOffset=i||0}async initialize(e={}){const t=await o.AvroParser.readFixedBytes(this._headerStream,a.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,a.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await o.AvroParser.readMap(this._headerStream,o.AvroParser.readString,{abortSignal:e.abortSignal});const i=this._metadata[a.AVRO_CODEC_KEY];if(!(i===undefined||i===null||i==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await o.AvroParser.readFixedBytes(this._headerStream,a.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const m=JSON.parse(this._metadata[a.AVRO_SCHEMA_KEY]);this._itemType=o.AvroType.fromSchema(m);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t<this._objectIndex;t++){await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--}}}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}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 o.AvroParser.readFixedBytes(this._dataStream,a.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var a=i(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return a.AvroReader}});var o=i(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return o.AvroReadable}});var d=i(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;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 i=0;i<e.length;++i){if(e[i]!==t[i])return false}return true}},46370:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("storage-blob")},58560:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const a=i(27323);var o;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(o||(t.BlockBlobTier=o={}));var d;(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"})(d||(t.PremiumPageBlobTier=d={}));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=a.EncryptionAlgorithmAES25}}var m;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(m||(t.StorageBlobAudience=m={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},73145:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const a=i(87779);const o=i(91754);class BlobBeginCopyFromUrlPoller extends o.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:i,intervalInMs:a=15e3,onProgress:o,resumeFrom:d,startCopyFromURLOptions:m}=e;let h;if(d){h=JSON.parse(d).state}const P=makeBlobBeginCopyFromURLPollOperation({...h,blobClient:t,copySource:i,startCopyFromURLOptions:m});super(P);if(typeof o==="function"){this.onProgress(o)}this.intervalInMs=a}delay(){return(0,a.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:i}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!i){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(i,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const m=async function update(e={}){const t=this.state;const{blobClient:i,copySource:a,startCopyFromURLOptions:o}=t;if(!t.isStarted){t.isStarted=true;const e=await i.startCopyFromURL(a,o);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const i=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:a,copyProgress:o}=i;const d=t.copyProgress;if(o){t.copyProgress=o}if(a==="pending"&&o!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(a==="success"){t.result=i;t.isCompleted=true}else if(a==="failed"){t.error=new Error(`Blob copy failed with reason: "${i.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const h=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:h,update:m}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const a=i(6358);const o=i(91267);const d=i(46940);const m=i(2977);const h=i(26823);const P=i(27323);const _=i(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const i=e.version?e.version:P.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const L=a.AccountSASPermissions.parse(e.permissions.toString());const j=d.AccountSASServices.parse(e.services).toString();const U=o.AccountSASResourceTypes.parse(e.resourceTypes).toString();let H;if(i>="2020-12-06"){H=[t.accountName,L,j,U,e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",(0,_.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",i,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{H=[t.accountName,L,j,U,e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",(0,_.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",i,""].join("\n")}const V=t.computeHMACSHA256(H);return{sasQueryParameters:new h.SASQueryParameters(i,V,L.toString(),j,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:H}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const i of e){switch(i){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${i}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const a=i(2232);const o=i(51622);const d=i(51382);const m=i(2977);const h=i(26823);const P=i(27323);const _=i(47764);const L=i(51382);function generateBlobSASQueryParameters(e,t,i){return generateBlobSASQueryParametersInternal(e,t,i).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,i){const a=e.version?e.version:P.SERVICE_VERSION;const o=t instanceof d.StorageSharedKeyCredential?t:undefined;let m;if(o===undefined&&i!==undefined){m=new L.UserDelegationKeyCredential(i,t)}if(o===undefined&&m===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(o!==undefined){return generateBlobSASQueryParameters20201206(e,o)}else{if(a>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,m)}else{return generateBlobSASQueryParametersUDK20201206(e,m)}}}if(a>="2018-11-09"){if(o!==undefined){return generateBlobSASQueryParameters20181109(e,o)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,m)}else{return generateBlobSASQueryParametersUDK20181109(e,m)}}}if(a>="2015-04-05"){if(o!==undefined){return generateBlobSASQueryParameters20150405(e,o)}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 i="c";if(e.blobName){i="b"}let d;if(e.permissions){if(e.blobName){d=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const P=[d?d:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.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 L=t.computeHMACSHA256(P);return{sasQueryParameters:new h.SASQueryParameters(e.version,L,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:P}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,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 j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:L}}function getCanonicalName(e,t,i){const a=[`/blob/${e}/${t}`];if(i){a.push(`/${i}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:P.SERVICE_VERSION;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}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const i of e){switch(i){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${i}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const a=i(2977);const o=i(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,i,a,o,d,m,h,P,_,L,j,U,H,V,K,W,J,X,Y,Q){this.version=e;this.signature=t;if(i!==undefined&&typeof i!=="string"){this.permissions=i.permissions;this.services=i.services;this.resourceTypes=i.resourceTypes;this.protocol=i.protocol;this.startsOn=i.startsOn;this.expiresOn=i.expiresOn;this.ipRangeInner=i.ipRange;this.identifier=i.identifier;this.delegatedUserObjectId=i.delegatedUserObjectId;this.encryptionScope=i.encryptionScope;this.resource=i.resource;this.cacheControl=i.cacheControl;this.contentDisposition=i.contentDisposition;this.contentEncoding=i.contentEncoding;this.contentLanguage=i.contentLanguage;this.contentType=i.contentType;if(i.userDelegationKey){this.signedOid=i.userDelegationKey.signedObjectId;this.signedTenantId=i.userDelegationKey.signedTenantId;this.signedStartsOn=i.userDelegationKey.signedStartsOn;this.signedExpiresOn=i.userDelegationKey.signedExpiresOn;this.signedService=i.userDelegationKey.signedService;this.signedVersion=i.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=i.preauthorizedAgentObjectId;this.correlationId=i.correlationId}}else{this.services=a;this.resourceTypes=o;this.expiresOn=h;this.permissions=i;this.protocol=d;this.startsOn=m;this.ipRangeInner=P;this.delegatedUserObjectId=Q;this.encryptionScope=Y;this.identifier=_;this.resource=L;this.cacheControl=j;this.contentDisposition=U;this.contentEncoding=H;this.contentLanguage=V;this.contentType=K;if(W){this.signedOid=W.signedObjectId;this.signedTenantId=W.signedTenantId;this.signedStartsOn=W.signedStartsOn;this.signedExpiresOn=W.signedExpiresOn;this.signedService=W.signedService;this.signedVersion=W.signedVersion;this.preauthorizedAgentObjectId=J;this.correlationId=X}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"];const t=[];for(const i of e){switch(i){case"sv":this.tryAppendQueryParameter(t,i,this.version);break;case"ss":this.tryAppendQueryParameter(t,i,this.services);break;case"srt":this.tryAppendQueryParameter(t,i,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,i,this.protocol);break;case"st":this.tryAppendQueryParameter(t,i,this.startsOn?(0,o.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,i,this.expiresOn?(0,o.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,i,this.ipRange?(0,a.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,i,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,i,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,i,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,i,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,i,this.signedStartsOn?(0,o.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,i,this.signedExpiresOn?(0,o.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,i,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,i,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,i,this.resource);break;case"sp":this.tryAppendQueryParameter(t,i,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,i,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,i,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,i,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,i,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,i,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,i,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,i,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,i,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,i,this.delegatedUserObjectId);break}}return t.join("&")}tryAppendQueryParameter(e,t,i){if(!i){return}t=encodeURIComponent(t);i=encodeURIComponent(i);if(t.length>0&&i.length>0){e.push(`${t}=${i}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const a=i(24434);var o;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(o||(o={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=o.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new a.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=o.Error;t(e)}))}))}nextOperation(){if(this.offset<this.operations.length){return this.operations[this.offset++]}return null}parallelExecute(){if(this.state===o.Error){return}if(this.completed>=this.operations.length){this.emitter.emit("finish");return}while(this.actives<this.concurrency){const e=this.nextOperation();if(e){e()}else{return}}}}t.Batch=Batch},36426:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const a=i(57075);const o=i(96147);class BlobQuickQueryStream extends a.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 o.AvroReader(new o.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 i=t.$schema;if(typeof i!=="string"){throw Error("Missing schema in avro record.")}switch(i){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 i=t.name;if(typeof i!=="string"){throw Error("Invalid name in avro error record.")}const a=t.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const o=t.position;if(typeof o!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:o,name:i,isFatal:e,description:a})}break;default:throw Error(`Unknown schema ${i} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var i;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(i||(i={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===i.UNLOCKED){this.keys[e]=i.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=i.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===i.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)}))}}}t.Mutex=Mutex},98684:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const a=i(83134);const o=i(57075);class RetriableReadableStream extends o.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,i,a,o={}){super({highWaterMark:o.highWaterMark});this.getter=t;this.source=e;this.start=i;this.offset=i;this.end=i+a-1;this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0;this.onProgress=o.onProgress;this.options=o;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 a.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.maxRetryRequests){this.retries+=1;this.getter(this.offset).then((e=>{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)}}t.RetriableReadableStream=RetriableReadableStream},27323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.31.0";t.SERVICE_VERSION="2026-02-06";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={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"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["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"];t.StorageBlobLoggingAllowedQueryParameters=["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"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const a=i(20623);const o=i(27323);t.tracingClient=(0,a.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:o.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const a=i(20778);const o=i(87779);const d=i(27323);function escapeURLPath(e){const t=new URL(e);let i=t.pathname;i=i||"/";i=escape(i);t.pathname=i;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const i=e.split(";");for(const e of i){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const i=e.split(";");for(const e of i){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=d.DevelopmentConnectionString}let i=getValueInConnString(e,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let a="";let o="";let d=Buffer.from("accountKey","base64");let m="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!i){a=getValueInConnString(e,"DefaultEndpointsProtocol");const t=a.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${o}.blob.${m}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let a=getValueInConnString(e,"AccountName");if(!a){a=getAccountNameFromUrl(i)}if(!i){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:i,accountName:a,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const i=new URL(e);let a=i.pathname;a=a?a.endsWith("/")?`${a}${t}`:`${a}/${t}`:t;i.pathname=a;return i.toString()}function setURLParameter(e,t,i){const a=new URL(e);const o=encodeURIComponent(t);const d=i?encodeURIComponent(i):undefined;const m=a.search===""?"?":a.search;const h=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){h.push(e)}}}if(d){h.push(`${o}=${d}`)}a.search=h.length?`?${h.join("&")}`:"";return a.toString()}function getURLParameter(e,t){const i=new URL(e);return i.searchParams.get(t)??undefined}function setURLHost(e,t){const i=new URL(e);i.hostname=t;return i.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 i=t.pathname;if(!i){throw new RangeError("Invalid url without valid path.")}let a=t.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${i}${a}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let i=t.split("&");i=i.filter((e=>{const t=e.indexOf("=");const i=e.lastIndexOf("=");return t>0&&t===i&&i<e.length-1}));const a={};for(const e of i){const t=e.split("=");const i=t[0];const o=t[1];a[i]=o}return a}function appendToURLQuery(e,t){const i=new URL(e);let a=i.search;if(a){a+="&"+t}else{a=t}i.search=a;return i.toString()}function truncatedISO8061Date(e,t=true){const i=e.toISOString();return t?i.substring(0,i.length-1)+"0000"+"Z":i.substring(0,i.length-5)+"Z"}function base64encode(e){return!o.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!o.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const i=48;const a=6;const o=i-a;if(e.length>o){e=e.slice(0,o)}const d=e+padStart(t.toString(),i-e.length,"0");return base64encode(d)}async function delay(e,t,i){return new Promise(((a,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(i)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}a()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,i=" "){if(String.prototype.padStart){return e.padStart(t,i)}i=i||" ";if(e.length>t){return e}else{t=t-e.length;if(t>i.length){i+=i.repeat(t/i.length)}return i.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,a.createHttpHeaders)();for(const[i,a]of e){if(i.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(i,"*****")}else if(i.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(i,sanitizeURL(a))}else{t.set(i,a)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let i;try{if(t.hostname.split(".")[1]==="blob"){i=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){i=t.pathname.split("/")[1]}else{i=""}return i}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)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];t.push(`${encodeURIComponent(i)}=${encodeURIComponent(a)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];t.blobTagSet.push({key:i,value:a})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const i of e.blobTagSet){t[i.key]=i.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 i in e){const a=i.split("_");const o="or-";if(a[0].startsWith(o)){a[0]=a[0].substring(o.length)}const d={ruleId:a[1],replicationStatus:e[i]};const m=t.findIndex((e=>e.policyId===a[0]));if(m>-1){t[m].rules.push(d)}else{t.push({policyId:a[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function 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 i=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)i=e.clearRange;let a=0;let o=0;while(a<t.length&&o<i.length){if(t[a].start<i[o].start){yield{start:t[a].start,end:t[a].end,isClear:false};++a}else{yield{start:i[o].start,end:i[o].end,isClear:true};++o}}for(;a<t.length;++a){yield{start:t[a].start,end:t[a].end,isClear:false}}for(;o<i.length;++o){yield{start:i[o].start,end:i[o].end,isClear:true}}}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},53563:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const a=i(61860);const o=a.__importDefault(i(73024));const d=a.__importDefault(i(57975));const m=i(27323);async function streamToBuffer(e,t,i,a,o){let d=0;const h=a-i;return new Promise(((a,P)=>{const _=setTimeout((()=>P(new Error(`The operation cannot be completed in timeout.`))),m.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=h){clearTimeout(_);a();return}let m=e.read();if(!m){return}if(typeof m==="string"){m=Buffer.from(m,o)}const P=d+m.length>h?h-d:m.length;t.fill(m.slice(0,P),i+d,i+d+P);d+=P}));e.on("end",(()=>{clearTimeout(_);if(d<h){P(new Error(`Stream drains before getting enough data needed. Data read: ${d}, data need: ${h}`))}a()}));e.on("error",(e=>{clearTimeout(_);P(e)}))}))}async function streamToBuffer2(e,t,i){let a=0;const o=t.length;return new Promise(((d,m)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,i)}if(a+d.length>o){m(new Error(`Stream exceeds buffer size. Buffer size: ${o}`));return}t.fill(d,a,a+d.length);a+=d.length}));e.on("end",(()=>{d(a)}));e.on("error",m)}))}async function streamToBuffer3(e,t){return new Promise(((i,a)=>{const o=[];e.on("data",(e=>{o.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{i(Buffer.concat(o))}));e.on("error",a)}))}async function readStreamToLocalFile(e,t){return new Promise(((i,a)=>{const d=o.default.createWriteStream(t);e.on("error",(e=>{a(e)}));d.on("error",(e=>{a(e)}));d.on("close",i);e.pipe(d)}))}t.fsStat=d.default.promisify(o.default.stat);t.fsCreateReadStream=o.default.createReadStream},86381:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const a=i(24434);const o=i(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new a.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,i,a,o,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(i<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${i}`)}if(o<=0){throw new RangeError(`concurrency must be larger than 0, current is ${o}`)}this.bufferSize=t;this.maxBuffers=i;this.readable=e;this.outgoingHandler=a;this.concurrency=o;this.encoding=d}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.unresolvedLength<this.bufferSize){const i=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler((()=>i.getReadableStream()),i.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 o.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.maxBuffers){e=this.shiftBufferFromUnresolvedDataArray();this.numBuffers++}else{return false}}this.outgoing.push(e);this.triggerOutgoingHandlers()}return true}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=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()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const a=i(57075);class BuffersStream extends a.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,i){super(i);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let a=0;for(const e of this.buffers){a+=e.byteLength}if(a<this.byteLength){throw new Error("Data size shouldn't be larger than the total length of buffers.")}}_read(e){if(this.pushedBytesLength>=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let i=0;while(i<e&&this.pushedBytesLength<this.byteLength){const a=this.byteLength-this.pushedBytesLength;const o=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer;const d=Math.min(o,a);if(d>e-i){const a=this.byteOffsetInCurrentBuffer+e-i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=e-i;this.byteOffsetInCurrentBuffer=a;i=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===o){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;i+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const a=i(61860);const o=i(66093);const d=a.__importDefault(i(4573));const m=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,i){this.capacity=e;this._size=0;const a=Math.ceil(e/m);for(let t=0;t<a;t++){let i=t===a-1?e%m:m;if(i===0){i=m}this.buffers.push(Buffer.allocUnsafe(i))}if(t){this.fill(t,i)}}fill(e,t){this._size=Math.min(this.capacity,t);let i=0,a=0,o=0,d=0,m=0;while(m<this._size){const t=e[i];const h=this.buffers[a];const P=t.copy(h,o,d);m+=P;d+=P;o+=P;if(d===t.length){i++;d=0}if(o===h.length){a++;o=0}}e.splice(0,i);if(e.length>0){e[0]=e[0].slice(d)}}getReadableStream(){return new o.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const a=i(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return a.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new a.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.NewRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const a=i(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return a.StorageRetryPolicy}});Object.defineProperty(t,"NewRetryPolicyFactory",{enumerable:true,get:function(){return a.NewRetryPolicyFactory}});const o=i(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new a.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const a=i(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,a.createDefaultHttpClient)()}return o}},32159:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const a=i(63611);const o=i(450);class AnonymousCredential extends o.Credential{create(e,t){return new a.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const a=i(77598);const o=i(35369);const d=i(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,a.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},3602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const a=i(77598);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,a.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},51382:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const a=i(61860);a.__exportStar(i(86381),t);var o=i(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return o.getCachedDefaultHttpClient}});a.__exportStar(i(81420),t);a.__exportStar(i(4399),t);a.__exportStar(i(32159),t);a.__exportStar(i(450),t);a.__exportStar(i(30849),t);a.__exportStar(i(77321),t);var d=i(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});a.__exportStar(i(63611),t);a.__exportStar(i(74238),t);a.__exportStar(i(83100),t);a.__exportStar(i(92505),t);a.__exportStar(i(78178),t);a.__exportStar(i(35369),t);a.__exportStar(i(53233),t);a.__exportStar(i(24174),t);a.__exportStar(i(3602),t)},81420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},32780:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("storage-common")},63611:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const a=i(74238);class AnonymousCredentialPolicy extends a.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const a=i(40590);class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;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)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const a=i(40590);const o=i(87779);const d=i(77925);const m=i(58218);class StorageBrowserPolicy extends a.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,m.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const a=i(87779);const o=i(77925);const d=i(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(a.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const a=i(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(a.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},24174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRequestFailureDetailsParserPolicyName=void 0;t.storageRequestFailureDetailsParserPolicy=storageRequestFailureDetailsParserPolicy;t.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:t.storageRequestFailureDetailsParserPolicyName,async sendRequest(e,t){try{const i=await t(e);return i}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}}}}},27734:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const a=i(83134);const o=i(40590);const d=i(77925);const m=i(58218);const h=i(32780);const P=i(38622);function NewRetryPolicyFactory(e){return{create:(t,i)=>new StorageRetryPolicy(t,i,e)}}const _={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:P.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const L=new a.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,i=_){super(e,t);this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:_.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):_.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:_.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:_.maxRetryDelayInMs):_.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:_.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:_.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,i){const a=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;if(!o){a.url=(0,m.setURLHost)(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=(0,m.setURLParameter)(a.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let P;try{h.logger.info(`RetryPolicy: =====> Try=${i} ${o?"Primary":"Secondary"}`);P=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(o,i,P)){return P}t=t||!o&&P.status===404}catch(e){h.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,i,P,e)){throw e}}await this.delay(o,i,e.abortSignal);return this.attemptSendRequest(e,t,++i)}shouldRetry(e,t,i,a){if(t>=this.retryOptions.maxTries){h.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const e of o){if(a.name.toUpperCase().includes(e)||a.message.toUpperCase().includes(e)||a.code&&a.code.toString().toUpperCase()===e){h.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(i||a){const t=i?i.status:a?a.statusCode:0;if(!e&&t===404){h.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){h.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i){if(i?.status>=400){const e=i.headers.get(d.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(a?.code==="PARSE_ERROR"&&a?.message.startsWith(`Error "Error: Unclosed root tag`)){h.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,i){let a=0;if(e){switch(this.retryOptions.retryPolicyType){case P.StorageRetryPolicyType.EXPONENTIAL:a=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case P.StorageRetryPolicyType.FIXED:a=this.retryOptions.retryDelayInMs;break}}else{a=Math.random()*1e3}h.logger.info(`RetryPolicy: Delay for ${a}ms`);return(0,m.delay)(a,i,L)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var i;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(i||(t.StorageRetryPolicyType=i={}))},78178:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const a=i(83134);const o=i(20778);const d=i(87779);const m=i(77321);const h=i(77925);const P=i(58218);const _=i(32780);t.storageRetryPolicyName="storageRetryPolicy";const L={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:m.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const j=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new a.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const i=e.retryPolicyType??L.retryPolicyType;const a=e.maxTries??L.maxTries;const H=e.retryDelayInMs??L.retryDelayInMs;const V=e.maxRetryDelayInMs??L.maxRetryDelayInMs;const K=e.secondaryHost??L.secondaryHost;const W=e.tryTimeoutInMs??L.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:i,error:o}){if(t>=a){_.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${a}, no further try.`);return false}if(o){for(const e of j){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){_.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){_.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(i||o){const t=i?.status??o?.statusCode??0;if(!e&&t===404){_.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){_.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i){if(i?.status>=400){const e=i.headers.get(h.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,t){let a=0;if(e){switch(i){case m.StorageRetryPolicyType.EXPONENTIAL:a=Math.min((Math.pow(2,t-1)-1)*H,V);break;case m.StorageRetryPolicyType.FIXED:a=H;break}}else{a=Math.random()*1e3}_.logger.info(`RetryPolicy: Delay for ${a}ms`);return a}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(W){e.url=(0,P.setURLParameter)(e.url,h.URLConstants.Parameters.TIMEOUT,String(Math.floor(W/1e3)))}const i=e.url;const a=K?(0,P.setURLHost)(e.url,K):undefined;let m=false;let L=1;let j=true;let H;let V;while(j){const h=m||!a||!["GET","HEAD","OPTIONS"].includes(e.method)||L%2===1;e.url=h?i:a;H=undefined;V=undefined;try{_.logger.info(`RetryPolicy: =====> Try=${L} ${h?"Primary":"Secondary"}`);H=await t(e);m=m||!h&&H.status===404}catch(e){if((0,o.isRestError)(e)){_.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);V=e}else{_.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}j=shouldRetry({isPrimaryRetry:h,attempt:L,response:H,error:V});if(j){await(0,P.delay)(calculateDelay(h,L),e.abortSignal,U)}L++}if(H){return H}throw V??new o.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const a=i(77925);const o=i(58218);const d=i(74238);const m=i(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,i){super(e,t);this.factory=i}signRequest(e){e.headers.set(a.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(a.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,a.HeaderConstants.DATE),this.getHeaderValueToSign(e,a.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,a.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,a.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,a.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,a.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const i=this.factory.computeHMACSHA256(t);e.headers.set(a.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`);return e}getHeaderValueToSign(e,t){const i=e.headers.get(t);if(!i){return""}if(t===a.HeaderConstants.CONTENT_LENGTH&&i==="0"){return""}return i}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(a.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,i)=>{if(t>0&&e.name.toLowerCase()===i[t-1].name.toLowerCase()){return false}return true}));let i="";t.forEach((e=>{i+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return i}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let i="";i+=`/${this.factory.accountName}${t}`;const a=(0,o.getURLQueries)(e.url);const d={};if(a){const e=[];for(const t in a){if(Object.prototype.hasOwnProperty.call(a,t)){const i=t.toLowerCase();d[i]=a[t];e.push(i)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(d[t])}`}}return i}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const a=i(77598);const o=i(77925);const d=i(58218);const m=i(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const i=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,a.createHmac)("sha256",e.accountKey).update(i,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const i=e.headers.get(t);if(!i){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&i==="0"){return""}return i}function getCanonicalizedHeadersString(e){let t=[];for(const[i,a]of e.headers){if(i.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:i,value:a})}}t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,i)=>{if(t>0&&e.name.toLowerCase()===i[t-1].name.toLowerCase()){return false}return true}));let i="";t.forEach((e=>{i+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return i}function getCanonicalizedResourceString(t){const i=(0,d.getURLPath)(t.url)||"/";let a="";a+=`/${e.accountName}${i}`;const o=(0,d.getURLQueries)(t.url);const m={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const i=t.toLowerCase();m[i]=o[t];e.push(i)}}e.sort();for(const t of e){a+=`\n${t}:${decodeURIComponent(m[t])}`}}return a}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const i=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const a=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);const o=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[i,a,o];let m=0;let h=0;let P=0;while(m<d.length){if(m===d.length-1&&h!==P){return h>P}const i=h<e.length?d[m][e[h].charCodeAt(0)]:1;const a=P<t.length?d[m][t[P].charCodeAt(0)]:1;if(i===1&&a===1){h=0;P=0;++m}else if(i===a){++h;++P}else if(i===0){++h}else if(a===0){++P}else{return i<a}}return false}},77925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={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"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const a=i(20778);const o=i(87779);const d=i(77925);function escapeURLPath(e){const t=new URL(e);let i=t.pathname;i=i||"/";i=escape(i);t.pathname=i;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const i=e.split(";");for(const e of i){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const i=e.split(";");for(const e of i){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=d.DevelopmentConnectionString}let i=getValueInConnString(e,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let a="";let o="";let d=Buffer.from("accountKey","base64");let m="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!i){a=getValueInConnString(e,"DefaultEndpointsProtocol");const t=a.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${o}.blob.${m}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let a=getValueInConnString(e,"AccountName");if(!a){a=getAccountNameFromUrl(i)}if(!i){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:i,accountName:a,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const i=new URL(e);let a=i.pathname;a=a?a.endsWith("/")?`${a}${t}`:`${a}/${t}`:t;i.pathname=a;return i.toString()}function setURLParameter(e,t,i){const a=new URL(e);const o=encodeURIComponent(t);const d=i?encodeURIComponent(i):undefined;const m=a.search===""?"?":a.search;const h=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){h.push(e)}}}if(d){h.push(`${o}=${d}`)}a.search=h.length?`?${h.join("&")}`:"";return a.toString()}function getURLParameter(e,t){const i=new URL(e);return i.searchParams.get(t)??undefined}function setURLHost(e,t){const i=new URL(e);i.hostname=t;return i.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 i=t.pathname;if(!i){throw new RangeError("Invalid url without valid path.")}let a=t.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${i}${a}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let i=t.split("&");i=i.filter((e=>{const t=e.indexOf("=");const i=e.lastIndexOf("=");return t>0&&t===i&&i<e.length-1}));const a={};for(const e of i){const t=e.split("=");const i=t[0];const o=t[1];a[i]=o}return a}function appendToURLQuery(e,t){const i=new URL(e);let a=i.search;if(a){a+="&"+t}else{a=t}i.search=a;return i.toString()}function truncatedISO8061Date(e,t=true){const i=e.toISOString();return t?i.substring(0,i.length-1)+"0000"+"Z":i.substring(0,i.length-5)+"Z"}function base64encode(e){return!o.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!o.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const i=48;const a=6;const o=i-a;if(e.length>o){e=e.slice(0,o)}const d=e+padStart(t.toString(),i-e.length,"0");return base64encode(d)}async function delay(e,t,i){return new Promise(((a,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(i)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}a()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,i=" "){if(String.prototype.padStart){return e.padStart(t,i)}i=i||" ";if(e.length>t){return e}else{t=t-e.length;if(t>i.length){i+=i.repeat(t/i.length)}return i.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,a.createHttpHeaders)();for(const[i,a]of e){if(i.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(i,"*****")}else if(i.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(i,sanitizeURL(a))}else{t.set(i,a)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let i;try{if(t.hostname.split(".")[1]==="blob"){i=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){i=t.pathname.split("/")[1]}else{i=""}return i}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)&&d.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;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},40406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},95331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var i=1e3;var a=1e6;var o=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function durationToMilliseconds(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function addDurations(e,t){var i=+e.seconds+ +t.seconds;var a=e.nanos+t.nanos;if(a>=o){i+=1;a-=o}return{seconds:i,nanos:a}}function toSecondsAndNanos(e){var t=Math.floor(e/i);var o=Math.floor(e%i*a);return{seconds:t,nanos:o}}function toMillis(e,t){var o=+e*i;var d=t/a;return o+d}},76954:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var a=i(50238);var o=i(95331);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:a.TestStepResultStatus.UNKNOWN,duration:(0,o.millisecondsToDuration)(0)}}function ordinal(e){return[a.TestStepResultStatus.UNKNOWN,a.TestStepResultStatus.PASSED,a.TestStepResultStatus.SKIPPED,a.TestStepResultStatus.PENDING,a.TestStepResultStatus.UNDEFINED,a.TestStepResultStatus.AMBIGUOUS,a.TestStepResultStatus.FAILED].indexOf(e)}},96088:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))a(t,e,i)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var h=d(i(95331));t.TimeConversion=h;var P=d(i(40406));t.IdGenerator=P;var _=i(19071);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return _.parseEnvelope}});var L=i(76954);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return L.getWorstTestStepResult}});var j=i(17028);Object.defineProperty(t,"version",{enumerable:true,get:function(){return j.version}});m(i(50238),t)},50238:function(e,t,i){"use strict";var a=this&&this.__decorate||function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.ExternalAttachment=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=t.TestCaseStarted=void 0;var o=i(40451);i(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=He.IDENTITY;this.mediaType=""}a([(0,o.Type)((function(){return ve}))],Attachment.prototype,"source",void 0);a([(0,o.Type)((function(){return qe}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var h=function(){function Envelope(){}a([(0,o.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);a([(0,o.Type)((function(){return _}))],Envelope.prototype,"externalAttachment",void 0);a([(0,o.Type)((function(){return L}))],Envelope.prototype,"gherkinDocument",void 0);a([(0,o.Type)((function(){return re}))],Envelope.prototype,"hook",void 0);a([(0,o.Type)((function(){return ae}))],Envelope.prototype,"meta",void 0);a([(0,o.Type)((function(){return le}))],Envelope.prototype,"parameterType",void 0);a([(0,o.Type)((function(){return ue}))],Envelope.prototype,"parseError",void 0);a([(0,o.Type)((function(){return de}))],Envelope.prototype,"pickle",void 0);a([(0,o.Type)((function(){return Te}))],Envelope.prototype,"suggestion",void 0);a([(0,o.Type)((function(){return ve}))],Envelope.prototype,"source",void 0);a([(0,o.Type)((function(){return we}))],Envelope.prototype,"stepDefinition",void 0);a([(0,o.Type)((function(){return Re}))],Envelope.prototype,"testCase",void 0);a([(0,o.Type)((function(){return ke}))],Envelope.prototype,"testCaseFinished",void 0);a([(0,o.Type)((function(){return Ie}))],Envelope.prototype,"testCaseStarted",void 0);a([(0,o.Type)((function(){return De}))],Envelope.prototype,"testRunFinished",void 0);a([(0,o.Type)((function(){return Me}))],Envelope.prototype,"testRunStarted",void 0);a([(0,o.Type)((function(){return $e}))],Envelope.prototype,"testStepFinished",void 0);a([(0,o.Type)((function(){return Ue}))],Envelope.prototype,"testStepStarted",void 0);a([(0,o.Type)((function(){return Le}))],Envelope.prototype,"testRunHookStarted",void 0);a([(0,o.Type)((function(){return Be}))],Envelope.prototype,"testRunHookFinished",void 0);a([(0,o.Type)((function(){return ze}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=h;var P=function(){function Exception(){this.type=""}return Exception}();t.Exception=P;var _=function(){function ExternalAttachment(){this.url="";this.mediaType=""}a([(0,o.Type)((function(){return qe}))],ExternalAttachment.prototype,"timestamp",void 0);return ExternalAttachment}();t.ExternalAttachment=_;var L=function(){function GherkinDocument(){this.comments=[]}a([(0,o.Type)((function(){return W}))],GherkinDocument.prototype,"feature",void 0);a([(0,o.Type)((function(){return U}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=L;var j=function(){function Background(){this.location=new ie;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Background.prototype,"location",void 0);a([(0,o.Type)((function(){return Z}))],Background.prototype,"steps",void 0);return Background}();t.Background=j;var U=function(){function Comment(){this.location=new ie;this.text=""}a([(0,o.Type)((function(){return ie}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=U;var H=function(){function DataTable(){this.location=new ie;this.rows=[]}a([(0,o.Type)((function(){return ie}))],DataTable.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=H;var V=function(){function DocString(){this.location=new ie;this.content="";this.delimiter=""}a([(0,o.Type)((function(){return ie}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=V;var K=function(){function Examples(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Examples.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Examples.prototype,"tags",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tableHeader",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=K;var W=function(){function Feature(){this.location=new ie;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}a([(0,o.Type)((function(){return ie}))],Feature.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Feature.prototype,"tags",void 0);a([(0,o.Type)((function(){return J}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=W;var J=function(){function FeatureChild(){}a([(0,o.Type)((function(){return X}))],FeatureChild.prototype,"rule",void 0);a([(0,o.Type)((function(){return j}))],FeatureChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Q}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=J;var X=function(){function Rule(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Rule.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Rule.prototype,"tags",void 0);a([(0,o.Type)((function(){return Y}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=X;var Y=function(){function RuleChild(){}a([(0,o.Type)((function(){return j}))],RuleChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Q}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=Y;var Q=function(){function Scenario(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Scenario.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Scenario.prototype,"tags",void 0);a([(0,o.Type)((function(){return Z}))],Scenario.prototype,"steps",void 0);a([(0,o.Type)((function(){return K}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Q;var Z=function(){function Step(){this.location=new ie;this.keyword="";this.text="";this.id=""}a([(0,o.Type)((function(){return ie}))],Step.prototype,"location",void 0);a([(0,o.Type)((function(){return V}))],Step.prototype,"docString",void 0);a([(0,o.Type)((function(){return H}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=Z;var ee=function(){function TableCell(){this.location=new ie;this.value=""}a([(0,o.Type)((function(){return ie}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=ee;var te=function(){function TableRow(){this.location=new ie;this.cells=[];this.id=""}a([(0,o.Type)((function(){return ie}))],TableRow.prototype,"location",void 0);a([(0,o.Type)((function(){return ee}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=te;var ne=function(){function Tag(){this.location=new ie;this.name="";this.id=""}a([(0,o.Type)((function(){return ie}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=ne;var re=function(){function Hook(){this.id="";this.sourceReference=new Se}a([(0,o.Type)((function(){return Se}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=re;var ie=function(){function Location(){this.line=0}return Location}();t.Location=ie;var ae=function(){function Meta(){this.protocolVersion="";this.implementation=new ce;this.runtime=new ce;this.os=new ce;this.cpu=new ce}a([(0,o.Type)((function(){return ce}))],Meta.prototype,"implementation",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"runtime",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"os",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"cpu",void 0);a([(0,o.Type)((function(){return oe}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=ae;var oe=function(){function Ci(){this.name=""}a([(0,o.Type)((function(){return se}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=oe;var se=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=se;var ce=function(){function Product(){this.name=""}return Product}();t.Product=ce;var le=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}a([(0,o.Type)((function(){return Se}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=le;var ue=function(){function ParseError(){this.source=new Se;this.message=""}a([(0,o.Type)((function(){return Se}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=ue;var de=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}a([(0,o.Type)((function(){return ie}))],Pickle.prototype,"location",void 0);a([(0,o.Type)((function(){return me}))],Pickle.prototype,"steps",void 0);a([(0,o.Type)((function(){return be}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=de;var pe=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=pe;var me=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}a([(0,o.Type)((function(){return fe}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=me;var fe=function(){function PickleStepArgument(){}a([(0,o.Type)((function(){return pe}))],PickleStepArgument.prototype,"docString",void 0);a([(0,o.Type)((function(){return he}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=fe;var he=function(){function PickleTable(){this.rows=[]}a([(0,o.Type)((function(){return ye}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=he;var ge=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=ge;var ye=function(){function PickleTableRow(){this.cells=[]}a([(0,o.Type)((function(){return ge}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=ye;var be=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=be;var ve=function(){function Source(){this.uri="";this.data="";this.mediaType=Ve.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=ve;var Se=function(){function SourceReference(){}a([(0,o.Type)((function(){return Ce}))],SourceReference.prototype,"javaMethod",void 0);a([(0,o.Type)((function(){return Ee}))],SourceReference.prototype,"javaStackTraceElement",void 0);a([(0,o.Type)((function(){return ie}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=Se;var Ce=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Ce;var Ee=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ee;var we=function(){function StepDefinition(){this.id="";this.pattern=new xe;this.sourceReference=new Se}a([(0,o.Type)((function(){return xe}))],StepDefinition.prototype,"pattern",void 0);a([(0,o.Type)((function(){return Se}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=we;var xe=function(){function StepDefinitionPattern(){this.source="";this.type=Ke.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=xe;var Te=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}a([(0,o.Type)((function(){return Pe}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=Te;var Pe=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=Pe;var Re=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}a([(0,o.Type)((function(){return Ae}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Re;var _e=function(){function Group(){}a([(0,o.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=_e;var Oe=function(){function StepMatchArgument(){this.group=new _e}a([(0,o.Type)((function(){return _e}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=Oe;var Ne=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}a([(0,o.Type)((function(){return Oe}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Ne;var Ae=function(){function TestStep(){this.id=""}a([(0,o.Type)((function(){return Ne}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=Ae;var ke=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new qe;this.willBeRetried=false}a([(0,o.Type)((function(){return qe}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=ke;var Ie=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=Ie;var De=function(){function TestRunFinished(){this.success=false;this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunFinished.prototype,"timestamp",void 0);a([(0,o.Type)((function(){return P}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=De;var Be=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new je;this.timestamp=new qe}a([(0,o.Type)((function(){return je}))],TestRunHookFinished.prototype,"result",void 0);a([(0,o.Type)((function(){return qe}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=Be;var Le=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=Le;var Me=function(){function TestRunStarted(){this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=Me;var $e=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new je;this.timestamp=new qe}a([(0,o.Type)((function(){return je}))],TestStepFinished.prototype,"testStepResult",void 0);a([(0,o.Type)((function(){return qe}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=$e;var je=function(){function TestStepResult(){this.duration=new m;this.status=Je.UNKNOWN}a([(0,o.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);a([(0,o.Type)((function(){return P}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=je;var Ue=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=Ue;var qe=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=qe;var ze=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=ze;var He;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(He||(t.AttachmentContentEncoding=He={}));var Fe;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(Fe||(t.HookType=Fe={}));var Ge;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(Ge||(t.PickleStepType=Ge={}));var Ve;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Ve||(t.SourceMediaType=Ve={}));var Ke;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ke||(t.StepDefinitionPatternType=Ke={}));var We;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(We||(t.StepKeywordType=We={}));var Je;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(Je||(t.TestStepResultStatus=Je={}))},19071:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var a=i(50238);var o=i(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,o.plainToClass)(a.Envelope,t)}},17028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="32.2.0"},38091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},48024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var i=1e3;var a=1e6;var o=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function durationToMilliseconds(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function addDurations(e,t){var i=+e.seconds+ +t.seconds;var a=e.nanos+t.nanos;if(a>=o){i+=1;a-=o}return{seconds:i,nanos:a}}function toSecondsAndNanos(e){var t=Math.floor(e/i);var o=Math.floor(e%i*a);return{seconds:t,nanos:o}}function toMillis(e,t){var o=+e*i;var d=t/a;return o+d}},36809:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var a=i(36849);var o=i(48024);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:a.TestStepResultStatus.UNKNOWN,duration:(0,o.millisecondsToDuration)(0)}}function ordinal(e){return[a.TestStepResultStatus.UNKNOWN,a.TestStepResultStatus.PASSED,a.TestStepResultStatus.SKIPPED,a.TestStepResultStatus.PENDING,a.TestStepResultStatus.UNDEFINED,a.TestStepResultStatus.AMBIGUOUS,a.TestStepResultStatus.FAILED].indexOf(e)}},28569:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))a(t,e,i)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var h=d(i(48024));t.TimeConversion=h;var P=d(i(38091));t.IdGenerator=P;var _=i(49782);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return _.parseEnvelope}});var L=i(36809);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return L.getWorstTestStepResult}});var j=i(32505);Object.defineProperty(t,"version",{enumerable:true,get:function(){return j.version}});m(i(36849),t)},36849:function(e,t,i){"use strict";var a=this&&this.__decorate||function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseStarted=t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=void 0;var o=i(40451);i(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=ze.IDENTITY;this.mediaType=""}a([(0,o.Type)((function(){return be}))],Attachment.prototype,"source",void 0);a([(0,o.Type)((function(){return Ue}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var h=function(){function Envelope(){}a([(0,o.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);a([(0,o.Type)((function(){return _}))],Envelope.prototype,"gherkinDocument",void 0);a([(0,o.Type)((function(){return ne}))],Envelope.prototype,"hook",void 0);a([(0,o.Type)((function(){return ie}))],Envelope.prototype,"meta",void 0);a([(0,o.Type)((function(){return ce}))],Envelope.prototype,"parameterType",void 0);a([(0,o.Type)((function(){return le}))],Envelope.prototype,"parseError",void 0);a([(0,o.Type)((function(){return ue}))],Envelope.prototype,"pickle",void 0);a([(0,o.Type)((function(){return xe}))],Envelope.prototype,"suggestion",void 0);a([(0,o.Type)((function(){return be}))],Envelope.prototype,"source",void 0);a([(0,o.Type)((function(){return Ee}))],Envelope.prototype,"stepDefinition",void 0);a([(0,o.Type)((function(){return Pe}))],Envelope.prototype,"testCase",void 0);a([(0,o.Type)((function(){return Ae}))],Envelope.prototype,"testCaseFinished",void 0);a([(0,o.Type)((function(){return ke}))],Envelope.prototype,"testCaseStarted",void 0);a([(0,o.Type)((function(){return Ie}))],Envelope.prototype,"testRunFinished",void 0);a([(0,o.Type)((function(){return Le}))],Envelope.prototype,"testRunStarted",void 0);a([(0,o.Type)((function(){return Me}))],Envelope.prototype,"testStepFinished",void 0);a([(0,o.Type)((function(){return je}))],Envelope.prototype,"testStepStarted",void 0);a([(0,o.Type)((function(){return Be}))],Envelope.prototype,"testRunHookStarted",void 0);a([(0,o.Type)((function(){return De}))],Envelope.prototype,"testRunHookFinished",void 0);a([(0,o.Type)((function(){return qe}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=h;var P=function(){function Exception(){this.type=""}return Exception}();t.Exception=P;var _=function(){function GherkinDocument(){this.comments=[]}a([(0,o.Type)((function(){return K}))],GherkinDocument.prototype,"feature",void 0);a([(0,o.Type)((function(){return j}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=_;var L=function(){function Background(){this.location=new re;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}a([(0,o.Type)((function(){return re}))],Background.prototype,"location",void 0);a([(0,o.Type)((function(){return Q}))],Background.prototype,"steps",void 0);return Background}();t.Background=L;var j=function(){function Comment(){this.location=new re;this.text=""}a([(0,o.Type)((function(){return re}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=j;var U=function(){function DataTable(){this.location=new re;this.rows=[]}a([(0,o.Type)((function(){return re}))],DataTable.prototype,"location",void 0);a([(0,o.Type)((function(){return ee}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=U;var H=function(){function DocString(){this.location=new re;this.content="";this.delimiter=""}a([(0,o.Type)((function(){return re}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=H;var V=function(){function Examples(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}a([(0,o.Type)((function(){return re}))],Examples.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tags",void 0);a([(0,o.Type)((function(){return ee}))],Examples.prototype,"tableHeader",void 0);a([(0,o.Type)((function(){return ee}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=V;var K=function(){function Feature(){this.location=new re;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}a([(0,o.Type)((function(){return re}))],Feature.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Feature.prototype,"tags",void 0);a([(0,o.Type)((function(){return W}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=K;var W=function(){function FeatureChild(){}a([(0,o.Type)((function(){return J}))],FeatureChild.prototype,"rule",void 0);a([(0,o.Type)((function(){return L}))],FeatureChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Y}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=W;var J=function(){function Rule(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}a([(0,o.Type)((function(){return re}))],Rule.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Rule.prototype,"tags",void 0);a([(0,o.Type)((function(){return X}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=J;var X=function(){function RuleChild(){}a([(0,o.Type)((function(){return L}))],RuleChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Y}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=X;var Y=function(){function Scenario(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}a([(0,o.Type)((function(){return re}))],Scenario.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Scenario.prototype,"tags",void 0);a([(0,o.Type)((function(){return Q}))],Scenario.prototype,"steps",void 0);a([(0,o.Type)((function(){return V}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Y;var Q=function(){function Step(){this.location=new re;this.keyword="";this.text="";this.id=""}a([(0,o.Type)((function(){return re}))],Step.prototype,"location",void 0);a([(0,o.Type)((function(){return H}))],Step.prototype,"docString",void 0);a([(0,o.Type)((function(){return U}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=Q;var Z=function(){function TableCell(){this.location=new re;this.value=""}a([(0,o.Type)((function(){return re}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=Z;var ee=function(){function TableRow(){this.location=new re;this.cells=[];this.id=""}a([(0,o.Type)((function(){return re}))],TableRow.prototype,"location",void 0);a([(0,o.Type)((function(){return Z}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=ee;var te=function(){function Tag(){this.location=new re;this.name="";this.id=""}a([(0,o.Type)((function(){return re}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=te;var ne=function(){function Hook(){this.id="";this.sourceReference=new ve}a([(0,o.Type)((function(){return ve}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=ne;var re=function(){function Location(){this.line=0}return Location}();t.Location=re;var ie=function(){function Meta(){this.protocolVersion="";this.implementation=new se;this.runtime=new se;this.os=new se;this.cpu=new se}a([(0,o.Type)((function(){return se}))],Meta.prototype,"implementation",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"runtime",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"os",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"cpu",void 0);a([(0,o.Type)((function(){return ae}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=ie;var ae=function(){function Ci(){this.name=""}a([(0,o.Type)((function(){return oe}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=ae;var oe=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=oe;var se=function(){function Product(){this.name=""}return Product}();t.Product=se;var ce=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}a([(0,o.Type)((function(){return ve}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=ce;var le=function(){function ParseError(){this.source=new ve;this.message=""}a([(0,o.Type)((function(){return ve}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=le;var ue=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}a([(0,o.Type)((function(){return pe}))],Pickle.prototype,"steps",void 0);a([(0,o.Type)((function(){return ye}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=ue;var de=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=de;var pe=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}a([(0,o.Type)((function(){return me}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=pe;var me=function(){function PickleStepArgument(){}a([(0,o.Type)((function(){return de}))],PickleStepArgument.prototype,"docString",void 0);a([(0,o.Type)((function(){return fe}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=me;var fe=function(){function PickleTable(){this.rows=[]}a([(0,o.Type)((function(){return ge}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=fe;var he=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=he;var ge=function(){function PickleTableRow(){this.cells=[]}a([(0,o.Type)((function(){return he}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=ge;var ye=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=ye;var be=function(){function Source(){this.uri="";this.data="";this.mediaType=Ge.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=be;var ve=function(){function SourceReference(){}a([(0,o.Type)((function(){return Se}))],SourceReference.prototype,"javaMethod",void 0);a([(0,o.Type)((function(){return Ce}))],SourceReference.prototype,"javaStackTraceElement",void 0);a([(0,o.Type)((function(){return re}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=ve;var Se=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Se;var Ce=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ce;var Ee=function(){function StepDefinition(){this.id="";this.pattern=new we;this.sourceReference=new ve}a([(0,o.Type)((function(){return we}))],StepDefinition.prototype,"pattern",void 0);a([(0,o.Type)((function(){return ve}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=Ee;var we=function(){function StepDefinitionPattern(){this.source="";this.type=Ve.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=we;var xe=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}a([(0,o.Type)((function(){return Te}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=xe;var Te=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=Te;var Pe=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}a([(0,o.Type)((function(){return Ne}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Pe;var Re=function(){function Group(){this.children=[]}a([(0,o.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=Re;var _e=function(){function StepMatchArgument(){this.group=new Re}a([(0,o.Type)((function(){return Re}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=_e;var Oe=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}a([(0,o.Type)((function(){return _e}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Oe;var Ne=function(){function TestStep(){this.id=""}a([(0,o.Type)((function(){return Oe}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=Ne;var Ae=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new Ue;this.willBeRetried=false}a([(0,o.Type)((function(){return Ue}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=Ae;var ke=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=ke;var Ie=function(){function TestRunFinished(){this.success=false;this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunFinished.prototype,"timestamp",void 0);a([(0,o.Type)((function(){return P}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=Ie;var De=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new $e;this.timestamp=new Ue}a([(0,o.Type)((function(){return $e}))],TestRunHookFinished.prototype,"result",void 0);a([(0,o.Type)((function(){return Ue}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=De;var Be=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=Be;var Le=function(){function TestRunStarted(){this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=Le;var Me=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new $e;this.timestamp=new Ue}a([(0,o.Type)((function(){return $e}))],TestStepFinished.prototype,"testStepResult",void 0);a([(0,o.Type)((function(){return Ue}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=Me;var $e=function(){function TestStepResult(){this.duration=new m;this.status=We.UNKNOWN}a([(0,o.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);a([(0,o.Type)((function(){return P}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=$e;var je=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=je;var Ue=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=Ue;var qe=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=qe;var ze;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(ze||(t.AttachmentContentEncoding=ze={}));var He;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(He||(t.HookType=He={}));var Fe;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(Fe||(t.PickleStepType=Fe={}));var Ge;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Ge||(t.SourceMediaType=Ge={}));var Ve;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ve||(t.StepDefinitionPatternType=Ve={}));var Ke;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(Ke||(t.StepKeywordType=Ke={}));var We;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(We||(t.TestStepResultStatus=We={}))},49782:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var a=i(36849);var o=i(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,o.plainToClass)(a.Envelope,t)}},32505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="30.1.0"},76637:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AclRoleAccessorMethods=t.Acl=void 0;const a=i(60206);class AclRoleAccessorMethods{constructor(){this.owners={};this.readers={};this.writers={};this.owners={};this.readers={};this.writers={};AclRoleAccessorMethods.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(e){const t=AclRoleAccessorMethods.accessMethods;const i=AclRoleAccessorMethods.entities;const a=e.toLowerCase()+"s";this[a]=i.reduce(((i,a)=>{const o=a.charAt(a.length-1)==="-";t.forEach((t=>{let d=t+a[0].toUpperCase()+a.substring(1);if(o){d=d.replace("-","")}i[d]=(i,d,m)=>{let h;if(typeof d==="function"){m=d;d={}}if(o){h=a+i}else{h=a;m=i}d=Object.assign({entity:h,role:e},d);const P=[d];if(typeof m==="function"){P.push(m)}return this[t].apply(this,P)}}));return i}),{})}}t.AclRoleAccessorMethods=AclRoleAccessorMethods;AclRoleAccessorMethods.accessMethods=["add","delete"];AclRoleAccessorMethods.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];AclRoleAccessorMethods.roles=["OWNER","READER","WRITER"];class Acl extends AclRoleAccessorMethods{constructor(e){super();this.pathPrefix=e.pathPrefix;this.request_=e.request}add(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"POST",uri:"",qs:i,maxRetries:0,json:{entity:e.entity,role:e.role.toUpperCase()}},((e,i)=>{if(e){t(e,null,i);return}t(null,this.makeAclObject_(i),i)}))}delete(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"DELETE",uri:"/"+encodeURIComponent(e.entity),qs:i},((e,i)=>{t(e,i)}))}get(e,t){const i=typeof e==="object"?e:null;const a=typeof e==="function"?e:t;let o="";const d={};if(i){o="/"+encodeURIComponent(i.entity);if(i.generation){d.generation=i.generation}if(i.userProject){d.userProject=i.userProject}}this.request({uri:o,qs:d},((e,t)=>{if(e){a(e,null,t);return}let i;if(t.items){i=t.items.map(this.makeAclObject_)}else{i=this.makeAclObject_(t)}a(null,i,t)}))}update(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"PUT",uri:"/"+encodeURIComponent(e.entity),qs:i,json:{role:e.role.toUpperCase()}},((e,i)=>{if(e){t(e,null,i);return}t(null,this.makeAclObject_(i),i)}))}makeAclObject_(e){const t={entity:e.entity,role:e.role};if(e.projectTeam){t.projectTeam=e.projectTeam}return t}request(e,t){e.uri=this.pathPrefix+e.uri;this.request_(e,t)}}t.Acl=Acl;
|
|
108
|
+
*/Object.defineProperty(t,"__esModule",{value:true});t.teenyRequest=t.RequestError=void 0;const a=i(26705);const o=i(2203);const d=i(58993);const m=i(34003);const h=i(97745);const P=i(71546);class RequestError extends Error{}t.RequestError=RequestError;function requestToFetchOptions(e){const t={method:e.method||"GET",...e.timeout&&{timeout:e.timeout},...typeof e.gzip==="boolean"&&{compress:e.gzip}};if(typeof e.json==="object"){e.headers=e.headers||{};e.headers["Content-Type"]="application/json";t.body=JSON.stringify(e.json)}else{if(Buffer.isBuffer(e.body)){t.body=e.body}else if(typeof e.body!=="string"){t.body=JSON.stringify(e.body)}else{t.body=e.body}}t.headers=e.headers;let a=e.uri||e.url;if(!a){throw new Error("Missing uri or url in reqOpts.")}if(e.useQuerystring===true||typeof e.qs==="object"){const t=i(83480);const o=t.stringify(e.qs);a=a+"?"+o}t.agent=(0,m.getAgent)(a,e);return{uri:a,options:t}}function fetchToRequestResponse(e,t){const i={};i.agent=e.agent||false;i.headers=e.headers||{};i.href=t.url;const a={};t.headers.forEach(((e,t)=>a[t]=e));const o=Object.assign(t.body,{statusCode:t.status,statusMessage:t.statusText,request:i,body:t.body,headers:a,toJSON:()=>({headers:a})});return o}function createMultipartStream(e,t){const i=`--${e}--`;const a=new o.PassThrough;for(const o of t){const t=`--${e}\r\nContent-Type: ${o["Content-Type"]}\r\n\r\n`;a.write(t);if(typeof o.body==="string"){a.write(o.body);a.write("\r\n")}else{o.body.pipe(a,{end:false});o.body.on("end",(()=>{a.write("\r\n");a.write(i);a.end()}))}}return a}function teenyRequest(e,t){const{uri:i,options:m}=requestToFetchOptions(e);const h=e.multipart;if(e.multipart&&h.length===2){if(!t){throw new Error("Multipart without callback is not implemented.")}const e=d.v4();m.headers["Content-Type"]=`multipart/related; boundary=${e}`;m.body=createMultipartStream(e,h);teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const a=fetchToRequestResponse(m,e);const o=a.body;if(i==="application/json"||i==="application/json; charset=utf-8"){e.json().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}));return}e.text().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}))}),(e=>{teenyRequest.stats.requestFinished();t(e,null,null)}));return}if(t===undefined){const e=P(new o.PassThrough);let t;e.once("reading",(()=>{if(t){(0,o.pipeline)(t,e,(()=>{}))}else{e.once("response",(()=>{(0,o.pipeline)(t,e,(()=>{}))}))}}));m.compress=false;teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((i=>{teenyRequest.stats.requestFinished();t=i.body;t.on("error",(t=>{e.emit("error",t)}));const a=fetchToRequestResponse(m,i);e.emit("response",a)}),(t=>{teenyRequest.stats.requestFinished();e.emit("error",t)}));return e}teenyRequest.stats.requestStarting();(0,a.default)(i,m).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const a=fetchToRequestResponse(m,e);const o=a.body;if(i==="application/json"||i==="application/json; charset=utf-8"){if(a.statusCode===204){t(null,a,o);return}e.json().then((e=>{a.body=e;t(null,a,e)}),(e=>{t(e,a,o)}));return}e.text().then((i=>{const a=fetchToRequestResponse(m,e);a.body=i;t(null,a,i)}),(e=>{t(e,a,o)}))}),(e=>{teenyRequest.stats.requestFinished();t(e,null,null)}));return}t.teenyRequest=teenyRequest;teenyRequest.defaults=e=>(t,i)=>{const a={...e,...t};if(i===undefined){return teenyRequest(a)}teenyRequest(a,i)};teenyRequest.stats=new h.TeenyStatistics;teenyRequest.resetStats=()=>{teenyRequest.stats=new h.TeenyStatistics(teenyRequest.stats.getOptions())}},77954:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=i(24434);const d=a(i(2830));const m=a(i(44446));const h=d.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends o.EventEmitter{constructor(e,t){super();let i=t;if(typeof e==="function"){this.callback=e}else if(e){i=e}this.timeout=null;if(i&&typeof i.timeout==="number"){this.timeout=i.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,i){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const i=Object.assign({},t);if(typeof i.secureEndpoint!=="boolean"){i.secureEndpoint=isSecureEndpoint()}if(i.host==null){i.host="localhost"}if(i.port==null){i.port=i.secureEndpoint?443:80}if(i.protocol==null){i.protocol=i.secureEndpoint?"https:":"http:"}if(i.host&&i.path){delete i.path}delete i.agent;delete i.hostname;delete i._defaultAgent;delete i.defaultPort;delete i.createConnection;e._last=true;e.shouldKeepAlive=false;let a=false;let o=null;const d=i.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{o=null;a=true;const e=new Error(`A "socket" was not created for HTTP request before ${d}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(a)return;if(o!==null){clearTimeout(o);o=null}onerror(e)};const onsocket=t=>{if(a)return;if(o!=null){clearTimeout(o);o=null}if(isAgent(t)){h("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,i);return}if(t){t.once("free",(()=>{this.freeSocket(t,i)}));e.onSocket(t);return}const d=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(d)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){h("Converting legacy callback function to promise");this.promisifiedCallback=m.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof d==="number"&&d>0){o=setTimeout(ontimeout,d)}if("port"in i&&typeof i.port!=="number"){i.port=Number(i.port)}try{h("Resolving socket for %o request: %o",i.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,i)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){h("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){h("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},44446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,i){return new Promise(((a,o)=>{e.call(this,t,i,((e,t)=>{if(e){o(e)}else{a(t)}}))}))}}t["default"]=promisify},23034:function(e,t,i){"use strict";var a=this&&this.__awaiter||function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const d=o(i(69278));const m=o(i(64756));const h=o(i(87016));const P=o(i(2830));const _=o(i(48662));const L=i(77954);const j=(0,P.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends L.Agent{constructor(e){let t;if(typeof e==="string"){t=h.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}j("Creating new HttpProxyAgent instance: %o",t);super(t);const i=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,t){return a(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:a}=this;const o=h.default.parse(e.path);if(!o.protocol){o.protocol="http:"}if(!o.hostname){o.hostname=t.hostname||t.host||null}if(o.port==null&&typeof t.port){o.port=String(t.port)}if(o.port==="80"){o.port=""}e.path=h.default.format(o);if(i.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`)}let P;if(a){j("Creating `tls.Socket`: %o",i);P=m.default.connect(i)}else{j("Creating `net.Socket`: %o",i);P=d.default.connect(i)}if(e._header){let t;let i;j("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){j("Patching connection write() output buffer with updated header");t=e.output[0];i=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(i);j("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){j("Patching connection write() output buffer with updated header");t=e.outputData[0].data;i=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(i);j("Output buffer: %o",e.outputData[0].data)}}yield(0,_.default)(P,"connect");return P}))}}t["default"]=HttpProxyAgent},875:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=a(i(23034));function createHttpProxyAgent(e){return new o.default(e)}(function(e){e.HttpProxyAgent=o.default;e.prototype=o.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},15299:function(e,t,i){"use strict";var a=this&&this.__awaiter||function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const d=o(i(69278));const m=o(i(64756));const h=o(i(87016));const P=o(i(42613));const _=o(i(2830));const L=i(77954);const j=o(i(27742));const U=_.default("https-proxy-agent:agent");class HttpsProxyAgent extends L.Agent{constructor(e){let t;if(typeof e==="string"){t=h.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}U("creating new HttpsProxyAgent instance: %o",t);super(t);const i=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in i)){i.ALPNProtocols=["http 1.1"]}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,t){return a(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:a}=this;let o;if(a){U("Creating `tls.Socket`: %o",i);o=m.default.connect(i)}else{U("Creating `net.Socket`: %o",i);o=d.default.connect(i)}const h=Object.assign({},i.headers);const _=`${t.host}:${t.port}`;let L=`CONNECT ${_} HTTP/1.1\r\n`;if(i.auth){h["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`}let{host:H,port:V,secureEndpoint:K}=t;if(!isDefaultPort(V,K)){H+=`:${V}`}h.Host=H;h.Connection="close";for(const e of Object.keys(h)){L+=`${e}: ${h[e]}\r\n`}const W=j.default(o);o.write(`${L}\r\n`);const{statusCode:J,buffered:X}=yield W;if(J===200){e.once("socket",resume);if(t.secureEndpoint){U("Upgrading socket connection to TLS");const e=t.servername||t.host;return m.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:o,servername:e}))}return o}o.destroy();const Y=new d.default.Socket({writable:false});Y.readable=true;e.once("socket",(e=>{U("replaying proxy buffer for failed request");P.default(e.listenerCount("data")>0);e.push(X);e.push(null)}));return Y}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const i={};let a;for(a in e){if(!t.includes(a)){i[a]=e[a]}}return i}},6518:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=a(i(15299));function createHttpsProxyAgent(e){return new o.default(e)}(function(e){e.HttpsProxyAgent=o.default;e.prototype=o.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},27742:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=a(i(2830));const d=o.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,i)=>{let a=0;const o=[];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("close",onclose);e.removeListener("readable",read)}function onclose(e){d("onclose had error %o",e)}function onend(){d("onend")}function onerror(e){cleanup();d("onerror %o",e);i(e)}function ondata(e){o.push(e);a+=e.length;const i=Buffer.concat(o,a);const m=i.indexOf("\r\n\r\n");if(m===-1){d("have not received end of HTTP headers yet...");read();return}const h=i.toString("ascii",0,i.indexOf("\r\n"));const P=+h.split(" ")[1];d("got proxy server response: %o",h);t({statusCode:P,buffered:i})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},58993:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return j.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return P.default}});var a=_interopRequireDefault(i(64684));var o=_interopRequireDefault(i(53142));var d=_interopRequireDefault(i(69655));var m=_interopRequireDefault(i(70880));var h=_interopRequireDefault(i(40194));var P=_interopRequireDefault(i(66257));var _=_interopRequireDefault(i(61579));var L=_interopRequireDefault(i(49019));var j=_interopRequireDefault(i(7814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},88061:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var o=md5;t["default"]=o},7966:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o={randomUUID:a.default.randomUUID};t["default"]=o},40194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";t["default"]=i},7814:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let t;const i=new Uint8Array(16);i[0]=(t=parseInt(e.slice(0,8),16))>>>24;i[1]=t>>>16&255;i[2]=t>>>8&255;i[3]=t&255;i[4]=(t=parseInt(e.slice(9,13),16))>>>8;i[5]=t&255;i[6]=(t=parseInt(e.slice(14,18),16))>>>8;i[7]=t&255;i[8]=(t=parseInt(e.slice(19,23),16))>>>8;i[9]=t&255;i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=t/4294967296&255;i[12]=t>>>24&255;i[13]=t>>>16&255;i[14]=t>>>8&255;i[15]=t&255;return i}var o=parse;t["default"]=o},1118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=i},88540:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=new Uint8Array(256);let d=o.length;function rng(){if(d>o.length-16){a.default.randomFillSync(o);d=0}return o.slice(d,d+=16)}},11352:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var o=sha1;t["default"]=o},49019:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.unsafeStringify=unsafeStringify;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=[];for(let e=0;e<256;++e){o.push((e+256).toString(16).slice(1))}function unsafeStringify(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}function stringify(e,t=0){const i=unsafeStringify(e,t);if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var d=stringify;t["default"]=d},64684:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(88540));var o=i(49019);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let d;let m;let h=0;let P=0;function v1(e,t,i){let _=t&&i||0;const L=t||new Array(16);e=e||{};let j=e.node||d;let U=e.clockseq!==undefined?e.clockseq:m;if(j==null||U==null){const t=e.random||(e.rng||a.default)();if(j==null){j=d=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(U==null){U=m=(t[6]<<8|t[7])&16383}}let H=e.msecs!==undefined?e.msecs:Date.now();let V=e.nsecs!==undefined?e.nsecs:P+1;const K=H-h+(V-P)/1e4;if(K<0&&e.clockseq===undefined){U=U+1&16383}if((K<0||H>h)&&e.nsecs===undefined){V=0}if(V>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}h=H;P=V;m=U;H+=122192928e5;const W=((H&268435455)*1e4+V)%4294967296;L[_++]=W>>>24&255;L[_++]=W>>>16&255;L[_++]=W>>>8&255;L[_++]=W&255;const J=H/4294967296*1e4&268435455;L[_++]=J>>>8&255;L[_++]=J&255;L[_++]=J>>>24&15|16;L[_++]=J>>>16&255;L[_++]=U>>>8|128;L[_++]=U&255;for(let e=0;e<6;++e){L[_+e]=j[e]}return t||(0,o.unsafeStringify)(L)}var _=v1;t["default"]=_},53142:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(44575));var o=_interopRequireDefault(i(88061));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v3",48,o.default);var m=d;t["default"]=m},44575:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.URL=t.DNS=void 0;t["default"]=v35;var a=i(49019);var o=_interopRequireDefault(i(7814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let i=0;i<e.length;++i){t.push(e.charCodeAt(i))}return t}const d="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=d;const m="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=m;function v35(e,t,i){function generateUUID(e,d,m,h){var P;if(typeof e==="string"){e=stringToBytes(e)}if(typeof d==="string"){d=(0,o.default)(d)}if(((P=d)===null||P===void 0?void 0:P.length)!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let _=new Uint8Array(16+e.length);_.set(d);_.set(e,d.length);_=i(_);_[6]=_[6]&15|t;_[8]=_[8]&63|128;if(m){h=h||0;for(let e=0;e<16;++e){m[h+e]=_[e]}return m}return(0,a.unsafeStringify)(_)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=d;generateUUID.URL=m;return generateUUID}},69655:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(7966));var o=_interopRequireDefault(i(88540));var d=i(49019);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,i){if(a.default.randomUUID&&!t&&!e){return a.default.randomUUID()}e=e||{};const m=e.random||(e.rng||o.default)();m[6]=m[6]&15|64;m[8]=m[8]&63|128;if(t){i=i||0;for(let e=0;e<16;++e){t[i+e]=m[e]}return t}return(0,d.unsafeStringify)(m)}var m=v4;t["default"]=m},70880:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(44575));var o=_interopRequireDefault(i(11352));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v5",80,o.default);var m=d;t["default"]=m},61579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(1118));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var o=validate;t["default"]=o},66257:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(61579));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.slice(14,15),16)}var o=version;t["default"]=o},1552:(e,t,i)=>{"use strict";var a=i(24876);var o=i(92472);var d={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var i=o.length-1;while(t<=i){var a=Math.floor((t+i)/2);var d=o[a];if(d[0][0]<=e&&d[0][1]>=e){return d}else if(d[0][0]>e){i=a-1}else{t=a+1}}return null}var m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(m,"_").length}function mapChars(e,t,i){var a=false;var o="";var m=countSymbols(e);for(var h=0;h<m;++h){var P=e.codePointAt(h);var _=findStatus(P);switch(_[1]){case"disallowed":a=true;o+=String.fromCodePoint(P);break;case"ignored":break;case"mapped":o+=String.fromCodePoint.apply(String,_[2]);break;case"deviation":if(i===d.TRANSITIONAL){o+=String.fromCodePoint.apply(String,_[2])}else{o+=String.fromCodePoint(P)}break;case"valid":o+=String.fromCodePoint(P);break;case"disallowed_STD3_mapped":if(t){a=true;o+=String.fromCodePoint(P)}else{o+=String.fromCodePoint.apply(String,_[2])}break;case"disallowed_STD3_valid":if(t){a=true}o+=String.fromCodePoint(P);break}}return{string:o,error:a}}var h=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function validateLabel(e,t){if(e.substr(0,4)==="xn--"){e=a.toUnicode(e);t=d.NONTRANSITIONAL}var i=false;if(normalize(e)!==e||e[3]==="-"&&e[4]==="-"||e[0]==="-"||e[e.length-1]==="-"||e.indexOf(".")!==-1||e.search(h)===0){i=true}var o=countSymbols(e);for(var m=0;m<o;++m){var P=findStatus(e.codePointAt(m));if(processing===d.TRANSITIONAL&&P[1]!=="valid"||processing===d.NONTRANSITIONAL&&P[1]!=="valid"&&P[1]!=="deviation"){i=true;break}}return{label:e,error:i}}function processing(e,t,i){var a=mapChars(e,t,i);a.string=normalize(a.string);var o=a.string.split(".");for(var d=0;d<o.length;++d){try{var m=validateLabel(o[d]);o[d]=m.label;a.error=a.error||m.error}catch(e){a.error=true}}return{string:o.join("."),error:a.error}}e.exports.toASCII=function(e,t,i,o){var d=processing(e,t,i);var m=d.string.split(".");m=m.map((function(e){try{return a.toASCII(e)}catch(t){d.error=true;return e}}));if(o){var h=m.slice(0,m.length-1).join(".").length;if(h.length>253||h.length===0){d.error=true}for(var P=0;P<m.length;++P){if(m.length>63||m.length===0){d.error=true;break}}}if(d.error)return null;return m.join(".")};e.exports.toUnicode=function(e,t){var i=processing(e,t,d.NONTRANSITIONAL);return{domain:i.string,error:i.error}};e.exports.PROCESSING_OPTIONS=d},61860:e=>{var t;var i;var a;var o;var d;var m;var h;var P;var _;var L;var j;var U;var H;var V;var K;var W;var J;var X;var Y;var Q;var Z;var ee;var te;var ne;var re;var ie;var ae;var oe;var se;var ce;var le;var ue;(function(t){var i=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(i,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(i,createExporter(e.exports)))}else{t(createExporter(i))}function createExporter(e,t){if(e!==i){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(i,a){return e[i]=t?t(i,a):a}}})((function(e){var de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");de(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};i=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++){t=arguments[i];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};a=function(e,t){var i={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0)i[a]=e[a];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++){if(t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o]))i[a[o]]=e[a[o]]}return i};o=function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};d=function(e,t){return function(i,a){t(i,a,e)}};m=function(e,t,i,a,o,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var m=a.kind,h=m==="getter"?"get":m==="setter"?"set":"value";var P=!t&&e?a["static"]?e:e.prototype:null;var _=t||(P?Object.getOwnPropertyDescriptor(P,a.name):{});var L,j=false;for(var U=i.length-1;U>=0;U--){var H={};for(var V in a)H[V]=V==="access"?{}:a[V];for(var V in a.access)H.access[V]=a.access[V];H.addInitializer=function(e){if(j)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,i[U])(m==="accessor"?{get:_.get,set:_.set}:_[h],H);if(m==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(L=accept(K.get))_.get=L;if(L=accept(K.set))_.set=L;if(L=accept(K.init))o.unshift(L)}else if(L=accept(K)){if(m==="field")o.unshift(L);else _[h]=L}}if(P)Object.defineProperty(P,a.name,_);j=true};h=function(e,t,i){var a=arguments.length>2;for(var o=0;o<t.length;o++){i=a?t[o].call(e,i):t[o].call(e)}return a?i:void 0};P=function(e){return typeof e==="symbol"?e:"".concat(e)};_=function(e,t,i){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:i?"".concat(i," ",t):t})};L=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};j=function(e,t,i,a){function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function fulfilled(e){try{step(a.next(e))}catch(e){o(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,t||[])).next())}))};U=function(e,t){var i={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},a,o,d,m=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return m.next=verb(0),m["throw"]=verb(1),m["return"]=verb(2),typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function verb(e){return function(t){return step([e,t])}}function step(h){if(a)throw new TypeError("Generator is already executing.");while(m&&(m=0,h[0]&&(i=0)),i)try{if(a=1,o&&(d=h[0]&2?o["return"]:h[0]?o["throw"]||((d=o["return"])&&d.call(o),0):o.next)&&!(d=d.call(o,h[1])).done)return d;if(o=0,d)h=[h[0]&2,d.value];switch(h[0]){case 0:case 1:d=h;break;case 4:i.label++;return{value:h[1],done:false};case 5:i.label++;o=h[1];h=[0];continue;case 7:h=i.ops.pop();i.trys.pop();continue;default:if(!(d=i.trys,d=d.length>0&&d[d.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!d||h[1]>d[0]&&h[1]<d[3])){i.label=h[1];break}if(h[0]===6&&i.label<d[1]){i.label=d[1];d=h;break}if(d&&i.label<d[2]){i.label=d[2];i.ops.push(h);break}if(d[2])i.ops.pop();i.trys.pop();continue}h=t.call(e,i)}catch(e){h=[6,e];o=0}finally{a=d=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};H=function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))se(t,e,i)};se=Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]};V=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,i=t&&e[t],a=0;if(i)return i.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var a=i.call(e),o,d=[],m;try{while((t===void 0||t-- >0)&&!(o=a.next()).done)d.push(o.value)}catch(e){m={error:e}}finally{try{if(o&&!o.done&&(i=a["return"]))i.call(a)}finally{if(m)throw m.error}}return d};W=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(K(arguments[t]));return e};J=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var a=Array(e),o=0,t=0;t<i;t++)for(var d=arguments[t],m=0,h=d.length;m<h;m++,o++)a[o]=d[m];return a};X=function(e,t,i){if(i||arguments.length===2)for(var a=0,o=t.length,d;a<o;a++){if(d||!(a in t)){if(!d)d=Array.prototype.slice.call(t,0,a);d[a]=t[a]}}return e.concat(d||Array.prototype.slice.call(t))};Y=function(e){return this instanceof Y?(this.v=e,this):new Y(e)};Q=function(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(e,t||[]),o,d=[];return o=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),o[Symbol.asyncIterator]=function(){return this},o;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(a[e]){o[e]=function(t){return new Promise((function(i,a){d.push([e,t,i,a])>1||resume(e,t)}))};if(t)o[e]=t(o[e])}}function resume(e,t){try{step(a[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof Y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Z=function(e){var t,i;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(a,o){t[a]=e[a]?function(t){return(i=!i)?{value:Y(e[a](t)),done:false}:o?o(t):t}:o}};ee=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof V==="function"?V(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(t){i[t]=e[t]&&function(i){return new Promise((function(a,o){i=e[t](i),settle(a,o,i.done,i.value)}))}}function settle(e,t,i,a){Promise.resolve(a).then((function(t){e({value:t,done:i})}),t)}};te=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var pe=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};ne=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),a=0;a<i.length;a++)if(i[a]!=="default")se(t,e,i[a]);pe(t,e);return t};re=function(e){return e&&e.__esModule?e:{default:e}};ie=function(e,t,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(e):a?a.value:t.get(e)};ae=function(e,t,i,a,o){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?o.call(e,i):o?o.value=i:t.set(e,i),i};oe=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};ce=function(e,t,i){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var a,o;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose];if(i)o=a}if(typeof a!=="function")throw new TypeError("Object not disposable.");if(o)a=function(){try{o.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:a,async:i})}else if(i){e.stack.push({async:true})}return t};var me=typeof SuppressedError==="function"?SuppressedError:function(e,t,i){var a=new Error(i);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};le=function(e){function fail(t){e.error=e.hasError?new me(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,i=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&i===1)return i=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return i|=2,Promise.resolve(a).then(next,(function(e){fail(e);return next()}))}else i|=1}catch(e){fail(e)}}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};ue=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,i,a,o,d){return i?t?".jsx":".js":a&&(!o||!d)?e:a+o+"."+d.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",i);e("__rest",a);e("__decorate",o);e("__param",d);e("__esDecorate",m);e("__runInitializers",h);e("__propKey",P);e("__setFunctionName",_);e("__metadata",L);e("__awaiter",j);e("__generator",U);e("__exportStar",H);e("__createBinding",se);e("__values",V);e("__read",K);e("__spread",W);e("__spreadArrays",J);e("__spreadArray",X);e("__await",Y);e("__asyncGenerator",Q);e("__asyncDelegator",Z);e("__asyncValues",ee);e("__makeTemplateObject",te);e("__importStar",ne);e("__importDefault",re);e("__classPrivateFieldGet",ie);e("__classPrivateFieldSet",ae);e("__classPrivateFieldIn",oe);e("__addDisposableResource",ce);e("__disposeResources",le);e("__rewriteRelativeImportExtension",ue)}));0&&0},24488:(e,t,i)=>{e.exports=i(39023).deprecate},12048:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return P.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return j.default}});var a=_interopRequireDefault(i(6415));var o=_interopRequireDefault(i(51697));var d=_interopRequireDefault(i(4676));var m=_interopRequireDefault(i(69771));var h=_interopRequireDefault(i(37723));var P=_interopRequireDefault(i(15868));var _=_interopRequireDefault(i(36200));var L=_interopRequireDefault(i(37597));var j=_interopRequireDefault(i(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var o=md5;t["default"]=o},37723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";t["default"]=i},17267:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let t;const i=new Uint8Array(16);i[0]=(t=parseInt(e.slice(0,8),16))>>>24;i[1]=t>>>16&255;i[2]=t>>>8&255;i[3]=t&255;i[4]=(t=parseInt(e.slice(9,13),16))>>>8;i[5]=t&255;i[6]=(t=parseInt(e.slice(14,18),16))>>>8;i[7]=t&255;i[8]=(t=parseInt(e.slice(19,23),16))>>>8;i[9]=t&255;i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=t/4294967296&255;i[12]=t>>>24&255;i[13]=t>>>16&255;i[14]=t>>>8&255;i[15]=t&255;return i}var o=parse;t["default"]=o},67879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=i},12973:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=new Uint8Array(256);let d=o.length;function rng(){if(d>o.length-16){a.default.randomFillSync(o);d=0}return o.slice(d,d+=16)}},507:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var o=sha1;t["default"]=o},37597:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=[];for(let e=0;e<256;++e){o.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const i=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var d=stringify;t["default"]=d},6415:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(12973));var o=_interopRequireDefault(i(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let d;let m;let h=0;let P=0;function v1(e,t,i){let _=t&&i||0;const L=t||new Array(16);e=e||{};let j=e.node||d;let U=e.clockseq!==undefined?e.clockseq:m;if(j==null||U==null){const t=e.random||(e.rng||a.default)();if(j==null){j=d=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(U==null){U=m=(t[6]<<8|t[7])&16383}}let H=e.msecs!==undefined?e.msecs:Date.now();let V=e.nsecs!==undefined?e.nsecs:P+1;const K=H-h+(V-P)/1e4;if(K<0&&e.clockseq===undefined){U=U+1&16383}if((K<0||H>h)&&e.nsecs===undefined){V=0}if(V>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}h=H;P=V;m=U;H+=122192928e5;const W=((H&268435455)*1e4+V)%4294967296;L[_++]=W>>>24&255;L[_++]=W>>>16&255;L[_++]=W>>>8&255;L[_++]=W&255;const J=H/4294967296*1e4&268435455;L[_++]=J>>>8&255;L[_++]=J&255;L[_++]=J>>>24&15|16;L[_++]=J>>>16&255;L[_++]=U>>>8|128;L[_++]=U&255;for(let e=0;e<6;++e){L[_+e]=j[e]}return t||(0,o.default)(L)}var _=v1;t["default"]=_},51697:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(92930));var o=_interopRequireDefault(i(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v3",48,o.default);var m=d;t["default"]=m},92930:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var a=_interopRequireDefault(i(37597));var o=_interopRequireDefault(i(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let i=0;i<e.length;++i){t.push(e.charCodeAt(i))}return t}const d="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=d;const m="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=m;function _default(e,t,i){function generateUUID(e,d,m,h){if(typeof e==="string"){e=stringToBytes(e)}if(typeof d==="string"){d=(0,o.default)(d)}if(d.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let P=new Uint8Array(16+e.length);P.set(d);P.set(e,d.length);P=i(P);P[6]=P[6]&15|t;P[8]=P[8]&63|128;if(m){h=h||0;for(let e=0;e<16;++e){m[h+e]=P[e]}return m}return(0,a.default)(P)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=d;generateUUID.URL=m;return generateUUID}},4676:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(12973));var o=_interopRequireDefault(i(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,i){e=e||{};const d=e.random||(e.rng||a.default)();d[6]=d[6]&15|64;d[8]=d[8]&63|128;if(t){i=i||0;for(let e=0;e<16;++e){t[i+e]=d[e]}return t}return(0,o.default)(d)}var d=v4;t["default"]=d},69771:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(92930));var o=_interopRequireDefault(i(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const d=(0,a.default)("v5",80,o.default);var m=d;t["default"]=m},36200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var o=validate;t["default"]=o},15868:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=_interopRequireDefault(i(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var o=version;t["default"]=o},37125:e=>{"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const i=t.unsigned?0:-Math.pow(2,e);const a=Math.pow(2,e)-1;const o=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const d=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,m){if(!m)m={};let h=+e;if(m.enforceRange){if(!Number.isFinite(h)){throw new TypeError("Argument is not a finite number")}h=sign(h)*Math.floor(Math.abs(h));if(h<i||h>a){throw new TypeError("Argument is not in byte range")}return h}if(!isNaN(h)&&m.clamp){h=evenRound(h);if(h<i)h=i;if(h>a)h=a;return h}if(!Number.isFinite(h)||h===0){return 0}h=sign(h)*Math.floor(Math.abs(h));h=h%o;if(!t.unsigned&&h>=d){return h-o}else if(t.unsigned){if(h<0){h+=o}else if(h===-0){return 0}}return h}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const i=String(e);let a=undefined;for(let e=0;(a=i.codePointAt(e))!==undefined;++e){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return i};t["USVString"]=function(e){const t=String(e);const i=t.length;const a=[];for(let e=0;e<i;++e){const o=t.charCodeAt(e);if(o<55296||o>57343){a.push(String.fromCodePoint(o))}else if(56320<=o&&o<=57343){a.push(String.fromCodePoint(65533))}else{if(e===i-1){a.push(String.fromCodePoint(65533))}else{const i=t.charCodeAt(e+1);if(56320<=i&&i<=57343){const t=o&1023;const d=i&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*t+d));++e}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},23184:(e,t,i)=>{"use strict";const a=i(20905);t.implementation=class URLImpl{constructor(e){const t=e[0];const i=e[1];let o=null;if(i!==undefined){o=a.basicURLParse(i);if(o==="failure"){throw new TypeError("Invalid base URL")}}const d=a.basicURLParse(t,{baseURL:o});if(d==="failure"){throw new TypeError("Invalid URL")}this._url=d}get href(){return a.serializeURL(this._url)}set href(e){const t=a.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){a.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return a.serializeHost(e.host)}return a.serializeHost(e.host)+":"+a.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{a.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const i=e[0]==="?"?e.substring(1):e;t.query="";a.basicURLParse(i,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";a.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},66633:(e,t,i)=>{"use strict";const a=i(37125);const o=i(39857);const d=i(23184);const m=o.implSymbol;function URL(t){if(!this||this[m]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const i=[];for(let e=0;e<arguments.length&&e<2;++e){i[e]=arguments[e]}i[0]=a["USVString"](i[0]);if(i[1]!==undefined){i[1]=a["USVString"](i[1])}e.exports.setup(this,i)}URL.prototype.toJSON=function toJSON(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}const t=[];for(let e=0;e<arguments.length&&e<0;++e){t[e]=arguments[e]}return this[m].toJSON.apply(this[m],t)};Object.defineProperty(URL.prototype,"href",{get(){return this[m].href},set(e){e=a["USVString"](e);this[m].href=e},enumerable:true,configurable:true});URL.prototype.toString=function(){if(!this||!e.exports.is(this)){throw new TypeError("Illegal invocation")}return this.href};Object.defineProperty(URL.prototype,"origin",{get(){return this[m].origin},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"protocol",{get(){return this[m].protocol},set(e){e=a["USVString"](e);this[m].protocol=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"username",{get(){return this[m].username},set(e){e=a["USVString"](e);this[m].username=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"password",{get(){return this[m].password},set(e){e=a["USVString"](e);this[m].password=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"host",{get(){return this[m].host},set(e){e=a["USVString"](e);this[m].host=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hostname",{get(){return this[m].hostname},set(e){e=a["USVString"](e);this[m].hostname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"port",{get(){return this[m].port},set(e){e=a["USVString"](e);this[m].port=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"pathname",{get(){return this[m].pathname},set(e){e=a["USVString"](e);this[m].pathname=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"search",{get(){return this[m].search},set(e){e=a["USVString"](e);this[m].search=e},enumerable:true,configurable:true});Object.defineProperty(URL.prototype,"hash",{get(){return this[m].hash},set(e){e=a["USVString"](e);this[m].hash=e},enumerable:true,configurable:true});e.exports={is(e){return!!e&&e[m]instanceof d.implementation},create(e,t){let i=Object.create(URL.prototype);this.setup(i,e,t);return i},setup(e,t,i){if(!i)i={};i.wrapper=e;e[m]=new d.implementation(t,i);e[m][o.wrapperSymbol]=e},interface:URL,expose:{Window:{URL:URL},Worker:{URL:URL}}}},62686:(e,t,i)=>{"use strict";t.URL=i(66633)["interface"];t.serializeURL=i(20905).serializeURL;t.serializeURLOrigin=i(20905).serializeURLOrigin;t.basicURLParse=i(20905).basicURLParse;t.setTheUsername=i(20905).setTheUsername;t.setThePassword=i(20905).setThePassword;t.serializeHost=i(20905).serializeHost;t.serializeInteger=i(20905).serializeInteger;t.parseURL=i(20905).parseURL},20905:(e,t,i)=>{"use strict";const a=i(24876);const o=i(1552);const d={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const m=Symbol("failure");function countSymbols(e){return a.ucs2.decode(e).length}function at(e,t){const i=e[t];return isNaN(i)?undefined:String.fromCodePoint(i)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return d[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return d[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let i="";for(let e=0;e<t.length;++e){i+=percentEncode(t[e])}return i}function utf8PercentDecode(e){const t=new Buffer(e);const i=[];for(let e=0;e<t.length;++e){if(t[e]!==37){i.push(t[e])}else if(t[e]===37&&isASCIIHex(t[e+1])&&isASCIIHex(t[e+2])){i.push(parseInt(t.slice(e+1,e+3).toString(),16));e+=2}else{i.push(t[e])}}return new Buffer(i).toString()}function isC0ControlPercentEncode(e){return e<=31||e>126}const h=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||h.has(e)}const P=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||P.has(e)}function percentEncodeChar(e,t){const i=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(i)}return i}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const i=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(i.test(e)){return m}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const i=[];for(const a of t){if(a===""){return e}const t=parseIPv4Number(a);if(t===m){return e}i.push(t)}for(let e=0;e<i.length-1;++e){if(i[e]>255){return m}}if(i[i.length-1]>=Math.pow(256,5-i.length)){return m}let a=i.pop();let o=0;for(const e of i){a+=e*Math.pow(256,3-o);++o}return a}function serializeIPv4(e){let t="";let i=e;for(let e=1;e<=4;++e){t=String(i%256)+t;if(e!==4){t="."+t}i=Math.floor(i/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let i=0;let o=null;let d=0;e=a.ucs2.decode(e);if(e[d]===58){if(e[d+1]!==58){return m}d+=2;++i;o=i}while(d<e.length){if(i===8){return m}if(e[d]===58){if(o!==null){return m}++d;++i;o=i;continue}let a=0;let h=0;while(h<4&&isASCIIHex(e[d])){a=a*16+parseInt(at(e,d),16);++d;++h}if(e[d]===46){if(h===0){return m}d-=h;if(i>6){return m}let a=0;while(e[d]!==undefined){let o=null;if(a>0){if(e[d]===46&&a<4){++d}else{return m}}if(!isASCIIDigit(e[d])){return m}while(isASCIIDigit(e[d])){const t=parseInt(at(e,d));if(o===null){o=t}else if(o===0){return m}else{o=o*10+t}if(o>255){return m}++d}t[i]=t[i]*256+o;++a;if(a===2||a===4){++i}}if(a!==4){return m}break}else if(e[d]===58){++d;if(e[d]===undefined){return m}}else if(e[d]!==undefined){return m}t[i]=a;++i}if(o!==null){let e=i-o;i=7;while(i!==0&&e>0){const a=t[o+e-1];t[o+e-1]=t[i];t[i]=a;--i;--e}}else if(o===null&&i!==8){return m}return t}function serializeIPv6(e){let t="";const i=findLongestZeroSequence(e);const a=i.idx;let o=false;for(let i=0;i<=7;++i){if(o&&e[i]===0){continue}else if(o){o=false}if(a===i){const e=i===0?"::":":";t+=e;o=true;continue}t+=e[i].toString(16);if(i!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return m}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const i=utf8PercentDecode(e);const a=o.toASCII(i,false,o.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return m}if(containsForbiddenHostCodePoint(a)){return m}const d=parseIPv4(a);if(typeof d==="number"||d===m){return d}return a}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return m}let t="";const i=a.ucs2.decode(e);for(let e=0;e<i.length;++e){t+=percentEncodeChar(i[e],isC0ControlPercentEncode)}return t}function findLongestZeroSequence(e){let t=null;let i=1;let a=null;let o=0;for(let d=0;d<e.length;++d){if(e[d]!==0){if(o>i){t=a;i=o}a=null;o=0}else{if(a===null){a=d}++o}}if(o>i){t=a;i=o}return{idx:t,len:i}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,i,o,d){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=i||"utf-8";this.stateOverride=d;this.url=o;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const h=trimTabAndNewline(this.input);if(h!==this.input){this.parseError=true}this.input=h;this.state=d||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const i=this["parse "+this.state](e,t);if(!i){break}else if(i===m){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return m}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return m}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return m}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=true;continue}const i=percentEncodeChar(e,isUserinfoPercentEncode);if(this.passwordTokenSeenFlag){this.url.password+=i}else{this.url.username+=i}}this.buffer=""}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){if(this.atFlag&&this.buffer===""){this.parseError=true;return m}this.pointer-=countSymbols(this.buffer)+1;this.buffer="";this.state="host"}else{this.buffer+=t}return true};URLStateMachine.prototype["parse hostname"]=URLStateMachine.prototype["parse host"]=function parseHostName(e,t){if(this.stateOverride&&this.url.scheme==="file"){--this.pointer;this.state="file host"}else if(e===58&&!this.arrFlag){if(this.buffer===""){this.parseError=true;return m}const e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}this.url.host=e;this.buffer="";this.state="port";if(this.stateOverride==="hostname"){return false}}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92){--this.pointer;if(isSpecial(this.url)&&this.buffer===""){this.parseError=true;return m}else if(this.stateOverride&&this.buffer===""&&(includesCredentials(this.url)||this.url.port!==null)){this.parseError=true;return false}const e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}this.url.host=e;this.buffer="";this.state="path start";if(this.stateOverride){return false}}else{if(e===91){this.arrFlag=true}else if(e===93){this.arrFlag=false}this.buffer+=t}return true};URLStateMachine.prototype["parse port"]=function parsePort(e,t){if(isASCIIDigit(e)){this.buffer+=t}else if(isNaN(e)||e===47||e===63||e===35||isSpecial(this.url)&&e===92||this.stateOverride){if(this.buffer!==""){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1){this.parseError=true;return m}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return m}return true};const _=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!_.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===m){return m}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e){if(t[e]<33||t[e]>126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let i=e.scheme+":";if(e.host!==null){i+="//";if(e.username!==""||e.password!==""){i+=e.username;if(e.password!==""){i+=":"+e.password}i+="@"}i+=serializeHost(e.host);if(e.port!==null){i+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){i+="//"}if(e.cannotBeABaseURL){i+=e.path[0]}else{for(const t of e.path){i+="/"+t}}if(e.query!==null){i+="?"+e.query}if(!t&&e.fragment!==null){i+="#"+e.fragment}return i}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const i=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(i.failure){return"failure"}return i.url};e.exports.setTheUsername=function(e,t){e.username="";const i=a.ucs2.decode(t);for(let t=0;t<i.length;++t){e.username+=percentEncodeChar(i[t],isUserinfoPercentEncode)}};e.exports.setThePassword=function(e,t){e.password="";const i=a.ucs2.decode(t);for(let t=0;t<i.length;++t){e.password+=percentEncodeChar(i[t],isUserinfoPercentEncode)}};e.exports.serializeHost=serializeHost;e.exports.cannotHaveAUsernamePasswordPort=cannotHaveAUsernamePasswordPort;e.exports.serializeInteger=function(e){return String(e)};e.exports.parseURL=function(t,i){if(i===undefined){i={}}return e.exports.basicURLParse(t,{baseURL:i.baseURL,encodingOverride:i.encodingOverride})}},39857:e=>{"use strict";e.exports.mixin=function mixin(e,t){const i=Object.getOwnPropertyNames(t);for(let a=0;a<i.length;++a){Object.defineProperty(e,i[a],Object.getOwnPropertyDescriptor(t,i[a]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},58264:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var i=0;i<t.length;i++){t[i]=arguments[i]}var a=e.apply(this,t);var o=t[t.length-1];if(typeof a==="function"&&a!==o){Object.keys(o).forEach((function(e){a[e]=o[e]}))}return a}}},30538:e=>{class Node{constructor(e){this.value=e;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this._head){this._tail.next=t;this._tail=t}else{this._head=t;this._tail=t}this._size++}dequeue(){const e=this._head;if(!e){return}this._head=this._head.next;this._size--;return e.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;while(e){yield e.value;e=e.next}}}e.exports=Queue},92401:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitHubAdapter=void 0;const a=i(1622);const o=i(72633);class GitHubAdapter{token;owner;repo;projectId;config;constructor(e){this.config=e;const t=new o.Credentials;const i=Object.prototype.hasOwnProperty.call(process.env,e.tokenEnv)?process.env[e.tokenEnv]:undefined;let a=t.getToken("github.com")||i||process.env.GITHUB_TOKEN;if(!a&&(e.tokenEnv.startsWith("ghp_")||e.tokenEnv.startsWith("github_pat_")||e.tokenEnv.startsWith("ghs_"))){a=e.tokenEnv}this.token=a||"";this.owner=e.owner;this.repo=e.repository;this.projectId=e.projectId}async ensureToken(){if(this.token)return;a.notify.push({type:"error",title:`GitHub token not found`,detail:[`Environment variable "${this.config.tokenEnv}" is not set.`],close:true})}async request(e,t,i){await this.ensureToken();const a=t.startsWith("http")?t:`https://api.github.com${t}`;const o=await fetch(a,{method:e,headers:{Authorization:`Bearer ${this.token}`,Accept:"application/vnd.github.v3+json","X-GitHub-Api-Version":"2022-11-28","Content-Type":"application/json"},body:i?JSON.stringify(i):undefined});if(!o.ok){const e=await o.text();const t=new Error(e);t.name=`GitHub API Error [${o.status}]`;throw t}if(o.status===204){return null}return await o.json()}async graphql(e,t={}){await this.ensureToken();const i=await this.request("POST","https://api.github.com/graphql",{query:e,variables:t});if(i.errors&&i.errors.length>0){const e=new Error(JSON.stringify(i.errors));e.name="GitHub API Error";throw e}return i.data}async createIssue(e){const t=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues`,{title:e.title,body:e.body,labels:e.labels,assignees:e.assignees,milestone:e.milestone});return{id:t.id,number:t.number,title:t.title??"",state:t.state,node_id:t.node_id,created_at:t.created_at,updated_at:t.updated_at}}async updateIssue(e,t){const i=await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{title:t.title,body:t.body,labels:t.labels,assignees:t.assignees,milestone:t.milestone});return{id:i.id,number:i.number,title:i.title??"",state:i.state,node_id:i.node_id,created_at:i.created_at,updated_at:i.updated_at}}async closeIssue(e){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{state:"closed"})}async getIssue(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return{id:t.id,number:t.number,title:t.title??"",body:t.body??"",state:t.state,node_id:t.node_id,labels:t.labels?.map((e=>e.name))??[],assignees:t.assignees?.map((e=>e.login))??[],milestone:t.milestone?.title??""}}catch{return null}}async listIssuesByLabel(e){const t=[];let i=1;while(true){const a=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues?labels=${encodeURIComponent(e)}&state=all&per_page=100&page=${i}`);if(a.length===0)break;for(const e of a){t.push({id:e.id,number:e.number,title:e.title??"",state:e.state})}if(a.length<100)break;i++}return t}async getMilestoneByTitle(e){if(!e)return undefined;try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/milestones?state=all&per_page=100`);const i=t.find((t=>t.title.toLowerCase()===e.toLowerCase()));return i?i.number:undefined}catch{return undefined}}async createIssueComment(e,t){const i=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/comments`,{body:t});return{id:i.id}}async updateIssueComment(e,t){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/comments/${e}`,{body:t})}async listIssueComments(e){const t=[];let i=1;while(true){const a=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}/comments?per_page=100&page=${i}`);if(a.length===0)break;for(const e of a){t.push({id:e.id,body:e.body})}if(a.length<100)break;i++}return t}projectNodeId;projectFields;async resolveProjectMetadata(){if(this.projectNodeId&&this.projectFields)return{id:this.projectNodeId,fields:this.projectFields};if(!this.projectId)return undefined;const e=`\n id\n fields(first: 100) {\n nodes {\n ... on ProjectV2Field { id name dataType }\n ... on ProjectV2SingleSelectField { id name dataType options { id name } }\n ... on ProjectV2IterationField { id name dataType configuration { iterations { id title } } }\n }\n }\n `;try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n user(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.user?.projectV2?.id){this.projectNodeId=t.user.projectV2.id;this.projectFields=t.user.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n organization(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.organization?.projectV2?.id){this.projectNodeId=t.organization.projectV2.id;this.projectFields=t.organization.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}const t=i(80465);console.warn(t.yellow(`\n⚠️ Warning: Could not resolve GitHub Project V2 with ID ${this.projectId} for owner "${this.owner}".`));console.warn(t.yellow(` If "${this.owner}" is a User account and you are authenticating via a GitHub App,`));console.warn(t.yellow(` note that GitHub Apps are technically not allowed to access User-level Projects.`));console.warn(t.yellow(` Please use a Personal Access Token (PAT) instead.\n`));return undefined}async addToProject(e){const t=await this.resolveProjectMetadata();if(!t)return undefined;let i=0;const a=3;while(i<a){try{const i=await this.graphql(`\n mutation($projectId: ID!, $contentId: ID!) {\n addProjectV2ItemById(input: {projectId: $projectId, contentId: $contentId}) {\n item { id }\n }\n }\n `,{projectId:t.id,contentId:e});return i?.addProjectV2ItemById?.item?.id}catch(e){i++;if(i>=a){const t=new Error(`Failed to link issue to GitHub Project: ${e.message}`);t.name="GitHubProjectError";throw t}await new Promise((e=>setTimeout(e,1e3*Math.pow(2,i-1))))}}}async updateProjectItemFields(e,t){const i=await this.resolveProjectMetadata();if(!i||!i.fields)return;for(const[a,o]of Object.entries(t)){const t=i.fields.find((e=>e.name&&e.name.toLowerCase()===a.toLowerCase()));if(!t)continue;let d=undefined;if(t.dataType==="TEXT"){if(o!==undefined&&o!==null){d={text:String(o)}}}else if(t.dataType==="NUMBER"){if(o!==undefined&&o!==null){const e=Number(o);if(!isNaN(e)){d={number:e}}}}else if(t.dataType==="DATE"){if(o!==undefined&&o!==null){const e=String(o).split("T")[0];if(/^\d{4}-\d{2}-\d{2}$/.test(e)){d={date:e}}else{d={date:String(o)}}}}else if(t.dataType==="SINGLE_SELECT"&&t.options){if(typeof o!=="string")continue;const e=o.startsWith("@")?o.substring(1):o;const i=t.options.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(i){d={singleSelectOptionId:i.id}}}else if(t.dataType==="ITERATION"&&t.configuration?.iterations){if(typeof o!=="string")continue;const e=o.startsWith("@")?o.substring(1):o;const i=t.configuration.iterations.find((t=>t.title.toLowerCase()===e.toLowerCase()));if(i){d={iterationId:i.id}}}if(!d)continue;let m=0;const h=3;while(m<h){try{await this.graphql(`\n mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $value: ProjectV2FieldValue!) {\n updateProjectV2ItemFieldValue(input: {\n projectId: $projectId\n itemId: $itemId\n fieldId: $fieldId\n value: $value\n }) { projectV2Item { id } }\n }\n `,{projectId:i.id,itemId:e,fieldId:t.id,value:d});break}catch(e){m++;if(m>=h){const i=new Error(`Failed to assign custom field ${t.name}: ${e.message}`);i.name="GitHubProjectError";throw i}await new Promise((e=>setTimeout(e,1e3*Math.pow(2,m-1))))}}}}async getProjectItemFields(e){const t=await this.resolveProjectMetadata();if(!t||!t.fields)return{};try{const i=await this.graphql(`\n query($id: ID!) {\n node(id: $id) {\n ... on Issue {\n projectItems(first: 10) {\n nodes {\n project { id }\n fieldValues(first: 100) {\n nodes {\n ... on ProjectV2ItemFieldTextValue { text field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldNumberValue { number field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldDateValue { date field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldSingleSelectValue { name field { ... on ProjectV2FieldCommon { name } } }\n ... on ProjectV2ItemFieldIterationValue { title field { ... on ProjectV2FieldCommon { name } } }\n }\n }\n }\n }\n }\n }\n }\n `,{id:e});const a=i?.node?.projectItems?.nodes||[];const o=a.find((e=>e.project?.id===t.id));if(!o||!o.fieldValues||!o.fieldValues.nodes)return{};const d=Object.create(null);for(const e of o.fieldValues.nodes){const t=e.field?.name;if(!t)continue;let i="";if(e.text!==undefined)i=e.text;else if(e.name!==undefined)i=e.name;else if(e.title!==undefined)i=e.title;else if(e.date!==undefined)i=e.date;else if(e.number!==undefined)i=String(e.number);d[t.toLowerCase()]=i}return d}catch{return{}}}async getIssueNodeId(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return t.node_id??null}catch{return null}}formatRemoteId(e){return`${this.repo}:${e}`}async addSubIssue(e,t){try{await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/sub_issues`,{sub_issue_id:t,replace_parent:true})}catch(e){if(!e.message.includes("422")){throw e}}}}t.GitHubAdapter=GitHubAdapter},80573:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerResource=t.resource=void 0;const a=i(2560);const o=i(1622);const d=i(80465);const m=i(62978);class Resource{builtinTemplates=Object.create(null);userTemplates=Object.create(null);resolve(){const e=Object.values(this.builtinTemplates);const t=Object.values(this.userTemplates);return[...e,...t]}get(e){const t=this.resolve().find((t=>t.type===e));if(!t){o.notify.push({type:"error",title:`Unknown resource type: "${e}"`,detail:[`No template is registered for resource type "${e}".`,`Available types: ${this.resolve().map((e=>e.type)).join(", ")||"(none)"}`],close:true})}return t}registry(e,t="system"){if(t==="system"){this.builtinTemplates[e.type]=e}if(t==="user"){this.userTemplates[e.type]=e}}evaluate(e,t,i){const a=this.get(e);const o={};for(const e of a.fields){if(e.knownAfterApply)continue;o[e.name]=typeof e.value==="function"?e.value(t,i):e.value}return o}evaluateComments(e,t,i){const a=this.get(e);if(a.comments){return a.comments(t,i)}return[]}getSymbol(e){const t={add:(0,d.green)("+"),change:(0,d.yellow)("~"),destroy:(0,d.red)("-"),replace:`${(0,d.red)("-")}/${(0,d.green)("+")}`}[e];return t}getSymbols(e){const t=new Set(e.map((e=>e.action)));const i={add:`${(0,d.green)("+")} create`,change:`${(0,d.yellow)("~")} update in-place`,destroy:`${(0,d.red)("-")} destroy`,replace:`${(0,d.red)("-")}/${(0,d.green)("+")} destroy and then create replacement`};const a=[];if(t.has("add"))a.push(i.add);if(t.has("change"))a.push(i.change);if(t.has("destroy"))a.push(i.destroy);if(t.has("replace"))a.push(i.replace);return a.map((e=>` ${e}`)).join("\n")}format(e,t){const{action:i,scenario:a,resourceType:o,identity:h,oldAttributes:P}=e;const _=[];const L=this.get(o);const j=this.getSymbol(i);const pad=e=>e.padEnd(16);_.push(` ${j} resource "${o}" "${(0,m.formatIdentityDisplay)(h)}" {`);for(const e of L.fields){const o=typeof e.value==="function"?e.value(a,t):e.value;const h=P?P[e.name]:undefined;let L="";let U=false;if(e.knownAfterApply){L="(known after apply)";U=true}else if(typeof o==="object"&&o!==null&&!Array.isArray(o)){let e=h;if(!e||typeof e!=="object"||Array.isArray(e)){e=i==="destroy"?h:{}}const t=i==="change"||i==="add"||i==="replace";if(t&&e&&typeof e==="object"&&!Array.isArray(e)){const t=Array.from(new Set([...Object.keys(e),...Object.keys(o)])).sort();const a=[];a.push("{");for(const h of t){const t=e[h];const P=o[h];const _=`"${h}"`;if(i==="add"){const e=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.green)("+")} ${_}: ${e}`);U=true}else if(t===undefined){const e=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.green)("+")} ${_}: ${e}`);U=true}else if(P===undefined){const e=(0,m.formatHclValue)(t,2).trimStart();a.push(` ${(0,d.red)("-")} ${_}: ${e}`);U=true}else if(JSON.stringify(t)!==JSON.stringify(P)){const e=(0,m.formatHclValue)(t,2).trimStart();const i=(0,m.formatHclValue)(P,2).trimStart();a.push(` ${(0,d.yellow)("~")} ${_}: ${e} -> ${i}`);U=true}else{const e=(0,m.formatHclValue)(t,2).trimStart();a.push(` ${_}: ${e}`)}}a.push(" }");L=a.join("\n")}else{const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");U=true}}else if(Array.isArray(o)){const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");if(i==="change"){U=JSON.stringify(o)!==JSON.stringify(h)}else{U=true}}else if(typeof o==="string"&&o.includes("\n")){const e=(0,m.formatHclValue)(o,2).split("\n");L=e.map(((e,t)=>t===0?e.trimStart():e)).join("\n");if(i==="change"){U=o!==h}else{U=true}}else{if(i==="change"&&o!==h&&h!==undefined){L=`"${h}" -> "${o}"`;U=true}else{L=`"${o}"`;if(i==="change"){U=o!==h}else{U=true}}}if(i==="add"||i==="replace"){_.push(` ${j} ${pad(e.name)}= ${L}`)}else if(i==="change"){if(e.knownAfterApply){_.push(` ${pad(e.name)}= ${L}`)}else if(U){_.push(` ${j} ${pad(e.name)}= ${L}`)}else{_.push(` ${pad(e.name)}= ${L}`)}}else if(i==="destroy"){_.push(` ${j} ${pad(e.name)}= ${L} -> null`)}}_.push(" }");return _.join("\n")}summary(e,t=true,i){const o=[];if(e.length===0){o.push("No changes. Your test matches the configuration.");if(!t){o.push("");o.push(`${a.TITLE_APP} has compared your real test against your configuration and found no differences, so no`);o.push("changes are needed.");o.push("");o.push((0,d.green)("Apply complete! Resources: 0 added, 0 changed, 0 destroyed."))}console.log(o.join("\n"));return}o.push(`${a.TITLE_APP} used the selected providers to generate the following execution plan. Resource actions are indicated with the`);o.push("following symbols:");o.push(this.getSymbols(e));o.push("");o.push(`${a.TITLE_APP} will perform the following actions:`);o.push("");for(const t of e){const e=(0,m.formatIdentityDisplay)(t.identity);const a=t.action==="add"?(0,d.bold)((0,d.green)(`# [${t.scenario.feature?.name||"Unknown"}].${t.resourceType}.${e} will be created`)):t.action==="change"?(0,d.bold)((0,d.yellow)(`# ${t.resourceType}.${e} will be updated in-place`)):t.action==="replace"?(0,d.bold)((0,d.red)(`# ${t.resourceType}.${e} must be replaced`)):(0,d.bold)((0,d.red)(`# ${t.resourceType}.${e} will be destroyed`));o.push(` ${a}`);if(t.action==="destroy"){o.push(` # (because ${t.resourceType}.${e} is not in configuration)`)}o.push(this.format(t,i));o.push("")}const h=e.filter((e=>e.action==="add")).length;const P=e.filter((e=>e.action==="change")).length;const _=e.filter((e=>e.action==="destroy")).length;const L=e.filter((e=>e.action==="replace")).length;o.push(`${(0,d.bold)("Plan:")} ${h+L} to add, ${P} to change, ${_+L} to destroy.`);o.push("");if(t){o.push((0,d.dim)("─".repeat(108)));o.push("");if(!i?.outPath){o.push(`Note: You didn't use the -out option to save this plan, so ${a.TITLE_APP} can't guarantee to take exactly these`);o.push(`actions if you run "${a.TITLE_CLI} apply" now.`)}}console.log(o.join("\n"))}}t.resource=new Resource;const registerResource=e=>t.resource.registry(e,"user");t.registerResource=registerResource;t.resource.registry({type:"github_testcase",fields:[{name:"title",value:e=>e.name},{name:"body",value:e=>"```gherkin\n"+e.steps.map((e=>`${e.keyword}${e.text}`)).join("\n")+"\n```"},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}}]});t.resource.registry({type:"github_testrun",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let a=e.feature.description||"### 🚀 Test Run Execution\n\nThis issue serves as the central hub for tracking the execution of this Test Run. All associated test cases are linked below as tasks.\n\n**Instructions:**\n- Execution results for each test case will be recorded dynamically as comments on this issue.\n- Click on individual test case links to view their details or attach evidence.";const o=e.custom?.testcases||[];if(o.length>0&&t?.state){const d=t.state;const m=e.custom?.identity&&e.custom.identity!==e.uri?`${e.uri}::${e.custom.identity}`:e.uri;const h=d.getResources("github_testrun").find((e=>e.identity===m));const P=h?.attributes?.testcaseStatuses||{};const _=[...o].sort(((e,t)=>{const i=e.split("::").pop()?.replace("@","")||"";const a=t.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));const L=[];const j=[];for(const e of _){const i=e.split("::");const a=i.pop();const o=i.pop()||"";const m=o.replace(".case.feature","").replace(".feature","");const h=d.getResources("github_testcase").filter((e=>e.identity.includes(m)&&(a==="*"||e.identity.endsWith(`::${a}`))));const P=new Set(h.map((e=>e.identity.split("::")[0])));let _=h;if(P.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");_=h.filter((t=>t.identity.startsWith(e)));const i=new Set(_.map((e=>e.identity.split("::")[0])));if(i.size>1){throw new Error(`Multiple testcases found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}else{throw new Error(`Multiple testcases found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}if(_.length>0){L.push(..._)}else{j.push(e)}}const U=new Map;for(const e of L){if(!U.has(e.identity)){U.set(e.identity,e)}}const H=Array.from(U.values());H.sort(((e,t)=>{const i=e.identity.split("::").pop()?.replace("@","")||"";const a=t.identity.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));const V=new Map;for(const e of H){const[t]=e.identity.split("::");const a=i(16928).basename(t||"");if(!V.has(a)){V.set(a,[])}V.get(a).push(e)}for(const[t,i]of V.entries()){a+=`\n\n**Origin:** ${t}\n`;for(const t of i){const i=t.identity;const o=i.split("::").pop()?.replace("@","")||"";let d=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return i.includes(t)&&i.endsWith(`::${e.name}`)}));if(!d){d=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return i.includes(t)&&e.name==="*"}))}const m=d?.custom?.fields?.status||P[i]||"pending";const h=m==="passed"?"[x]":"[ ]";if(t?.attributes?.issueNumber){a+=`- ${h} ${o}: #${t.attributes.issueNumber}\n`}else{a+=`- ${h} ${o}: (known after apply) - ${i}\n`}}}if(j.length>0){a+=`\n\n**Not Found in State**\n`;for(const e of j){const t=e.split("::").pop()?.replace("@","")||"";a+=`- [ ] ${t}: (not found in state) - ${e}\n`}}}return a.trim()}},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}}],comments:(e,t)=>{const a=e.custom?.testcases||[];if(a.length===0||!t?.state)return[];const o=t.state;const d=[];const m=[...a].sort(((e,t)=>{const i=e.split("::").pop()?.replace("@","")||"";const a=t.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));for(const a of m){const m=a.split("::");const h=m.pop();const P=m.pop()||"";const _=P.replace(".case.feature","").replace(".feature","");const L=o.getResources("github_testcase").filter((e=>e.identity.includes(_)&&(h==="*"||e.identity.endsWith(`::${h}`))));const j=new Set(L.map((e=>e.identity.split("::")[0])));let U=L;if(j.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");U=L.filter((t=>t.identity.startsWith(e)))}else{continue}}U.sort(((e,t)=>{const i=e.identity.split("::").pop()?.replace("@","")||"";const a=t.identity.split("::").pop()?.replace("@","")||"";return i.localeCompare(a,undefined,{numeric:true,sensitivity:"base"})}));for(const a of U){const o=a.identity;let m=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return o.includes(t)&&o.endsWith(`::${e.name}`)}));if(!m){m=e.custom?.groupScenarios?.find((e=>{if(!e.rule||!e.name)return false;const t=e.rule.name.replace(".case.feature","").replace(".feature","");return o.includes(t)&&e.name==="*"}))}const h=m?.custom?.fields?.status||t?.existingAttributes?.testcaseStatuses?.[o]||"pending";const P=a.attributes?.title||o;const[_,L]=o.split("::");const j=i(16928).basename(_||"");const U=L?L.replace("@",""):"";const H=`**Origin:** ${j}\n<table border="1" width="100%">\n <tr>\n <th colspan="3">Feature Name</th>\n </tr>\n <tr>\n <td>${U}</td>\n <td>${P}</td>\n <td>${h}</td>\n </tr>\n <tr>\n <td colspan="3"><br/></td>\n </tr>\n </table>`;d.push({identity:o,status:h,body:H,title:P})}}return d}});t.resource.registry({type:"github_testplan",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let i=e.feature.description||"";const a=e.custom?.testruns||[];if(a.length>0&&t?.state){i+="\n\n### Test Runs\n";const e=t.state;for(const o of a){const a=e.getResources("github_testrun").filter((e=>e.identity.endsWith(o)));const d=new Set(a.map((e=>e.identity.split("::")[0])));let m=a;if(d.size>1){if(t?.testDirectory){const e=t.testDirectory.replace(/^\.\//,"");m=a.filter((t=>t.identity.startsWith(e)));const i=new Set(m.map((e=>e.identity.split("::")[0])));if(i.size>1){throw new Error(`Multiple testruns found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}else{throw new Error(`Multiple testruns found for rule "${o}". Please specify a more exact path or use -test-directory to limit the scope.`)}}if(m.length>0){for(const e of m){if(e?.attributes?.issueNumber){i+=`- [ ] #${e.attributes.issueNumber} - ${e.attributes.title}\n`}else{i+=`- [ ] (known after apply) - ${e.identity}\n`}}}else{i+=`- [ ] (not found in state) - ${o}\n`}}}return i.trim()}},{name:"labels",value:e=>{const t=e.custom?.identity?.startsWith("@")?e.custom.identity.substring(1):e.custom?.identity;return[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)).filter((e=>e!==t)))]}},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>{const t={...e.custom?.fields||{}};delete t["labels"];delete t["assignees"];delete t["milestone"];return t}},{name:"testruns",value:e=>e.custom?.testruns||[]}]})},8314:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyCmd=void 0;const a=i(2560);const o=i(79896);const d=i(80465);const m=i(80573);const h=i(7066);const P=i(86999);const _=i(1622);const L=i(74483);const j=i(31821);const U=i(65301);const H=i(62978);const V=i(54472);const K=i(51387);const W=i(45392);const applyCmd=async e=>{const{dir:t=".",autoApprove:J=false,verbose:X=false,scope:Y,planFile:Q,lock:Z=true,lockTimeout:ee="0s",input:te=true,variables:ne,statePath:re,backupPath:ie,target:ae,refresh:oe=true,refreshOnly:se=false,setStatus:ce,replaceTargets:le,parallelism:ue,compactWarnings:de,testDirectory:pe}=e;const me=new P.Logger(X);const fe=new h.State(t,re,ie);await fe.init();await fe.acquireLock(Z,ee);try{let e;if(Q){const a=i(16928);const d=a.resolve(t,Q);if(!(0,o.existsSync)(d)){me.error(`Failed to load "${Q}" as a plan file\n\nstat ${d}: no such file or directory`)}try{const i=(0,o.readFileSync)(d,"utf-8");const a=JSON.parse(i);e={changes:a.changes||[],hasChanges:a.changes&&a.changes.length>0,state:new h.State(t)};await e.state.init()}catch(e){me.error(`Failed to load "${Q}" as a plan file\n\nError parsing JSON: ${e.message}`);return}}else{if(ce){if(Y!=="testrun"){_.notify.push({type:"error",title:`The '-set-status' option is exclusive to testrun scope.`,detail:[]});return}if(!ae||ae.length===0){_.notify.push({type:"error",title:`The '-set-status' option requires the '-target' option to specify the testrun file.`,detail:[]});return}const e=await(0,V.createCommandContext)({dir:t,verbose:X,lock:false});if(!e)return;let a=ce;let o="";if(ce.includes("=")){[a,o]=ce.split("=").map((e=>e.trim()))}else{o=await(0,U.askStatus)()}a=a.replace(/^github_testcase\\./,"").replace(/^github_testrun\\./,"");const matchesFileTarget=(e,t)=>{const i=t.replace(/^github_testrun\\./,"");if(e===i)return true;const a=e.split("::")[0];if(a===i||a.includes(i)||i.includes(a))return true;if(a.split("/").pop()===i.split("/").pop())return true;return false};const matchesTestcaseTarget=(e,t)=>{const i=e.replace("::@","::");let a=t.replace("::@","::");if(!a.includes("::")&&a.includes("@")){const e=a.lastIndexOf("@");a=a.substring(0,e)+"::"+a.substring(e+1)}if(i===a)return true;const o=i.split("::");const d=a.split("::");if(o.length===2&&d.length===2){if(o[1]!==d[1])return false;const e=o[0];const t=d[0];if(e.includes(t)||t.includes(e))return true;if(e.split("/").pop()===t.split("/").pop())return true}else if(i.endsWith(`::${a}`)){return true}return false};const h=Array.isArray(ae)?ae:[ae];const P=fe.getResources("github_testrun");const L=P.filter((e=>h.some((t=>matchesFileTarget(e.identity,t)))));if(L.length===0){_.notify.push({type:"error",title:`No testrun matched the provided target(s): ${h.join(", ")}`,detail:[]});return}let j=null;for(const e of L){const t=e.attributes?.testcaseCommentIds||{};const i=Object.keys(t).find((e=>matchesTestcaseTarget(e,a)));if(i){j=e;a=i;break}}if(!j){_.notify.push({type:"error",title:`Could not find testcase '${a}' in any testrun state.`,detail:[]});return}const H=j.attributes.testcaseCommentIds[a];if(H){const h=fe.getResources("github_testcase").find((e=>e.identity===a));const P=h?.attributes?.title||a;const _=Object.keys(j.attributes.testcaseCommentIds);const L=_.indexOf(a)+1;const[U,V]=a.split("::");const J=i(16928).basename(U||"");const X=V?V.replace("@",""):"";const Y=`**Origin:** ${J}\n<table border="1" width="100%">\n <tr>\n <th colspan="3">Feature Name</th>\n </tr>\n <tr>\n <td>${X}</td>\n <td>${P}</td>\n <td>${o}</td>\n </tr>\n <tr>\n <td colspan="3"><br/></td>\n </tr>\n</table>`;await e.github.updateIssueComment(H,Y);console.log(` -> Updated status comment for ${a} to '${o}'`);const Q=j.attributes.testcaseStatuses?.[a]||"pending";if(!j.attributes.testcaseStatuses)j.attributes.testcaseStatuses={};j.attributes.testcaseStatuses[a]=o;await fe.save();console.log(`\n ${(0,d.yellow)("~")} resource "github_testrun" "${j.identity}" {`);console.log(` ${(0,d.yellow)("~")} testcaseStatuses {`);console.log(` ${(0,d.yellow)("~")} "${a}": "${Q}" -> "${o}"`);console.log(` }`);console.log(` }\n`);console.log((0,d.green)((0,d.bold)(`Status successfully updated!`)));const Z=pe?i(16928).join(t,pe):t;const ee=new W.Parser(Z,ne);const te=ee.filter(ee.content(),{identity:"",fields:[]},"testrun");const re=te.find((e=>e.custom?.identity===j.identity||e.uri===j.identity||j.identity.startsWith(e.uri+"::")));if(re&&re.uri){try{const[t,d]=a.split("::");if(t&&d){const e=i(16928).join(Z,re.uri);K.GherkinEditor.updateScenarioStatus(e,t,d,o);console.log(` -> Synced status to local file: ${re.uri}`)}const h=new W.Parser(Z,ne);const P=h.filter(h.content(),{identity:"",fields:[]},"testrun");const _=P.find((e=>e.uri===re.uri||e.custom?.identity===j.identity));const L=m.resource.evaluate("github_testrun",_||re,{state:fe,testDirectory:pe});await e.github.updateIssue(j.attributes.issueNumber,L);console.log(` -> Synced status to main issue body #${j.attributes.issueNumber}`)}catch(e){console.log(` -> Failed to update local file or issue body: ${e.message}`)}}else{console.log(` -> Warning: Could not find local feature file for testrun identity '${j.identity}' to sync status.`)}}return}const o=Y==="all"?["testcase","testrun","testplan"]:[Y];let h=[];let P=fe;for(const e of o){if(oe&&!se){console.log(a.MSG_ACQUIRING_LOCK);await(0,j.refreshState)({dir:t,scope:e,state:fe,logger:me,silent:false,parallelismRaw:ue,target:ae})}const i=await(0,L.calculatePlan)({dir:t,scope:e,variables:ne,statePath:re,backupPath:ie,target:ae,destroyPlan:false,refreshOnly:se,preLoadedState:fe,lock:Z,lockTimeout:ee,replaceTargets:le,compactWarnings:de,testDirectory:pe});h.push(...i.changes);P=i.state}e={changes:h,hasChanges:h.length>0,state:P};m.resource.summary(e.changes,false,{state:e.state});if(!e.hasChanges){return}if(!J){if(!te){const e=new Error(a.ERR_NO_INPUT_ALLOWED+"\nUse the -auto-approve flag to bypass approval.");e.name="No input allowed";throw e}const e=await(0,U.askApproval)();if(!e){_.notify.push({type:"error",title:"error asking for approval: interrupted",detail:[]});return}}}if(Q&&!e.hasChanges){console.log("No changes found in the provided plan file.");return}const P=await(0,V.createCommandContext)({dir:t,verbose:X,lock:false});if(!P)return;const{github:he}=P;let ge=0;let ye=0;let be=0;const resolvePayloadMilestone=async e=>{if(typeof e.milestone==="string"&&e.milestone){e.milestone=await he.getMilestoneByTitle(e.milestone)}else if(!e.milestone){delete e.milestone}};const linkSubIssues=async(e,t)=>{if(e.resourceType==="github_testplan"&&e.scenario.custom?.testruns){for(const i of e.scenario.custom.testruns){const e=fe.getResources("github_testrun").filter((e=>e.identity.endsWith(i)||e.identity.includes(i)));if(e.length>1){const t=Array.from(new Set(e.map((e=>e.identity))));me.warn(`Rule '${i}' in Testplan matches multiple Testruns. Linking all of them:\n`+t.map((e=>` - ${e}`)).join("\n")+`\nIf this was unintentional, specify the full file path.`)}for(const i of e){if(i?.attributes?.issueNumber){try{const e=await he.getIssue(i.attributes.issueNumber);if(e&&e.id){await he.addSubIssue(t,e.id);console.log(` -> Linked testrun ${i.identity} as sub-issue to testplan`)}}catch(e){console.log(` -> Failed to link testrun ${i.identity} as sub-issue: ${e.message}`)}}}}}};const syncTestrunComments=async(e,t,i)=>{if(e.resourceType!=="github_testrun"||!e.scenario.custom?.testcases)return{};const a=i?.testcaseCommentIds||{};const o=i?.testcaseStatuses||{};const d=[];const h=m.resource.evaluateComments(e.resourceType,e.scenario,{state:fe,testDirectory:pe,existingAttributes:i});for(const e of h){const{identity:i,status:m,body:h}=e;d.push(i);if(!a[i]||o[i]!==m){if(a[i]){await he.updateIssueComment(a[i],h);console.log(` -> Updated status comment for ${i} to '${m}'`)}else{const e=await he.createIssueComment(t,h);a[i]=e.id;console.log(` -> Created status comment for ${i} as '${m}'`)}o[i]=m}}return{testcaseCommentIds:a,testcaseStatuses:o,expandedTestcases:d}};const ve=ue?parseInt(String(ue),10)||10:10;for(let a=0;a<e.changes.length;a+=ve){const o=e.changes.slice(a,a+ve);await Promise.all(o.map((async e=>{try{if(e.action==="add"){const a=(0,H.formatResourceAddress)(e.resourceType,e.identity);console.log(`${a}: Creating...`);const o=Date.now();const h=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(h);const P=await he.createIssue(h);if(P.node_id){const e=await he.addToProject(P.node_id);if(e&&h.custom_fields){await he.updateProjectItemFields(e,h.custom_fields)}}const _=(0,H.elapsedSeconds)(o);const L=he.formatRemoteId(P.number);console.log((0,d.green)(`${a}: Creation complete after ${_}s [id=${L}]`));await linkSubIssues(e,P.number);const{testcaseCommentIds:j,testcaseStatuses:U,expandedTestcases:V}=await syncTestrunComments(e,P.number);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:L,issueNumber:P.number,title:h.title,body:h.body,labels:h.labels,assignees:h.assignees,milestone:h.milestone??"",custom_fields:h.custom_fields,createdAt:P.created_at,updatedAt:P.updated_at,...j?{testcaseCommentIds:j,testcaseStatuses:U}:{}},lastApplied:(new Date).toISOString()});await linkSubIssues(e,P.number);ge++;const W=e.scenario.custom?.testcases?.some((e=>!e.endsWith("::*")));if(Y==="testrun"&&!W&&e.scenario.uri&&e.scenario.custom?.testcases){try{const a=pe?i(16928).join(t,pe):t;const o=i(16928).join(a,e.scenario.uri);const d=V?.length?V:e.scenario.custom.testcases;K.GherkinEditor.expandScenarios(o,d,"pending");console.log(` -> Expanded scenarios in local file: ${e.scenario.uri}`)}catch(e){console.log(` -> Failed to expand scenarios in local file: ${e.message}`)}}}else if(e.action==="replace"){const t=(0,H.formatResourceAddress)(e.resourceType,e.identity);const i=e.remoteId??"";console.log(`${t}: Replacing... [id=${i}]`);const a=Date.now();if(e.issueNumber){await he.updateIssue(e.issueNumber,{state:"closed"})}const o=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(o);const h=await he.createIssue(o);if(h.node_id){const e=await he.addToProject(h.node_id);if(e&&o.custom_fields){await he.updateProjectItemFields(e,o.custom_fields)}}const P=(0,H.elapsedSeconds)(a);const _=he.formatRemoteId(h.number);console.log((0,d.green)(`${t}: Replacement complete after ${P}s [id=${_}]`));await linkSubIssues(e,h.number);const{testcaseCommentIds:L,testcaseStatuses:j}=await syncTestrunComments(e,h.number);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:_,issueNumber:h.number,title:o.title,body:o.body,labels:o.labels,assignees:o.assignees,milestone:o.milestone??"",custom_fields:o.custom_fields,createdAt:h.created_at,updatedAt:h.updated_at,...L?{testcaseCommentIds:L,testcaseStatuses:j}:{}},lastApplied:(new Date).toISOString()});be++;ge++}else if(e.action==="change"){const a=(0,H.formatResourceAddress)(e.resourceType,e.identity);const o=e.remoteId??"";console.log(`${a}: Modifying... [id=${o}]`);const h=Date.now();const P=m.resource.evaluate(e.resourceType,e.scenario,{state:fe,testDirectory:pe});await resolvePayloadMilestone(P);const _=await he.updateIssue(e.issueNumber,P);if(_.node_id){const e=await he.addToProject(_.node_id);if(e&&P.custom_fields){await he.updateProjectItemFields(e,P.custom_fields)}}const L=(0,H.elapsedSeconds)(h);console.log((0,d.green)(`${a}: Modifications complete after ${L}s [id=${o}]`));await linkSubIssues(e,_.number);const j=fe.getResources(e.resourceType).find((t=>t.identity===e.identity))?.attributes;const{testcaseCommentIds:U,testcaseStatuses:V,expandedTestcases:W}=await syncTestrunComments(e,_.number,j);fe.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:o,issueNumber:e.issueNumber,title:P.title,body:P.body,labels:P.labels,assignees:P.assignees,milestone:P.milestone??"",custom_fields:P.custom_fields,createdAt:_.created_at,updatedAt:_.updated_at,...U?{testcaseCommentIds:U,testcaseStatuses:V}:{}},lastApplied:(new Date).toISOString()});ye++;const J=e.scenario.custom?.testcases?.some((e=>!e.endsWith("::*")));if(Y==="testrun"&&!J&&e.scenario.uri&&e.scenario.custom?.testcases){try{const a=pe?i(16928).join(t,pe):t;const o=i(16928).join(a,e.scenario.uri);const d=W?.length?W:e.scenario.custom.testcases;K.GherkinEditor.expandScenarios(o,d,"pending");console.log(` -> Expanded scenarios in local file: ${e.scenario.uri}`)}catch(e){console.log(` -> Failed to expand scenarios in local file: ${e.message}`)}}}else if(e.action==="destroy"){const t=(0,H.formatResourceAddress)(e.resourceType,e.identity);const i=e.remoteId??"";console.log(`${t}: Destroying... [id=${i}]`);const a=Date.now();if(e.issueNumber){await he.closeIssue(e.issueNumber)}const o=(0,H.elapsedSeconds)(a);console.log((0,d.green)(`${t}: Destruction complete after ${o}s [id=${i}]`));fe.removeResource(e.identity);be++}}catch(t){_.notify.push({type:"error",title:`${t.message}`,detail:[` with ${e.resourceType}.${e.identity}`]})}})))}console.log("");await fe.save();console.log((0,d.green)((0,d.bold)(`Apply complete! Resources: ${ge} added, ${ye} changed, ${be} destroyed.`)))}finally{await fe.releaseLock()}};t.applyCmd=applyCmd},66321:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debugCmd=void 0;const a=i(45392);const o=i(84489);const d=i(86999);const debugCmd=async e=>{const{dir:t,file:m,format:h,scope:P,variables:_}=e;const L=new a.Parser(t,_);const j=new o.Config(t);const U={identity:j.getIdentity(P),fields:j.getFields(P),convention:j.getConvention(P)};const H=L.content();const V=i(16928);const K=V.resolve(t,m);const W=H.filter((e=>{if(!e.uri)return false;if(e.uri.includes(m))return true;const i=V.resolve(t,e.uri);return i===K||i.includes(K)}));if(W.length===0){d.logger.error(`No scenarios found for file matching: ${m}`);process.exit(1)}if(h==="gherkin"){console.log(JSON.stringify(W,null,2));return}if(h==="testform"){const e=L.filter(W,U,P);console.log(JSON.stringify(e,null,2));return}d.logger.error(`Invalid format: ${h}. Use 'gherkin' or 'testform'.`);process.exit(1)};t.debugCmd=debugCmd},29540:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.destroyCmd=void 0;const a=i(80465);const o=i(7066);const d=i(86999);const m=i(1622);const h=i(2560);const P=i(54472);const _=i(65301);const L=i(62978);const destroyCmd=async e=>{const{dir:t=".",verbose:i=false,scope:j,lock:U=true,lockTimeout:H="0s",input:V=true,statePath:K,backupPath:W}=e;const J=new d.Logger(i);const X=new o.State(t,K,W);await X.init();await X.acquireLock(U,H);try{const e=j==="all"?["testcase","testrun","testplan"]:[j];let o=0;for(const d of e){if(!Object.prototype.hasOwnProperty.call(h.SCOPE_RESOURCE_MAP,d)){throw new Error(`Invalid scope: ${d}`)}const e=X.getResources(h.SCOPE_RESOURCE_MAP[d]);if(e.length===0){console.log(`No resources found in state for scope '${d}'.`);continue}console.log((0,a.bold)(`\n${h.TITLE_APP} will destroy the following resources in scope '${d}':\n`));for(const t of e){const e=t.attributes.remoteId??"";console.log(` ${(0,a.red)("-")} ${(0,L.formatResourceAddress)(t.type,t.identity)} [id=${e}]`)}console.log(`\n${(0,a.bold)("Plan:")} 0 to add, 0 to change, ${e.length} to destroy.\n`);if(V){const t=await(0,_.askDestroyApproval)(e.length,d);if(!t){m.notify.push({type:"error",title:`Destruction of scope '${d}' cancelled.`,detail:[]});continue}}console.log("");const j=await(0,P.createCommandContext)({dir:t,verbose:i,statePath:K,backupPath:W,lock:false,silent:false});if(!j)return;const{github:U}=j;for(const t of e){const e=(0,L.formatResourceAddress)(t.type,t.identity);const i=t.attributes.remoteId??"";console.log(`${e}: Destroying... [id=${i}]`);const d=Date.now();try{if(t.attributes.issueNumber){await U.closeIssue(t.attributes.issueNumber)}X.removeResource(t.identity);const m=(0,L.elapsedSeconds)(d);console.log((0,a.green)(`${e}: Destruction complete after ${m}s [id=${i}]`));o++}catch(t){m.notify.push({type:"error",title:`Failed to destroy ${e}: ${t.message}`,detail:[]})}}}await X.save();if(o>0){console.log("");console.log((0,a.green)((0,a.bold)(`Destroy complete! ${o} resource(s) destroyed.`)))}}finally{await X.releaseLock()}};t.destroyCmd=destroyCmd},65083:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffCmd=void 0;const a=i(76982);const o=i(80465);const d=i(84489);const m=i(45392);const h=i(7066);const P=i(86999);const _=i(2560);function hashScenario(e,t){const i=JSON.parse(JSON.stringify(e));if(!t||t==="testcase"){i.name=""}if(!t||t==="testrun"||t==="testplan"){if(i.feature){i.feature.name=""}}return(0,a.createHash)("sha256").update(JSON.stringify(i)).digest("hex")}function getStatusIcon(e){switch(e){case"synced":return(0,o.green)("✓");case"modified_locally":return(0,o.yellow)("~");case"new_local":return(0,o.cyan)("+");case"orphaned_remote":return(0,o.red)("-")}}function getStatusLabel(e){switch(e){case"synced":return"synced";case"modified_locally":return"modified locally";case"new_local":return"new (not applied)";case"orphaned_remote":return"orphaned (not in config)"}}const diffCmd=async e=>{const{dir:t=".",verbose:i=false,scope:a}=e;const L=new P.Logger(i);const j=new d.Config(t);const U=new m.Parser(t);const H=U.content();const V=new h.State(t);await V.init();const K=[];const W=a==="all"?["testcase","testrun","testplan"]:[a];for(const e of W){const t={identity:j.getIdentity(e),fields:j.getFields(e)};const i=U.filter(H,t,e)||[];const a=_.SCOPE_RESOURCE_MAP[e];const o=V.getResources(a);const d=new Map(o.map((e=>[e.identity,e])));const m=new Set;for(const t of i){const i=t.custom?.identity;if(!i)continue;let a;if(i.includes("::")){a=i}else if(i===t.uri){a=i}else{a=`${t.uri}::${i}`}m.add(a);const o=hashScenario(t,e);const h=d.get(a);if(!h){K.push({identity:a,status:"new_local",localHash:o})}else if(h.attributes.localHash!==o){K.push({identity:a,status:"modified_locally",localHash:o,stateHash:h.attributes.localHash,remoteId:h.attributes.remoteId})}else{K.push({identity:a,status:"synced",localHash:o,stateHash:h.attributes.localHash,remoteId:h.attributes.remoteId})}}for(const e of o){if(!m.has(e.identity)){K.push({identity:e.identity,status:"orphaned_remote",stateHash:e.attributes.localHash,remoteId:e.attributes.remoteId})}}}console.log("");console.log((0,o.bold)("Drift Detection Report"));console.log("═".repeat(60));console.log("");const J=K.filter((e=>e.status==="synced")).length;const X=K.filter((e=>e.status==="modified_locally")).length;const Y=K.filter((e=>e.status==="new_local")).length;const Q=K.filter((e=>e.status==="orphaned_remote")).length;for(const e of K){const t=getStatusIcon(e.status);const a=getStatusLabel(e.status);const d=e.remoteId?(0,o.dim)(` [id=${e.remoteId}]`):"";console.log(` ${t} ${(0,o.bold)(e.identity)}: ${a}${d}`);if(i&&e.status==="modified_locally"&&e.localHash&&e.stateHash){console.log(` Local: ${(0,o.dim)(e.localHash.substring(0,12))}...`);console.log(` State: ${(0,o.dim)(e.stateHash.substring(0,12))}...`)}}console.log("");console.log((0,o.bold)("Summary:"));console.log(` ${(0,o.green)("✓")} ${J} synced`);if(X>0)console.log(` ${(0,o.yellow)("~")} ${X} modified locally`);if(Y>0)console.log(` ${(0,o.cyan)("+")} ${Y} new (not applied)`);if(Q>0)console.log(` ${(0,o.red)("-")} ${Q} orphaned (not in config)`);console.log("")};t.diffCmd=diffCmd},52353:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fmtCmd=void 0;const a=i(79896);const o=i(16928);const d=i(86999);const fmtCmd=async e=>{const{dir:t=".",check:i=false,list:o=true,write:m=true,recursive:h=false}=e;const P=findFeatureFiles(t,h);if(P.length===0){d.logger.warn("No .feature files found to format.");return}let _=0;for(const e of P){const t=(0,a.readFileSync)(e,"utf8");const h=formatGherkin(t);if(t!==h){_++;if(!i&&m){(0,a.writeFileSync)(e,h,"utf8")}if(o){if(i){d.logger.warn(e)}else{d.logger.success(e)}}}}if(i){if(_>0){d.logger.warn(`\n${_} file(s) would be reformatted.`);process.exit(3)}else{d.logger.success("All files are formatted correctly.")}}};t.fmtCmd=fmtCmd;function findFeatureFiles(e,t){try{const i=(0,a.statSync)(e);if(i.isFile()&&e.endsWith(".feature")){return[e]}if(i.isDirectory()){if(e.includes("node_modules")||e.includes(".git"))return[];const i=(0,a.readdirSync)(e,{withFileTypes:true});const d=[];for(const a of i){const i=(0,o.join)(e,a.name);if(a.isDirectory()){if(t){d.push(...findFeatureFiles(i,t))}}else if(a.name.endsWith(".feature")){d.push(i)}}return d}return[]}catch(e){return[]}}function formatGherkin(e){const t=e.split("\n");const i=[];let a=0;let o=false;let d=0;for(let e=0;e<t.length;e++){let m=t[e];if(m.trim().startsWith('"""')||m.trim().startsWith("```")){if(!o){o=true;d=6;i.push(" ".repeat(d)+m.trim())}else{o=false;i.push(" ".repeat(d)+m.trim())}continue}if(o){i.push(m);continue}let h=m.trim();if(h===""){if(i.length>0&&i[i.length-1]!==""){i.push("")}continue}if(h.startsWith("Feature:")){a=0}else if(h.startsWith("Rule:")||h.startsWith("Background:")||h.startsWith("Scenario:")||h.startsWith("Scenario Outline:")||h.startsWith("Example:")){a=2;if(i.length>0&&i[i.length-1]!==""&&!i[i.length-1].trim().startsWith("@")){i.push("")}}else if(h.startsWith("Given ")||h.startsWith("When ")||h.startsWith("Then ")||h.startsWith("And ")||h.startsWith("But ")||h.startsWith("* ")){a=4}else if(h.startsWith("Examples:")){a=4;if(i.length>0&&i[i.length-1]!==""){i.push("")}}else if(h.startsWith("|")){a=6}else if(h.startsWith("@")){let o=0;for(let i=e+1;i<t.length;i++){let e=t[i].trim();if(e===""||e.startsWith("@"))continue;if(e.startsWith("Feature:"))o=0;else if(e.startsWith("Rule:")||e.startsWith("Background:")||e.startsWith("Scenario:")||e.startsWith("Scenario Outline:"))o=2;else if(e.startsWith("Examples:"))o=4;break}a=o;if(i.length>0&&i[i.length-1]!==""){i.push("")}}else if(h.startsWith("#")){}else{if(a===0)a=2}i.push(" ".repeat(a)+h)}if(i.length>0&&i[i.length-1]!==""){i.push("")}return i.join("\n")}},23634:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forceUnlockCmd=void 0;const a=i(80465);const o=i(7066);const d=i(2560);const forceUnlockCmd=async e=>{const{dir:t=".",lockId:m,force:h=false,statePath:P}=e;const _=new o.State(t,P);await _.init();const executeUnlock=async()=>{const e=await _.forceUnlock(m);if(e.success){console.log((0,a.green)(`\n${d.TITLE_APP} state has been successfully unlocked!\n`));if(!h){console.log(`The state has been unlocked, and ${d.TITLE_APP} commands should now be able to`);console.log(`obtain a new lock on the remote state.`)}}else{if(e.currentLockId){console.error((0,a.red)(`Error: Lock ID does not match.\n\nExpected: ${m}\nActual: ${e.currentLockId}\n`))}else if(e.error){console.error((0,a.red)(`${e.error}\n`))}process.exit(1)}};if(h){await executeUnlock();return}console.log(`Do you really want to force-unlock?`);console.log(` ${d.TITLE_APP} will remove the lock on the remote state.`);console.log(` This will allow local ${d.TITLE_APP} commands to modify this state, even though it`);console.log(` may be still be in use. Only 'yes' will be accepted to confirm.`);console.log("");const{createInterface:L}=i(23785);const j=L({input:process.stdin,output:process.stdout});return new Promise((e=>{j.question(" Enter a value: ",(async t=>{j.close();if(t.trim().toLowerCase()==="yes"){await executeUnlock()}else{console.error((0,a.red)(`\nUnlock cancelled.\n`));process.exitCode=1}e()}))}))};t.forceUnlockCmd=forceUnlockCmd},7651:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateCmd=void 0;const a=i(16928);const o=i(79896);const d=i(84489);const m=i(86999);function findFeatures(e){const t=[];try{const i=(0,o.readdirSync)(e,{withFileTypes:true});for(const o of i){const i=(0,a.join)(e,o.name);if(o.isDirectory()){if(!o.name.startsWith(".")&&o.name!=="node_modules"){t.push(...findFeatures(i))}}else if(o.name.endsWith(".feature")){t.push(i)}}}catch(e){}return t}function findNextIdentity(e,t){if(!t.includes("*"))return null;const a=t.split("*")[0].replace(/^@/,"");const o=t.split("*")[1]||"";const d=new RegExp(`@${a}(\\d+)${o}\\b`,"g");let m=0;const h=findFeatures(e);for(const e of h){const t=i(79896).readFileSync(e,"utf-8");let a;while((a=d.exec(t))!==null){const e=parseInt(a[1],10);if(e>m)m=e}}return`@${a}${m+1}${o}`}const generateCmd=async e=>{const{dir:t,scope:i,title:h}=e;const P=new d.Config(t);const _=P.getConvention(i);const L=P.getIdentity(i);const j=i.replace("test","");const U=_?.directory||i;const H=_?.filename||`{YYYYMMDD}_{HHmmss}.${j}.feature`;const V=new Date;const K=V.toISOString().split("T")[0].replace(/-/g,"");const W=V.toTimeString().split(" ")[0].replace(/:/g,"");const J=V.getTime().toString();let X=h;let Y="";if(X){Y=X.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}let Q=H.replace(/{YYYYMMDD}/g,K).replace(/{HHmmss}/g,W).replace(/{timestamp}/g,J).replace(/{slug}/g,Y);Q=Q.replace(/^[_\-]+/,"").replace(/[_\-]+(\.)/g,"$1");const Z=Math.random().toString(16).substring(2,8);if(Q.endsWith(".feature")){if(Q.endsWith(`.${j}.feature`)){Q=Q.replace(`.${j}.feature`,`_${Z}.${j}.feature`)}else{Q=Q.replace(`.feature`,`_${Z}.feature`)}}else{if(Q.endsWith(`.${j}`)){Q=Q.replace(`.${j}`,`_${Z}.${j}.feature`)}else{Q+=`_${Z}.${j}.feature`}}if(!X){X=Q.replace(/\.feature$/,"")}const ee=(0,a.join)(t,U,Q);if((0,o.existsSync)(ee)){m.logger.error(`File already exists: ${ee}`);process.exit(1)}if(e.rules&&e.rules.length>0){const i=findFeatures(t);for(const t of e.rules){const e=t.includes("::")?t.split("::")[0]:t;const a=i.some((t=>t.endsWith(e)||t.includes(e)));if(!a){m.logger.error([`Not Found`,`The feature file for Rule '${e}' does not exist in the workspace.`]);process.exit(1)}}}const te=(0,a.dirname)(ee);if(!(0,o.existsSync)(te)){(0,o.mkdirSync)(te,{recursive:true})}const ne=(i==="testrun"||i==="testplan")&&L?findNextIdentity(t,L):null;let re=`@${i}`;if(ne){re+=` ${ne}`}re+=`\nFeature: ${X}\n`;if(e.rules&&e.rules.length>0){re+=`\n`;for(const t of e.rules){re+=` Rule: ${t}\n`}}try{(0,o.writeFileSync)(ee,re,"utf-8");m.logger.success(`Generated ${i} file: ${ee}`,{bold:true})}catch(e){m.logger.error(`Failed to generate file: ${e.message}`);process.exit(1)}};t.generateCmd=generateCmd},79478:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.graphCmd=void 0;const a=i(80465);const o=i(45392);const graphCmd=async(e={})=>{const{dir:t=".",scope:d="testcase",drawCycles:m=false}=e;const h=new o.Parser(t);const P=h.content();const _=P.filter((e=>!e.uri.endsWith(".run.feature")&&!e.uri.endsWith(".plan.feature")));const L=P.filter((e=>e.uri.endsWith(".run.feature")));const j=P.filter((e=>e.uri.endsWith(".plan.feature")));const U=new Map;for(const e of j){if(!U.has(e.uri)){U.set(e.uri,{name:e.feature?.name||"Unnamed Plan",testruns:[]})}if(e.rule?.name)U.get(e.uri).testruns.push(e.rule.name)}const H=Array.from(U.values());const V=new Map;for(const e of L){if(!V.has(e.uri)){V.set(e.uri,{name:e.feature?.name||"Unnamed Run",testcases:[],identity:e.custom?.identity||e.feature?.name||"",uri:e.uri})}if(e.rule?.name)V.get(e.uri).testcases.push(e.rule.name);else if(e.name)V.get(e.uri).testcases.push(`${e.feature?.name}::${e.name}`)}const K=Array.from(V.values());if(H.length===0&&K.length===0&&_.length===0){console.log("No test configurations found.");return}console.log((0,a.bold)("Test Infrastructure Graph\n"));const link=e=>m?(0,a.magenta)(e):e;function findTcs(e){let t="*";let a=e;if(e.includes("::")){const i=e.split("::");t=i.pop()||"*";a=i.join("::")}const o=_.filter((e=>{const i=e.uri.endsWith(a)||e.uri.includes(a);const o=t==="*"||e.name===t||e.name.includes(t);return i&&o}));const d=Array.from(new Set(o.map((e=>e.uri))));if(d.length>1){if(t!=="*"){const{logger:e}=i(86999);e.error(`Ambiguous reference for Scenario '${t}' under Rule '${a}'. It matches multiple files:\n`+d.map((e=>` - ${e}`)).join("\n")+`\nPlease specify the full file path in your Rule to disambiguate.`)}else{const{logger:e}=i(86999);e.warn(`Rule '${a}' matches multiple feature files. Processing all of them:\n`+d.map((e=>` - ${e}`)).join("\n")+`\nIf this was unintentional, specify the full file path.`)}}return o}if(d==="testplan"||d==="testcase"){for(const e of H){const t=e.name;console.log(`📦 ${(0,a.cyan)((0,a.bold)(t))} ${(0,a.dim)(`(testplan)`)}`);const i=e.testruns;for(const[e,t]of i.entries()){const o=e===i.length-1;const m=o?"└── ":"├── ";const h=K.find((e=>e.identity===t||e.name===t||e.name.endsWith(t)||t.endsWith(e.name)||e.uri.endsWith(t)));if(h){const e=h.name;console.log(` ${link(m)}📂 ${(0,a.green)(e)} ${(0,a.dim)(`(testrun)`)}`);if(d==="testcase"){const e=h.testcases;for(let t=0;t<e.length;t++){const i=e.at(t);const d=t===e.length-1;const m=o?" ":"│ ";const h=d?"└── ":"├── ";const P=findTcs(i);if(P.length>0){for(let e=0;e<P.length;e++){const t=P.at(e);const i=d&&e===P.length-1;const o=i?"└── ":"├── ";console.log(` ${m}${link(o)}📄 ${t.name} ${(0,a.dim)(`(testcase)`)}`)}}else{console.log(` ${m}${link(h)}📄 ${(0,a.dim)(i+" (Not found)")}`)}}}}else{console.log(` ${link(m)}📂 ${(0,a.dim)(t+" (Not found)")}`)}}console.log("")}if(d==="testcase"){const e=new Set(H.flatMap((e=>e.testruns||[])));const t=K.filter((t=>!Array.from(e).some((e=>t.identity===e||t.name===e||t.uri.endsWith(e)||e.endsWith(t.name)))));if(t.length>0){console.log((0,a.bold)("Orphaned Test Runs (Not linked to any testplan)\n"));for(const e of t){const t=e.name;console.log(`📂 ${(0,a.green)(t)} ${(0,a.dim)(`(testrun)`)}`);const i=e.testcases;for(let e=0;e<i.length;e++){const t=i.at(e);const a=e===i.length-1;const o=a?"└── ":"├── ";console.log(` ${link(o)}📄 ${t}`)}console.log("")}}}}else if(d==="testrun"){for(const e of K){const t=e.name;console.log(`📂 ${(0,a.green)((0,a.bold)(t))} ${(0,a.dim)(`(testrun)`)}`);const i=e.testcases;for(let e=0;e<i.length;e++){const t=i.at(e);const o=e===i.length-1;const d=o?"└── ":"├── ";const m=findTcs(t);if(m.length>0){for(let e=0;e<m.length;e++){const t=m.at(e);const i=o&&e===m.length-1;const d=i?"└── ":"├── ";console.log(` ${link(d)}📄 ${t.name} ${(0,a.dim)(`(testcase)`)}`)}}else{console.log(` ${link(d)}📄 ${(0,a.dim)(t+" (Not found)")}`)}}console.log("")}}};t.graphCmd=graphCmd},52541:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.importCmd=void 0;const o=i(16928);const d=i(84489);const m=i(7066);const h=i(92401);const P=i(45392);const _=i(80573);const L=i(80465);const j=i(74483);const U=a(i(79896));const H=i(86999);const V=i(2560);const importCmd=async e=>{const{dir:t=".",scope:i,identityArg:a,issueNumber:K,lock:W=true,lockTimeout:J="0s",statePath:X,backupPath:Y}=e;const Q=new H.Logger;console.log((0,L.bold)(`Importing ${i} ${a} from issue #${K}...`));const Z=new m.State(t,X,Y);await Z.init();await Z.acquireLock(W,J);try{const e=Z;const m=(0,o.resolve)(t);const H=(0,o.normalize)((0,o.join)(m,V.FILE_CONFIG));if(!H.startsWith(m)){console.error((0,L.red)(`Invalid configuration path.`));process.exit(1)}if(!U.default.existsSync(H)){console.error((0,L.red)(`Configuration file ${V.FILE_CONFIG} not found in directory.`));process.exit(1)}const W=JSON.parse(U.default.readFileSync(H,"utf-8"));const J=new h.GitHubAdapter(W.github);const X=parseInt(K,10);if(isNaN(X)){console.error((0,L.red)(`Invalid issue number: ${K}`));process.exit(1)}let Y=a;const Q=new d.Config(t);const ee={identity:Q.getIdentity(i),fields:Q.getFields(i)};const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,t))return false;const i=V.SCOPE_CONFIG[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};const te=new P.Parser(t);const ne=te.content();const re=ne.filter((e=>matchesScope(e,i)));let ie=te.filter(re,ee,i)||[];const ae=ie.find((e=>{const t=e.custom?.identity;if(!t)return false;const o=i==="testrun"||i==="testplan"?t:`${e.uri}::${t}`;return o===a||o.endsWith(a)||a.endsWith(o)}));if(ae){const e=ae.custom?.identity;Y=i==="testrun"||i==="testplan"?e||a:`${ae.uri}::${e}`;console.log(`Resolved short identity to full identity: ${Y}`)}else{console.log((0,L.yellow)(`Warning: Could not find matching local scenario for identity: ${a}`));console.log((0,L.yellow)(`Import will proceed with the exact identity provided, but it might not map to any local file.`))}console.log(`Fetching issue #${X} from GitHub...`);const oe=await J.getIssue(X);if(!oe){console.error((0,L.red)(`Issue #${X} not found in GitHub repository.`));process.exit(1)}if(oe.state==="closed"){console.log((0,L.yellow)(`Warning: Issue #${X} is currently closed.`))}if(!Object.prototype.hasOwnProperty.call(V.SCOPE_RESOURCE_MAP,i)){console.error((0,L.red)(`Invalid scope: ${i}`));process.exit(1)}const se=V.SCOPE_RESOURCE_MAP[i];const ce=J.formatRemoteId(X);let le={};if(oe.node_id){le=await J.getProjectItemFields(oe.node_id)}if(!ae&&i==="testcase"&&Y.includes("::")){const[e,t]=Y.split("::");const a=(0,o.normalize)((0,o.resolve)(m,e));if(!a.startsWith(m)){console.error((0,L.red)(`Invalid file path in identity.`));process.exit(1)}if(U.default.existsSync(a)){const e=re.find((e=>e.uri===a));const o=e?.feature?.tags||[];const d=new Map;const m=U.default.readFileSync(a,"utf-8");const h=m.match(/Background:([\s\S]*?)(?=\n\s*@|\n\s*Scenario:|$)/);if(h){const e=h[1];for(const t of e.split("\n")){const e=t.match(/^\s*(?:\*|Given|When|Then|And)\s+field\s+([A-Za-z0-9_.\- ]+?)\s*=\s*(.+)$/i);if(e){d.set(e[1].trim().toLowerCase(),e[2].trim())}}}const P=Q.getFields(i)||[];const _=[];const j=[];const H=oe.labels||[];const V=P.find((e=>e.name==="labels"));const K=V?.default?String(V.default):"";for(const e of H){if(o.includes(e)||o.includes(`@${e}`))continue;if(e===K)continue;_.push(`@${e}`)}for(const e of P){if(e.name==="labels"||e.name==="assignees"||e.name==="milestone")continue;const t=Object.keys(le).find((t=>t.toLowerCase()===e.name.toLowerCase()));const i=t?le[t]:"";if(!i)continue;const a=e.default?String(e.default):"";const m=i.toLowerCase()===a.toLowerCase();const h=d.get(e.name.toLowerCase());const P=h&&h.toLowerCase()===i.toLowerCase();if(m||P)continue;if(e.type==="tags"){const e=i.startsWith("@")?i:`@${i}`;if(!o.includes(e)&&!o.includes(e.substring(1))){_.push(e)}}else if(e.type==="keywords"){j.push(`* field ${e.name} = ${i}`)}}let W=oe.body||"";const J=W.match(/```gherkin\n([\s\S]*?)```/);if(J){W=J[1].trim()}else{W=W.trim()}if(W){const e=_.length>0?` ${t} ${_.join(" ")}\n`:` ${t}\n`;const i=j.length>0?j.map((e=>` ${e}\n`)).join(""):"";const o=W.split("\n").map((e=>` ${e}`)).join("\n")+`\n`;const d=`\n\n${e} Scenario: ${oe.title}\n${i}${o}`;U.default.appendFileSync(a,d);console.log((0,L.green)(`\nAutomatically reconstructed scenario code in ${a}`))}}}let ue="";if(ae){ue=(0,j.hashScenario)(ae)}const de=ae?_.resource.evaluate(se,ae,{state:Z}):null;const pe=de;e.upsertResource({type:se,identity:Y,attributes:{title:oe.title,body:oe.body||"",labels:oe.labels||[],assignees:oe.assignees||[],milestone:oe.milestone||"",custom_fields:le,remoteId:ce,issueNumber:oe.number,localHash:ue},lastApplied:(new Date).toISOString()});e.save();console.log((0,L.green)(`\nImport successful!`));console.log(`State updated for ${(0,L.bold)(`${se}.${Y}`)} -> Issue #${X}`);console.log(`Run 'plan' to see if any local changes need to be applied.`)}finally{await Z.save();await Z.releaseLock()}};t.importCmd=importCmd},70722:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initCmd=void 0;const a=i(2560);const o=i(65301);const d=i(79896);const m=i(84489);const h=i(86999);const P=i(16928);const _=i(7066);const L=i(28742);const resolvePaths=e=>({configPath:(0,P.join)(e,a.FILE_CONFIG),statePath:(0,P.join)(e,a.FILE_STATE)});const ensureWorkingDirectory=(e,t)=>{if((0,d.existsSync)(e))return;(0,d.mkdirSync)(e,{recursive:true});t.info(`Created ${e} directory`)};const createConfigIfNotExists=(e,t)=>{if((0,d.existsSync)(e)){return true}const i={version:a.VERSION_CONFIG,github:{owner:"<required>",repository:"<required>"},backend:{type:"local",config:{}},scope:{testcase:{fields:[]},testrun:{fields:[]},testplan:{fields:[]}}};(0,d.writeFileSync)(e,JSON.stringify(i,null,2),"utf-8");return false};const ensureStateExists=(e,t)=>{if((0,d.existsSync)(e))return;const i={version:a.VERSION_STATE,lastSync:(new Date).toISOString(),testcase:[],testrun:[],testplan:[]};(0,d.writeFileSync)(e,JSON.stringify(i,null,2),"utf-8")};const loadValidatedConfig=e=>{const t=new m.Config(e);return t};const printInitSummary=(e,t)=>{e.info(`- Configuration: ${a.FILE_CONFIG} (v${t.getConfig().version})`);e.info(`- State backend: ready`);e.blank()};const printNextSteps=e=>{e.success(`${a.TITLE_APP} has been successfully initialized!`,{bold:true});e.blank();e.info(`You may now begin working with ${a.TITLE_APP}. Try running "${a.TITLE_CLI} plan" to see`);e.info("any changes that are required for your test management resources.");e.blank();e.info(`If you ever set or change configuration for ${a.TITLE_APP}, rerun this command to`);e.info("reinitialize your working directory.")};const initCmd=async(e={})=>{const{dir:t=".",verbose:i=false,backendConfigRaw:d,lock:m=true,lockTimeout:P="0s",reconfigure:j=false,backendEnabled:U=true,isJson:H=false}=e;const V=new h.Logger(i,H);const K=resolvePaths(t);ensureWorkingDirectory(t,V);const W=createConfigIfNotExists(K.configPath,V);V.info("Initializing the backend...",{bold:true});V.info(`Initializing ${a.TITLE_APP} configuration...`,{bold:true});const J=loadValidatedConfig(t);let X=J.getBackend();if(!U){X={type:"local",config:{}}}const Y=new L.WorkspaceManager(t);const Q=Y.getActiveBackend();let Z=false;const ee=Q&&X&&JSON.stringify(Q)!==JSON.stringify(X);if(W&&!ee&&!j){V.error([`${a.TITLE_APP} initialized in not empty directory!`,`The directory has ${a.TITLE_APP} configuration files. You may begin working`,`with ${a.TITLE_APP} immediately by creating ${a.TITLE_APP} resources.`]);return}if(ee&&X){if(j){V.warn("Backend configuration changed. -reconfigure passed, skipping migration.")}else{const t=e.inputEnabled??true;if(!t&&e.migrateState===undefined){V.error("Backend configuration changed.\nError: input is disabled and -migrate-state was not passed.");return}let i=e.migrateState;if(i===undefined&&t){i=await(0,o.askMigrationApproval)(X.type)}if(i){Z=true}}}if(!X||X.type==="local"){ensureStateExists(K.statePath,V)}const te=new _.State(t,undefined,undefined,!U,d);try{await te.acquireLock(m,P);if(Z&&Q&&X){V.info(`Migrating state from ${Q.type} to ${X.type}...`);const e=new _.State(t,undefined,undefined,false,undefined,Q);try{await e.init();const t=e.getState();await te.init();te.replaceState(t);await te.save();V.success(`Successfully migrated state to ${X.type} backend!`)}catch(e){V.error(`Failed to migrate state: ${e.message}`);return}}else{await te.init();if(te.getState().serial===0){await te.save()}}Y.setActiveBackend(X)}catch(e){V.error(`Failed to initialize remote backend: ${e.message}`);return}finally{await te.releaseLock()}printInitSummary(V,J);printNextSteps(V)};t.initCmd=initCmd},17155:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.loginCmd=void 0;const m=i(80465);const h=d(i(23785));const P=i(72633);const askQuestion=(e,t)=>new Promise((i=>{e.question(t,(e=>i(e.trim())))}));const loginCmd=async(e={})=>{let{hostname:t="github.com"}=e;if(t==="app.terraform.io")t="github.com";console.log(`\nTestForm must now request authentication credentials for ${(0,m.bold)(t)}.\nThese credentials will be stored locally at ~/.testform.d/credentials.json.\n`);const i=h.createInterface({input:process.stdin,output:process.stdout});try{const e=new P.Credentials;const a={};const o=await askQuestion(i,`Token (PAT) for ${t}: `);if(!o)throw new Error("Token cannot be empty.");a.token=o;e.setAuth(t,a);console.log(`\n${(0,m.green)("Success!")} Configuration saved for ${t}.`)}catch(e){console.log(`\n${(0,m.yellow)("Login aborted:")} ${e.message}`);process.exit(1)}finally{i.close()}};t.loginCmd=loginCmd},13834:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logoutCmd=void 0;const a=i(80465);const o=i(72633);const logoutCmd=async(e={})=>{let{hostname:t="github.com"}=e;if(t==="app.terraform.io")t="github.com";const i=new o.Credentials;const d=i.removeToken(t);if(d){console.log(`\n${(0,a.green)("Success!")} Removed credentials for ${t}.`)}else{console.log(`\n${(0,a.yellow)("Warning:")} No credentials found for ${t}.`)}};t.logoutCmd=logoutCmd},74483:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.planCmd=void 0;t.hashScenario=hashScenario;t.calculatePlan=calculatePlan;const a=i(76982);const o=i(2560);const d=i(80465);const m=i(80573);const h=i(84489);const P=i(45392);const _=i(32721);const L=i(7066);const j=i(86999);const U=i(79896);const H=i(31821);const V=i(2560);const K=i(62978);const W=i(16928);function hashScenario(e,t){const i=JSON.parse(JSON.stringify(e));if(!t||t==="testcase"){i.name=""}if(!t||t==="testrun"||t==="testplan"){if(i.feature){i.feature.name=""}}return(0,a.createHash)("sha256").update(JSON.stringify(i)).digest("hex")}async function calculatePlan(e){const{dir:t,scope:i,variables:a,statePath:o,backupPath:m,target:j,destroyPlan:U=false,refreshOnly:H=false,preLoadedState:J,lock:X=true,lockTimeout:Y="0s",replaceTargets:Q,compactWarnings:Z,testDirectory:ee}=e;const te=new h.Config(t);if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,i)){throw new Error(`Invalid scope: ${i}`)}const ne=V.SCOPE_CONFIG[i];const re=ne.resource;const ie=ee?(0,W.join)(t,ee):t;const ae=new P.Parser(ie,a);const oe=ae.content();const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(V.SCOPE_CONFIG,t))return false;const i=V.SCOPE_CONFIG[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};let se=oe.filter((e=>matchesScope(e,i)));const ce={identity:te.getIdentity(i),fields:te.getFields(i)};let le=ae.filter(se,ce,i)||[];if(j){const e=Array.isArray(j)?j:[j];le=le.filter((t=>{const i=t.custom?.identity?`${t.uri}::${t.custom.identity}`:"";return e.some((e=>i===e||i.startsWith(`${e}::`)||i.endsWith(`/${e}`)||i.endsWith(e)))}))}if(U){le=[]}const ue=_.policy.scanner(le,i,false,Z);if(ue){const e=new Error("Please fix them before continuing.");e.name="Policy violations found";throw e}const de=J||new L.State(t,o,m);if(!J){await de.init();await de.acquireLock(X,Y)}let pe=de.getResources(re);if(j){const e=Array.isArray(j)?j:[j];pe=pe.filter((t=>e.some((e=>t.identity===e||t.identity.startsWith(`${e}::`)||t.identity.endsWith(`/${e}`)||t.identity.endsWith(e)))))}if(H){return{changes:[],state:de,hasChanges:false}}for(const e of pe){const t=e.attributes.remoteId?`[id=${e.attributes.remoteId}]`:"";console.log((0,d.bold)(`${(0,K.formatResourceAddress)(e.type,e.identity)}: Refreshing state... ${t}`))}console.log("");const me=new Map(pe.map((e=>[e.identity,e])));const fe=new Set;const he=[];for(const e of le){let t;const a=e.custom?.identity;if(!a)continue;if(a.includes("::")){t=a}else if(a===e.uri){t=a}else{t=`${e.uri}::${a}`}fe.add(t);const o=hashScenario(e,i);const d=me.get(t);const m=Q?Array.isArray(Q)?Q.some((e=>t===e||t.startsWith(`${e}::`)||t.endsWith(`/${e}`)||t.endsWith(e))):t===Q||t.startsWith(`${Q}::`)||t.endsWith(`/${Q}`)||t.endsWith(Q):false;if(!d){he.push({action:"add",identity:t,resourceType:re,scenario:e,localHash:o})}else if(d.tainted||m){he.push({action:"replace",identity:t,resourceType:re,scenario:e,remoteId:d.attributes.remoteId,issueNumber:d.attributes.issueNumber,localHash:o,oldAttributes:d.attributes})}else if(d.attributes.localHash!==o){he.push({action:"change",identity:t,resourceType:re,scenario:e,remoteId:d.attributes.remoteId,issueNumber:d.attributes.issueNumber,localHash:o,oldAttributes:d.attributes})}}for(const e of pe){if(!fe.has(e.identity)){he.push({action:"destroy",identity:e.identity,resourceType:re,scenario:i==="testrun"||i==="testplan"?{uri:"(state)",feature:{tags:[],keyword:"",name:e.attributes.title,description:"",location:0},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:Array.isArray(e.attributes.labels)?e.attributes.labels:e.attributes.labels?String(e.attributes.labels).split(","):[],custom:{identity:e.identity}}:{uri:"(state)",feature:{tags:[],keyword:"",name:"",description:"",location:0},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:e.attributes.labels,custom:{identity:e.identity}},remoteId:e.attributes.remoteId,issueNumber:e.attributes.issueNumber,localHash:e.attributes.localHash})}}return{changes:he,hasChanges:he.length>0,state:de}}const planCmd=async e=>{const{dir:t=".",verbose:a=false,scope:d,outPath:h,lock:P=true,lockTimeout:_="0s",variables:K,isJson:W=false,detailedExitCode:J=false,statePath:X,backupPath:Y,target:Q,destroyPlan:Z=false,refresh:ee=true,refreshOnly:te=false,replaceTargets:ne,parallelism:re,compactWarnings:ie=false,testDirectory:ae}=e;const oe=new j.Logger(a);const se=new L.State(t,X,Y);await se.init();await se.acquireLock(P,_);let ce={changes:[],hasChanges:false,state:se};try{const e=d==="all"?["testcase","testrun","testplan"]:[d];if(ee&&!Z){if(!W)console.log(o.MSG_ACQUIRING_LOCK)}let i=[];for(const a of e){if(ee&&!Z){await(0,H.refreshState)({dir:t,scope:a,state:se,logger:oe,silent:W,parallelismRaw:re,target:Q})}const e=await calculatePlan({dir:t,scope:a,variables:K,statePath:X,backupPath:Y,target:Q,destroyPlan:Z,refreshOnly:te,preLoadedState:se,lock:P,lockTimeout:_,replaceTargets:ne,compactWarnings:ie,testDirectory:ae});i.push(...e.changes);ce.state=e.state}ce.changes=i;ce.hasChanges=i.length>0;if(W){const e={testform_version:V.VERSION_CLI,scope:d,changes:ce.changes};console.log(JSON.stringify(e,null,2))}else{m.resource.summary(ce.changes,true,{state:ce.state,outPath:h})}}finally{await se.releaseLock()}if(h){const e=i(16928);const a=e.resolve(t,h);const o={testform_version:V.VERSION_CLI,scope:d,changes:ce.changes};try{(0,U.writeFileSync)(a,JSON.stringify(o,null,2),"utf-8");console.log(`\nSaved the plan to: ${h}\n\nTo perform exactly these actions, run the following command to apply:\n testform apply "${h}"`)}catch(e){oe.error(`Failed to write plan to ${a}: ${e.message}`)}}if(J){process.exitCode=ce.hasChanges?2:0}return ce};t.planCmd=planCmd},31821:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.refreshCmd=t.refreshState=void 0;const a=i(80465);const o=i(92401);const d=i(84489);const m=i(7066);const h=i(86999);const P=i(1622);const _=i(2560);const refreshState=async e=>{const{dir:t,scope:m,state:h,logger:L,silent:j=false,parallelismRaw:U,target:H}=e;if(!Object.prototype.hasOwnProperty.call(_.SCOPE_RESOURCE_MAP,m)){throw new Error(`Invalid scope: ${m}`)}const V=_.SCOPE_RESOURCE_MAP[m];let K=h.getResources(V);if(H){const e=Array.isArray(H)?H:[H];K=K.filter((t=>e.some((e=>t.identity===e||t.identity.startsWith(`${e}::`)||t.identity.endsWith(`/${e}`)||t.identity.endsWith(e)))))}if(K.length===0){await h.save();if(!j)console.log("No resources in state to refresh.");return}const W=new d.Config(t);const J=W.getGitHub();if(!J){if(!j){P.notify.push({type:"error",title:"GitHub configuration not found",detail:[_.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return}const X=new o.GitHubAdapter(J);let Y=0;let Q=0;const Z=U?parseInt(String(U),10)||10:10;for(let e=0;e<K.length;e+=Z){const t=K.slice(e,e+Z);await Promise.all(t.map((async e=>{const t=e.attributes.remoteId??"";const{formatResourceAddress:o}=i(62978);if(!j)console.log(`${o(e.type,e.identity)}: Refreshing state... ${(0,a.dim)(`[id=${t}]`)}`);try{if(!e.attributes.issueNumber){if(!j)console.log((0,a.yellow)(` ${e.identity}: No issue number — removing from state`));h.removeResource(e.identity);Q++;return}const t=await X.getIssue(e.attributes.issueNumber);if(!t){if(!j)console.log((0,a.red)(` ${e.identity}: Issue #${e.attributes.issueNumber} not found — removing from state`));h.removeResource(e.identity);Q++}else{let i=false;if(e.attributes.title!==t.title){e.attributes.title=t.title;i=true}const arraysEqual=(e=[],t=[])=>{if(e.length!==t.length)return false;const i=[...e].sort();const a=[...t].sort();return i.every(((e,t)=>e===a[t]))};const a=t.labels??[];const o=Array.isArray(e.attributes.labels)?e.attributes.labels:e.attributes.labels?String(e.attributes.labels).split(","):[];if(!arraysEqual(o,a)){e.attributes.labels=a;i=true}const d=t.assignees??[];const m=Array.isArray(e.attributes.assignees)?e.attributes.assignees:e.attributes.assignees?String(e.attributes.assignees).split(","):[];if(!arraysEqual(m,d)){e.attributes.assignees=d;i=true}const P=t.milestone??"";const _=String(e.attributes.milestone??"");if(_!==P){e.attributes.milestone=P;i=true}if(t.node_id){const a=await X.getProjectItemFields(t.node_id);const o=e.attributes.custom_fields||{};for(const e of Object.keys(o)){const t=Object.keys(a).find((t=>t.toLowerCase()===e.toLowerCase()));const d=t?a[t]:"";const m=String(Object.prototype.hasOwnProperty.call(o,e)?o[e]:"");const h=m.startsWith("@")?m.substring(1).toLowerCase():m.toLowerCase();const P=d.toLowerCase();if(h!==P){Object.assign(o,{[e]:d});i=true}}e.attributes.custom_fields=o}if(i){e.attributes.localHash="drift_detected";h.upsertResource(e)}Y++}}catch(t){if(!j){P.notify.push({type:"warning",title:`Failed to refresh ${e.identity}: ${t.message}`,detail:[]})}}})))}await h.save();if(!j){console.log("");console.log((0,a.green)((0,a.bold)(`Refresh complete! ${Y} resource(s) refreshed, ${Q} removed.`)))}};t.refreshState=refreshState;const refreshCmd=async e=>{const{dir:i=".",verbose:a=false,scope:o,lock:d=true,lockTimeout:P="0s",statePath:_,backupPath:L,parallelismRaw:j,compactWarnings:U,target:H}=e;const V=new h.Logger(a);const K=new m.State(i,_,L);await K.init();await K.acquireLock(d,P);try{const e=o==="all"?["testcase","testrun","testplan"]:[o];for(const a of e){await(0,t.refreshState)({dir:i,scope:a,state:K,logger:V,silent:false,parallelismRaw:j,target:H})}}finally{await K.releaseLock()}};t.refreshCmd=refreshCmd},8938:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.reportCmd=void 0;t.resolvePath=resolvePath;const o=i(7066);const d=i(80465);const m=a(i(79896));const h=i(84489);const P=i(92401);function resolvePath(e,t){if(!t)return undefined;const i=t.replace(/\[(\w+)\]/g,".$1").split(".");let a=e;for(const e of i){if(a===undefined||a===null)return undefined;a=a[e]}return a}const reportCmd=async e=>{const{dir:t,type:a,format:_,filter:L,out:j,groupBy:U,statePath:H,apply:V,fields:K}=e;const W=new o.State(t,H);await W.init();const J=W.getResources("github_testcase");const X=W.getResources("github_testrun");const Y=W.getResources("github_testplan");const Q=new Map;for(const e of X)Q.set(e.identity,e);let Z=[];const ee=new Set;for(const e of X){const t=e.attributes.testcaseStatuses||{};for(const[i,a]of Object.entries(t)){const t=J.find((e=>e.identity===i));if(!t)continue;ee.add(i);Z.push({id:i,type:"github_testcase",title:String(t.attributes.title||""),status:a||"pending",labels:Array.isArray(t.attributes.labels)?t.attributes.labels.map(String):[],assignees:Array.isArray(t.attributes.assignees)?t.attributes.assignees.map(String):[],milestone:String(t.attributes.milestone||""),testRunId:e.identity,testPlanId:"",issueNumber:Number(t.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${t.attributes.issueNumber}`,custom_fields:t.attributes.custom_fields||{},createdAt:String(t.attributes.createdAt||t.lastApplied||(new Date).toISOString()),updatedAt:String(t.attributes.updatedAt||t.lastApplied||(new Date).toISOString()),originalResource:t})}}for(const e of J){if(!ee.has(e.identity)){Z.push({id:e.identity,type:"github_testcase",title:String(e.attributes.title||""),status:"unexecuted",labels:Array.isArray(e.attributes.labels)?e.attributes.labels.map(String):[],assignees:Array.isArray(e.attributes.assignees)?e.attributes.assignees.map(String):[],milestone:String(e.attributes.milestone||""),testRunId:"",testPlanId:"",issueNumber:Number(e.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${e.attributes.issueNumber}`,custom_fields:e.attributes.custom_fields||{},createdAt:String(e.attributes.createdAt||e.lastApplied||(new Date).toISOString()),updatedAt:String(e.attributes.updatedAt||e.lastApplied||(new Date).toISOString()),originalResource:e})}}for(const e of L){const[t,i]=e.split("=");if(!t||!i)continue;Z=Z.filter((e=>{const a=e[t]||e.custom_fields[t];if(Array.isArray(a)){return a.includes(i)}return String(a)===i}))}let te="";if(_==="json"){te=JSON.stringify(Z,null,2)}else if(_==="csv"){const e=["ID","Title","Status","Labels","Assignees","Milestone","TestRun","IssueNumber"];const t=Z.map((e=>[e.id,`"${e.title.replace(/"/g,'""')}"`,e.status,`"${e.labels.join(" ")}"`,`"${e.assignees.join(" ")}"`,`"${e.milestone}"`,e.testRunId,e.issueNumber]));te=[e.join(","),...t.map((e=>e.join(",")))].join("\n")}else{const e=new h.Config(t);te=generateMarkdownReport(a,Z,U,e,X,Y)}if(j){const e=i(16928);const a=e.resolve(t,j);m.default.writeFileSync(a,te,"utf-8");console.log((0,d.green)(`Report saved to ${j}`))}else if(!V){console.log(te)}if(V){if(_!=="md"){console.log((0,d.yellow)('Warning: Uploading to GitHub is recommended in "md" format. Currently using '+_))}const e=new h.Config(t);const i=e.getGitHub();if(!i){console.error((0,d.red)("Error: GitHub configuration not found in testform.json"));process.exit(1)}const o=e.getFields("testreport");const m={};let L=[];let j=undefined;let U=["testreport"];for(const e of K||[]){let t={};if(e.trim().startsWith("{")){try{t=JSON.parse(e)}catch(t){console.log((0,d.yellow)(`Warning: Could not parse field JSON: ${e}`));continue}}else{const i=e.split("=");if(i.length>=2){t[i[0]]=i.slice(1).join("=")}else{console.log((0,d.yellow)(`Warning: Invalid field format: ${e}. Expected key=value or JSON`));continue}}for(const[e,i]of Object.entries(t)){const t=o.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(e.toLowerCase()==="assignees"){L=L.concat(i.split(",").map((e=>e.trim().replace(/^@/,""))))}else if(e.toLowerCase()==="milestone"){j=i}else if(t?.type==="tags"){U.push(i)}else{m[e]=i}}}const H=new P.GitHubAdapter(i);const V=(new Date).toISOString().split("T")[0];const W=a.charAt(0).toUpperCase()+a.slice(1).replace("-"," ");const J=`${W} - ${V}`;console.log(`Uploading report to GitHub...`);const X=await H.createIssue({title:J,body:te,labels:[...new Set(U)],assignees:L.length>0?L:undefined,milestone:j?parseInt(j,10):undefined});console.log((0,d.green)(`✅ Report successfully created: https://github.com/${i.owner}/${i.repository}/issues/${X.number}`));if(X.node_id&&i.projectId){try{const e=await H.addToProject(X.node_id);if(e){console.log((0,d.green)(`✅ Issue added to GitHub Project.`));if(Object.keys(m).length>0){console.log(`Setting custom fields...`);await H.updateProjectItemFields(e,m);console.log((0,d.green)(`✅ Custom fields updated successfully.`))}}}catch(e){console.log((0,d.yellow)(`Warning: Could not add to project or update custom fields. ${e.message}`))}}}};t.reportCmd=reportCmd;const _={passed:"✅",failed:"❌",pending:"⏳",blocked:"⚠️",skipped:"⏭️",unexecuted:"❔"};function generateMarkdownReport(e,t,i="labels",a,o=[],d=[]){const m=[];if(e==="testcase-summary"){m.push("# Informe de Casos de Prueba");m.push("");m.push("| ID | Título | Etiquetas | Estado |");m.push("|---|---|---|---|");t.forEach((e=>{const t=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.id} | ${e.title} | ${e.labels.join(", ")} | ${t} ${e.status} |`)}))}else if(e==="testrun-summary"){m.push("# Test Run Summary");m.push("");const e=o.length;const i=o.filter((e=>e.attributes.state==="open")).length;const a=o.filter((e=>e.attributes.state==="closed")).length;const d=new Set(t.filter((e=>e.testRunId)).map((e=>e.id))).size;const h=new Set(t.filter((e=>e.testRunId)).map((e=>e.id.split("::")[0]))).size;const P=t.filter((e=>e.testRunId&&["failed","blocked"].includes(e.status.toLowerCase()))).length;const _={type:"doughnut",data:{labels:["Active","Closed"],datasets:[{data:[i,a],backgroundColor:["#f39c12","#3498db"]}]},options:{rotation:270,circumference:180,plugins:{doughnutlabel:{labels:[{text:e.toString(),font:{size:40}},{text:"Test Runs"}]},legend:{position:"right"}}}};const L=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(_))}`;const j=getStats(t.filter((e=>e.testRunId)));const U={type:"doughnut",data:{labels:["Passed","Failed","Blocked","Pending","Skipped"],datasets:[{data:[j.passed,j.failed,j.blocked,j.pending,j.skipped],backgroundColor:["#2ea043","#f85149","#58a6ff","#e3b341","#8b949e"]}]},options:{plugins:{doughnutlabel:{labels:[{text:d.toString(),font:{size:30}},{text:"Total Test Cases"}]},legend:{position:"right"}}}};const H=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(U))}`;const V={};for(const e of o){const t=(e.createdAt||e.lastApplied||(new Date).toISOString()).split("T")[0];V[t]=(V[t]||0)+1}const K=Object.keys(V).sort();const W=K.map((e=>V[e]));const J={type:"bar",data:{labels:K.length?K:["No Data"],datasets:[{label:"Test Runs",data:W.length?W:[0],backgroundColor:"#3498db"}]},options:{plugins:{legend:{display:false}},scales:{y:{beginAtZero:true,ticks:{stepSize:1}}}}};const X=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(J))}`;m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Total Test Runs</h3>");m.push(`<img src="${L}" />`);m.push('</td><td width="50%" valign="top">');m.push("<h3>Total Test Cases</h3>");m.push(`<h1>${d}</h1><br>`);m.push("<h3>Total Linked Requirements</h3>");m.push(`<h1>${h}</h1>`);m.push("</td></tr>");m.push("</table>");m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Test Case Break-up</h3>");m.push(`<img src="${H}" />`);m.push('</td><td width="50%">');m.push("<h3>Test Runs Break-up</h3>");m.push(`<img src="${X}" />`);m.push("</td></tr>");m.push("</table>");m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Defects Linked with Test Results</h3>");m.push(`<h1>${P}</h1>`);m.push('</td><td width="50%">');m.push("<h3>Requirements Linked with Test Runs</h3>");m.push(`<h1>${h}</h1>`);m.push("</td></tr>");m.push("</table>")}else if(e==="testrun-detailed"){m.push("# Test Run Detailed Report");m.push("");const e=o.length;const i=o.filter((e=>e.attributes.state==="open")).length;const d=o.filter((e=>e.attributes.state==="closed")).length;const h=new Set(t.filter((e=>e.testRunId)).map((e=>e.id))).size;const P=new Set(t.filter((e=>e.testRunId)).map((e=>e.id.split("::")[0]))).size;const L={};for(const e of t.filter((e=>e.testRunId))){L[e.testRunId]=(L[e.testRunId]||0)+1}const j=Object.keys(L).sort();const U=j.map((e=>L[e]));const H={type:"line",data:{labels:j.length?j:["No Data"],datasets:[{label:"Test Cases",data:U.length?U:[0],borderColor:"#3498db",fill:false}]},options:{plugins:{legend:{display:false}}}};const V=`https://quickchart.io/chart?w=500&h=200&c=${encodeURIComponent(JSON.stringify(H))}`;m.push('<table width="100%">');m.push('<tr><td width="60%">');m.push("<h3>Test run performance</h3>");m.push(`<h1>${h}</h1> <small>Test Cases trend over Specific Test Runs</small><br/>`);m.push(`<img src="${V}" />`);m.push('</td><td width="40%" valign="top">');m.push('<table width="100%"><tr><td>');m.push("<h3>Active Test Runs</h3>");m.push(`<h2>${i} / ${e}</h2>`);m.push("</td><td>");m.push("<h3>Closed Test Runs</h3>");m.push(`<h2>${d} / ${e}</h2>`);m.push("</td></tr><tr><td>");m.push("<h3>Total Test Cases</h3>");m.push(`<h2>${h}</h2>`);m.push("</td><td>");m.push("<h3>Total Linked Issues</h3>");m.push(`<h2>${P}</h2>`);m.push("</td></tr></table>");m.push("</td></tr>");m.push("</table>");m.push("");m.push(`### ${h} Test cases included in this report`);m.push("");m.push("| TEST RUN | TEST CASE | TEST RUN LATEST STATUS | TEST CASE PRIORITY |");m.push("|---|---|---|---|");const K=a.getReportMapping("priority")||"attributes.custom_fields.priority";for(const e of t.filter((e=>e.testRunId))){let t=resolvePath(e.originalResource,K);if(t===undefined)t="Medium";const i=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.testRunId} | **${e.id}**<br/>${e.title} | ${i} ${e.status} | ${t} |`)}}else if(e==="testplan-summary"){m.push("# Test Plan Summary");m.push("");const e=new Set;for(const t of d){const i=t.attributes.testruns||[];for(const t of i){const i=o.find((e=>e.identity.endsWith(t)));if(i)e.add(i.identity)}}const i=t.filter((t=>t.testRunId&&e.has(t.testRunId)));const h=i.length;const P=getStats(i);const L={type:"doughnut",data:{labels:["Passed","Failed","Blocked","Pending","Skipped"],datasets:[{data:[P.passed,P.failed,P.blocked,P.pending,P.skipped],backgroundColor:["#2ea043","#f85149","#58a6ff","#e3b341","#8b949e"]}]},options:{plugins:{doughnutlabel:{labels:[{text:h.toString(),font:{size:30}},{text:"Total Test Cases"}]},legend:{position:"right"}}}};const j=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(L))}`;const U={};for(const e of i){if(!U[e.testRunId])U[e.testRunId]={passed:0,failed:0};if(e.status.toLowerCase()==="passed")U[e.testRunId].passed++;if(e.status.toLowerCase()==="failed")U[e.testRunId].failed++}const H=Object.keys(U).sort();const V=H.map((e=>U[e].passed));const K=H.map((e=>U[e].failed));const W={type:"bar",data:{labels:H.length?H:["No Data"],datasets:[{label:"Passed",data:V.length?V:[0],backgroundColor:"#2ea043"},{label:"Failed",data:K.length?K:[0],backgroundColor:"#f85149"}]},options:{scales:{x:{stacked:true},y:{stacked:true,beginAtZero:true}}}};const J=`https://quickchart.io/chart?w=400&h=200&c=${encodeURIComponent(JSON.stringify(W))}`;m.push('<table width="100%">');m.push('<tr><td width="50%">');m.push("<h3>Overall Test Plan Progress</h3>");m.push(`<img src="${j}" />`);m.push('</td><td width="50%">');m.push("<h3>Results from All Linked Test Runs</h3>");m.push(`<img src="${J}" />`);m.push("</td></tr>");m.push("</table>");m.push("");m.push(`### ${e.size} test runs linked to these test plans`);m.push("");m.push("| RUNS | TESTS | TESTS STATUS |");m.push("|---|---|---|");for(const t of Array.from(e)){const e=i.filter((e=>e.testRunId===t));const a=getStats(e);m.push(`| **${t}** | ${e.length} | 🟢 ${a.passed} 🔴 ${a.failed} ⏳ ${a.pending} |`)}m.push("");m.push("<details><summary><b>Linked Test Cases</b></summary>");m.push("");m.push("| TEST RUN | ID | TITLE | PRIORITY | TYPE OF TEST | STATUS |");m.push("|---|---|---|---|---|---|");const X=a.getReportMapping("priority")||"attributes.custom_fields.priority";const Y=a.getReportMapping("type")||"attributes.custom_fields.type";for(const e of i){let t=resolvePath(e.originalResource,X)||"--";let i=resolvePath(e.originalResource,Y)||"--";const a=_[e.status.toLowerCase()]||_.unexecuted;m.push(`| ${e.testRunId} | ${e.id} | ${e.title} | ${t} | ${i} | ${a} ${e.status} |`)}m.push("");m.push("</details>")}else if(e==="defects"){m.push("# Informe de Defectos");m.push("");const e=t.filter((e=>["failed","blocked"].includes(e.status.toLowerCase())));if(e.length===0){m.push("🎉 No hay defectos reportados.")}else{m.push("| Run | Test Case | Título | Issue |");m.push("|---|---|---|---|");e.forEach((e=>{m.push(`| ${e.testRunId} | ${e.id} | ${e.title} | [#${e.issueNumber}](${e.issueUrl}) |`)}))}}else if(e==="traceability"){m.push("# Requirement Traceability Report");m.push("");let e={};if(i&&i!=="labels"){e=groupByField(t,i)}else{for(const i of t){const t=i.id.split("::")[0]||"Unknown";if(!e[t])e[t]=[];e[t].push(i)}}const a=Object.keys(e).length;m.push(`[]()`);m.push("");for(const[t,i]of Object.entries(e)){const e=getStats(i);const a=i.length;const o=a>0?Math.round(e.passed/a*100):0;let d="red";if(o===100)d="success";else if(o>50)d="yellow";m.push("<details>");m.push(`<summary><b>${t}</b> <img src="https://img.shields.io/badge/Coverage-${o}%25-${d}"></summary>`);m.push("<br>");m.push('<table width="100%">');m.push(" <tr><th>Test Case</th><th>Status</th><th>Assignee</th></tr>");i.forEach((e=>{const t=_[e.status.toLowerCase()]||_.unexecuted;const i=e.assignees[0]?`@${e.assignees[0]}`:"Unassigned";m.push(` <tr>`);m.push(` <td><code>${e.id}</code><br>${e.title}</td>`);m.push(` <td align="center">${t} ${e.status}</td>`);m.push(` <td align="center">${i}</td>`);m.push(` </tr>`)}));m.push("</table>");m.push("</details>");m.push("")}}else if(e==="coverage"){m.push("# Informe de Cobertura");m.push("");const e=groupByTags(t);m.push("| Etiqueta | Total | ✅ Passed | ❌ Failed | Cobertura % |");m.push("|---|---|---|---|---|");for(const[t,i]of Object.entries(e)){const e=getStats(i);const a=i.length;const o=a>0?Math.round(e.passed/a*100):0;m.push(`| ${t} | ${a} | ${e.passed} | ${e.failed} | ${o}% |`)}}else if(e==="two-dimensional"){m.push("# Informe Bidimensional");m.push("");const e=groupByTags(t);const i=["passed","failed","pending","blocked","skipped","unexecuted"];const a=["Etiqueta",...i.map((e=>`${_[e]} ${e}`))];m.push(`| ${a.join(" | ")} |`);m.push(`|${a.map((()=>"---")).join("|")}|`);for(const[t,a]of Object.entries(e)){const e=getStats(a);const o=[t];for(const t of i){o.push(String(e[t]||0))}m.push(`| ${o.join(" | ")} |`)}}else if(e==="test-case-activity"){m.push("# Test Case Activity");m.push("");const e=t.length;const i=t.filter((e=>e.updatedAt&&e.createdAt&&e.updatedAt!==e.createdAt)).length;const o=0;m.push(`[]() []() []()`);m.push("");const d=a.getReportMapping("automation")||"attributes.custom_fields.automate";let h=0,P=0,_=0,L=0;for(const e of t){const t=resolvePath(e.originalResource,d)||resolvePath(e.originalResource,"attributes.custom_fields.automation");const i=String(t||"").toLowerCase();if(i==="true"||i==="yes"||i==="automated"){P++}else if(i==="not required"){h++}else if(i==="cannot be automated"){L++}else{_++}}const j={type:"doughnut",data:{labels:["Not Required","Automated","Not Automated","Cannot Be"],datasets:[{data:[h,P,_,L],backgroundColor:["#2ea043","#1f6feb","#d29922","#f85149"],borderWidth:0}]},options:{plugins:{datalabels:{display:false},legend:{labels:{fontSize:14}}}}};const U=`https://quickchart.io/chart?c=${encodeURIComponent(JSON.stringify(j))}&w=600&h=300`;const H={};for(const e of t){const t=e.createdAt?e.createdAt.split("T")[0]:(new Date).toISOString().split("T")[0];H[t]=(H[t]||0)+1}const V=Object.keys(H).sort();const K=V.map((e=>H[e]));let W="";if(V.length>0){const e={type:"bar",data:{labels:V,datasets:[{label:"Created",data:K,backgroundColor:"#8957e5",borderRadius:4}]},options:{plugins:{legend:{display:false}},scales:{xAxes:[{gridLines:{display:false}}],yAxes:[{ticks:{stepSize:1,beginAtZero:true},gridLines:{color:"#e1e4e8"}}]}}};W=`https://quickchart.io/chart?c=${encodeURIComponent(JSON.stringify(e))}&w=600&h=300`}m.push("### Automation Coverage");m.push(`<img src="${U}" width="100%">`);m.push("");if(W){m.push("### Trend of Test Cases");m.push(`<img src="${W}" width="100%">`);m.push("")}const J={};for(const e of t){const t=e.assignees[0]||"Unassigned";J[t]=(J[t]||0)+1}const X=Object.entries(J).sort(((e,t)=>t[1]-e[1])).slice(0,5);m.push("### 🏆 Top 5 Test Case Creators");m.push('<table width="100%">');m.push(' <tr><th width="10%">#</th><th width="70%">Assignee</th><th width="20%">Count</th></tr>');X.forEach((([e,t],i)=>{m.push(` <tr><td align="center">${i+1}</td><td><img src="https://github.com/${e}.png?size=24" width="24" style="border-radius:50%; vertical-align:middle;"> <b>@${e}</b></td><td align="center">${t}</td></tr>`)}));m.push("</table>");m.push("");const Y=a.getReportMapping("priority")||"attributes.custom_fields.priority";const Q=a.getReportMapping("type")||"attributes.custom_fields.type";const Z=a.getReportMapping("creator")||"attributes.assignees[0]";m.push("### 📋 Test Cases included in this report");m.push('<table width="100%">');m.push(" <tr><th>ID</th><th>Title</th><th>Priority</th><th>Type</th><th>Updated</th><th>Assignee</th></tr>");const ee=[...t].sort(((e,t)=>t.updatedAt>e.updatedAt?1:-1)).slice(0,5);for(const e of ee){const t=resolvePath(e.originalResource,Y)||"Medium";const i=resolvePath(e.originalResource,Q)||"General";const a=resolvePath(e.originalResource,Z)||e.assignees[0]||"Unassigned";const o=e.updatedAt?e.updatedAt.replace("T"," ").replace("Z",""):"N/A";m.push(` <tr>`);m.push(` <td><code>${e.id}</code></td>`);m.push(` <td>${e.title}</td>`);m.push(` <td align="center">${t}</td>`);m.push(` <td align="center">${i}</td>`);m.push(` <td align="center">${o.split(" ")[0]}</td>`);m.push(` <td align="center">@${a}</td>`);m.push(` </tr>`)}m.push("</table>")}else if(e==="raw"){m.push("# Raw Data Export");m.push("> Note: Use --format json or --format csv for structured data.")}else{m.push(`Unknown report type: ${e}`)}return m.join("\n")}function groupByField(e,t){const i={};for(const a of e){let e="";if(t in a){e=String(a[t]||"")}else{e=String(resolvePath(a.originalResource,t)||"")}if(!i[e])i[e]=[];i[e].push(a)}return i}function groupByTags(e){const t={};for(const i of e){for(const e of i.labels){if(!t[e])t[e]=[];t[e].push(i)}if(i.labels.length===0){if(!t["untagged"])t["untagged"]=[];t["untagged"].push(i)}}return t}function getStats(e){const t={passed:0,failed:0,pending:0,blocked:0,skipped:0,unexecuted:0};for(const i of e){const e=i.status.toLowerCase();if(t[e]!==undefined){t[e]++}else{t[e]=1}}return t}},45765:function(e,t,i){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.showCmd=void 0;const o=i(80465);const d=i(7066);const m=i(86999);const h=i(2560);const P=a(i(16928));const showCmd=async(e={})=>{const{path:t,isJson:i=false,verbose:a=false,dir:_=".",statePath:L,backupPath:j}=e;const U=new m.Logger(a);let H=t;if(t==="state")H=undefined;if(t==="plan"){U.info(`Use "${h.TITLE_CLI} plan" to generate and view an execution plan.`);return}const V=new d.State(_,H||L,j);await V.init();const K=V.getState();const W=K.resources;if(i){console.log(JSON.stringify(K,null,2));return}console.log("");console.log((0,o.bold)(`# ${h.TITLE_APP} State`));console.log(` Version: ${K.version}`);console.log(` Serial: ${K.serial}`);console.log(` Lineage: ${K.lineage}`);console.log(` Last Sync: ${K.lastSync||"(never)"}`);console.log(` Resources: ${W.length}`);console.log("");if(W.length>0){for(const e of W){const t=e.attributes.remoteId??"(unknown)";const i=e.attributes.issueNumber?(0,o.green)("synced"):(0,o.yellow)("pending");let a=e.identity;if(a.includes("::")){const e=a.split("::");const t=P.default.basename(e[0],".feature");a=`${t}::${e.slice(1).join("::")}`}else{a=P.default.basename(a,".feature")}console.log(` ${(0,o.cyan)(e.type)}.${(0,o.bold)(a)} [id=${t}] ${i}`);console.log(` title: ${e.attributes.title}`);console.log(` issueNumber: ${e.attributes.issueNumber??"(none)"}`);console.log(` localHash: ${(0,o.dim)(e.attributes.localHash.substring(0,12))}...`);console.log(` lastApplied: ${e.lastApplied}`);console.log("")}}};t.showCmd=showCmd},61047:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stateCmd=void 0;const a=i(80465);const o=i(79896);const d=i(16928);const m=i(7066);const h=i(2560);const P=i(62978);const _=`No state file was found!\n\nState management commands require a state file. Run this command\nin a directory where ${h.TITLE_CLI} has been run or use the -state flag\nto point the command to a specific state location.`;const stateCmd=async e=>{const{dir:t=".",action:i,args:L,statePath:j,backupPath:U,isJson:H,id:V,dryRun:K,force:W}=e;const J=new m.State(t,j,U);if(i!=="push"&&!await J.hasState()){console.error((0,a.red)(_));process.exit(1)}await J.init();if(i==="pull"){const e=J.getState();console.log(JSON.stringify(e,null,2));return}if(i==="push"){if(L.length!==1){console.error((0,a.red)(`Usage: ${h.TITLE_CLI} state push [path]`));process.exit(1)}const e=(0,d.resolve)(process.cwd(),L[0]);if(!(0,o.existsSync)(e)){console.error((0,a.red)(`Error: File ${e} not found.`));process.exit(1)}try{const t=(0,o.readFileSync)(e,"utf-8");const i=JSON.parse(t);await J.acquireLock(true,"0s");const d=J.getState();if(!W&&d.lineage&&i.lineage&&d.lineage!==i.lineage){console.error((0,a.red)(`Error: Cannot push state with different lineage. Use -force to override.`));process.exit(1)}const m=d;m.resources=i.resources||[];m.serial+=1;await J.save();await J.releaseLock();console.log((0,a.green)(`Successfully pushed state from ${L[0]}`));return}catch(e){console.error((0,a.red)(`Error parsing or pushing state: ${e.message}`));process.exit(1)}}await J.acquireLock(true,"0s");try{const e=J.getResources();const filterResources=e=>{let t=e;if(V){t=t.filter((e=>e.attributes.issueNumber?.toString()===V||e.attributes.remoteId===V))}if(L.length>0){t=t.filter((e=>{const t=`${e.type}.${e.identity}`;return L.some((i=>t.startsWith(i)||e.identity.startsWith(i)))}))}return t};if(i==="list"){const t=filterResources(e);if(t.length===0&&L.length>0){console.error((0,a.red)(`No instance found for the given address!`));process.exit(1)}else if(t.length===0){console.log("No resources found in state.")}else{for(const e of t){const t=e.tainted?"[tainted] ":"";console.log(`${t}${e.type}.${e.identity}`)}}}else if(i==="identities"){if(!H){console.error((0,a.red)(`The \`${h.TITLE_CLI} state identities\` command requires the \`-json\` flag.`));process.exit(1)}const t=filterResources(e);const i=t.map((e=>e.identity));console.log(JSON.stringify(i,null,2))}else if(i==="show"){if(L.length!==1){console.error((0,a.red)(`Exactly one argument expected.\nUsage: ${h.TITLE_CLI} [global options] state show [options] ADDRESS`));process.exit(1)}const t=L[0];const i=t.includes(".")?t.split(".").slice(1).join("."):t;const o=e.find((e=>e.identity===i||`${e.type}.${e.identity}`===i));if(!o){console.error((0,a.red)(`No instance found for the given address!`));process.exit(1)}console.log((0,a.bold)(`# ${o.type}.${o.identity}:`));console.log(`resource "${o.type}" "${o.identity}" {`);const d=Object.keys(o.attributes);let m=0;for(const e of d){if(e.length>m)m=e.length}for(const e of d){const t=" ".repeat(m-e.length);const i=Object.prototype.hasOwnProperty.call(o.attributes,e)?o.attributes[e]:undefined;console.log(` ${e}${t} = ${(0,P.formatHclValue)(i,1)}`)}console.log(`}`);if(o.tainted){console.log((0,a.red)(`\nThis resource is marked as tainted.`))}}else if(i==="rm"){if(L.length===0){console.error((0,a.red)(`At least one address is required.\n\nUsage: ${h.TITLE_CLI} [global options] state rm [options] ADDRESS...`));process.exit(1)}let t=0;for(const i of L){const o=i.includes(".")?i.split(".").slice(1).join("."):i;if(e.find((e=>e.identity===o||`${e.type}.${e.identity}`===o))){if(K){console.log(`Would remove ${i}`)}else{J.removeResource(o);console.log(`Removed ${i}`)}t++}else{console.error((0,a.red)(`Error: Resource ${i} not found in state.`))}}if(t>0&&!K){await J.save();console.log((0,a.green)(`\nSuccessfully removed ${t} resource instance(s).`))}}else if(i==="mv"){if(L.length!==2){console.error((0,a.red)(`Exactly two arguments expected.\n\nUsage: ${h.TITLE_CLI} [global options] state mv [options] SOURCE DESTINATION`));process.exit(1)}const t=L[0];const i=L[1];const o=t.includes(".")?t.split(".").slice(1).join("."):t;const d=i.includes(".")?i.split(".").slice(1).join("."):i;const m=e.find((e=>e.identity===o||`${e.type}.${e.identity}`===o));if(!m){console.error((0,a.red)(`Error: Source resource ${t} not found in state.`));process.exit(1)}if(K){console.log(`Would move ${t} to ${i}`)}else{J.removeResource(m.identity);m.identity=d;if(i.includes(".")){m.type=i.split(".")[0]}J.upsertResource(m);await J.save();console.log((0,a.green)(`Move ${t} to ${i} successfully executed!`))}}else{console.error((0,a.red)(`Usage: ${h.TITLE_CLI} state <identities|list|mv|pull|push|rm|show> [options] [args]`));process.exit(1)}}finally{await J.releaseLock()}};t.stateCmd=stateCmd},1510:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taintCmd=void 0;const a=i(80465);const o=i(7066);const taintCmd=async e=>{const{dir:t=".",action:i,identityRaw:d,statePath:m,backupPath:h,allowMissing:P=false,lock:_=true,lockTimeout:L="0s"}=e;const j=new o.State(t,m,h);await j.init();await j.acquireLock(_,L);try{let e=null;for(const t of["github_testcase","github_testrun","github_testplan"]){const i=d.replace(new RegExp(`^${t}\\.`),"");e=j.getResources(t).find((e=>e.identity===i));if(e)break}if(!e){if(P){console.log((0,a.green)(`Resource not found in state, but allow-missing is set. Exiting successfully.`));process.exit(0)}console.error((0,a.red)(`Error: Resource not found in state.`));process.exit(1)}if(i==="taint"){if(e.tainted){console.log(`Resource instance ${d} is already tainted`)}else{e.tainted=true;j.upsertResource(e);await j.save();console.log((0,a.green)(`Resource instance ${d} has been marked as tainted.`))}}else{if(!e.tainted){console.log(`Resource instance ${d} is not tainted`)}else{delete e.tainted;j.upsertResource(e);await j.save();console.log((0,a.green)(`Resource instance ${d} has been successfully untainted.`))}}}finally{await j.releaseLock()}};t.taintCmd=taintCmd},30010:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCmd=void 0;const a=i(79896);const o=i(16928);const d=i(84489);const m=i(45392);const h=i(32721);const P=i(86999);const validateCmd=async e=>{const{targetPath:t=".",verbose:i=false,scope:_,variables:L,isJson:j=false,testDirectory:U,noTests:H=false,query:V}=e;const K=new P.Logger(i);if(j){}else{K.info("Validating configuration...",{bold:true})}let W=t;let J=U?(0,o.join)(t,U):t;try{if((0,a.statSync)(J).isFile()){W=(0,o.dirname)(J)}}catch(e){}const X=new m.Parser(J,L);const Y=X.content();if(Y.length===0){if(j){console.log(JSON.stringify({valid:false,error_count:1,warning_count:0,diagnostics:[{severity:"error",summary:"Failed to read module directory",detail:`Module directory ${t} does not exist or cannot be read.`}]},null,2))}else{K.error(`Failed to read module directory\n\nModule directory ${J} does not exist or cannot be read.`)}return}const Q=new d.Config(W);K.debug(`Configuration loaded: v${Q.getConfig().version}`);K.debug(`Found ${Y.length} scenarios across feature files`);const Z={testcase:{tag:"@testcase",ext:".case.feature"},testrun:{tag:"@testrun",ext:".run.feature"},testplan:{tag:"@testplan",ext:".plan.feature"}};const matchesScope=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(Z,t))return false;const i=Z[t];return e.feature?.tags?.includes(i.tag)||e.uri.endsWith(i.ext)};const ee=Y.filter((e=>matchesScope(e,_)));if(ee.length===0){if(!j)K.warn(`No scenarios found for scope "${_}".`);return}if(!j)K.debug(`Found ${ee.length} scenarios matching scope "${_}"`);const te={identity:Q.getIdentity(_),fields:Q.getFields(_)};let ne=X.filter(ee,te,_);if(V){const e=V.toLowerCase();ne=ne.filter((t=>t.name&&t.name.toLowerCase().includes(e)||t.custom?.identity&&t.custom.identity.toLowerCase().includes(e)||t.tags&&t.tags.some((t=>t.toLowerCase().includes(e)))||t.uri&&t.uri.toLowerCase().includes(e)));if(!j){K.info(`--- Query Results for "${V}" ---`,{bold:true});if(ne.length===0){K.info(`No scenarios matched the query.`)}else{ne.forEach((e=>{K.info(`- [${_}] ${e.custom?.identity||e.name} (File: ${e.uri}:${e.location})`)}))}K.blank()}}if(!H){const e=h.policy.scanner(ne,_,j);if(e){const e=new Error("Please fix them before continuing.");e.name="Policy violations found";throw e}}else if(!j){K.info(`Skipping policy validation (-no-tests).`)}if(j){console.log(JSON.stringify({valid:true,error_count:0,warning_count:0,diagnostics:[]},null,2))}else{K.success("Success! The configuration is valid.",{bold:true});K.blank();K.info(` Scenarios: ${ne.length}`);K.info(` Scope: ${_}`)}};t.validateCmd=validateCmd},62743:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.workspaceCmd=void 0;const a=i(80465);const o=i(86999);const d=i(7066);const m=i(2560);const workspaceCmd=async e=>{const{dir:t,verbose:i,args:h}=e;const P=new o.Logger(i);const _=new d.State(t);const L=h[0];const j=h[1];if(!L){P.error(`Usage: ${m.TITLE_CLI} workspace [subcommand] [options] [args]`);process.exit(1)}await _.init();const U=_.getCurrentWorkspace();switch(L){case"show":console.log(U);break;case"list":const e=await _.listWorkspaces();for(const t of e){if(t===U){console.log((0,a.green)(`* ${t}`))}else{console.log(` ${t}`)}}break;case"new":if(!j){P.error("Expected a workspace name");process.exit(1)}const i=await _.listWorkspaces();if(i.includes(j)){P.error(`Workspace "${j}" already exists`);process.exit(1)}_.setCurrentWorkspace(j);const o=new d.State(t);await o.init();o.clearResources();await o.save();console.log((0,a.green)(`Created and switched to workspace "${j}"!`));console.log("");console.log(`You're now on a new, empty workspace. Workspaces isolate their state,`);console.log(`so if you run "${m.TITLE_CLI} plan" ${m.TITLE_CLI} will not see any existing state`);console.log(`for this configuration.`);break;case"select":if(!j){P.error("Expected a workspace name");process.exit(1)}const h=await _.listWorkspaces();if(!h.includes(j)){P.error(`Workspace "${j}" doesn't exist.\n\nYou can create this workspace with the "new" subcommand.`);process.exit(1)}_.setCurrentWorkspace(j);console.log((0,a.green)(`Switched to workspace "${j}".`));break;case"delete":if(!j){P.error("Expected a workspace name");process.exit(1)}if(j==="default"){P.error(`Workspace "default" cannot be deleted.`);process.exit(1)}if(j===U){P.error(`Workspace "${j}" is your active workspace.\n\nYou cannot delete the currently active workspace. Please switch\nto another workspace and try again.`);process.exit(1)}const H=await _.listWorkspaces();if(!H.includes(j)){P.error(`Workspace "${j}" doesn't exist.`);process.exit(1)}const V=await _.deleteWorkspace(j);if(V){console.log((0,a.green)(`Deleted workspace "${j}"!`))}else{P.error(`Failed to delete workspace "${j}".`);process.exit(1)}break;default:P.error(`Invalid workspace subcommand: ${L}`);process.exit(1)}};t.workspaceCmd=workspaceCmd},2560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MSG_APPROVE_ONLY_YES=t.MSG_ACQUIRING_LOCK=t.ERR_NO_INPUT_ALLOWED=t.ERR_GITHUB_CONFIG_NOT_FOUND=t.SCOPE_CONFIG=t.SCOPE_RESOURCE_MAP=t.FILE_STATE=t.FILE_CONFIG=t.VERSION_STATE=t.VERSION_CONFIG=t.VERSION_CLI=t.TITLE_CLI=t.TITLE_APP=void 0;t.TITLE_APP="Testform";t.TITLE_CLI="testform";t.VERSION_CLI="1.0.9";t.VERSION_CONFIG="1.0";t.VERSION_STATE="1.0";t.FILE_CONFIG="testform.json";t.FILE_STATE="testform.state";t.SCOPE_RESOURCE_MAP={testcase:"github_testcase",testrun:"github_testrun",testplan:"github_testplan",testreport:"github_testreport"};const i={testcase:"@testcase",testrun:"@testrun",testplan:"@testplan",testreport:"@testreport"};const a={testcase:".case.feature",testrun:".run.feature",testplan:".plan.feature",testreport:".report.feature"};t.SCOPE_CONFIG={testcase:{tag:i.testcase,ext:a.testcase,resource:t.SCOPE_RESOURCE_MAP.testcase},testrun:{tag:i.testrun,ext:a.testrun,resource:t.SCOPE_RESOURCE_MAP.testrun},testplan:{tag:i.testplan,ext:a.testplan,resource:t.SCOPE_RESOURCE_MAP.testplan}};const o=null&&["pending","passed","failed","blocked","skipped","undefined"];const d={pending:"⏳",passed:"✅",failed:"❌",blocked:"⚠️",skipped:"⏭️",undefined:"❓"};t.ERR_GITHUB_CONFIG_NOT_FOUND=`GitHub configuration not found. Add a "github" section to your ${t.FILE_CONFIG} with owner, repository, and tokenEnv.`;t.ERR_NO_INPUT_ALLOWED=`This command requires manual approval, but input is disabled. Use the -auto-approve flag to bypass approval.`;t.MSG_ACQUIRING_LOCK="Acquiring state lock. This may take a few moments...";t.MSG_APPROVE_ONLY_YES=`Only 'yes' will be accepted to approve.`},59491:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureRMBackend=void 0;const a=i(71400);const o=i(76982);const d=i(2560);class AzureRMBackend{config;workspace;containerClient;blobClient;currentLeaseId;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const i=e.connection_string||process.env.AZURE_STORAGE_CONNECTION_STRING;if(!i){const e=new Error("AZURE_STORAGE_CONNECTION_STRING env variable is missing");e.name="AzureRM Backend Configuration Error";throw e}const o=a.BlobServiceClient.fromConnectionString(i);this.containerClient=o.getContainerClient(e.container_name);this.config.key=this.config.key||d.FILE_STATE;this.originalKey=this.config.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}this.blobClient=this.containerClient.getBlockBlobClient(this.config.key)}async exists(){try{return await this.blobClient.exists()}catch(e){return false}}async read(){try{await this.containerClient.createIfNotExists();const e=await this.blobClient.exists();if(!e){return this.emptyState()}const t=await this.blobClient.download(0);const i=await this.streamToString(t.readableStreamBody);return JSON.parse(i)}catch(e){return this.emptyState()}}async write(e){await this.containerClient.createIfNotExists();const t=JSON.stringify(e,null,2);const i={blobHTTPHeaders:{blobContentType:"application/json"}};if(this.currentLeaseId){i.conditions={leaseId:this.currentLeaseId}}await this.blobClient.upload(t,t.length,i)}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const d=await this.blobClient.exists();if(!d){await this.write(this.emptyState())}const m=this.blobClient.getBlobLeaseClient();while(true){try{const e=await m.acquireLease(-1);this.currentLeaseId=e.leaseId;try{await this.blobClient.setMetadata({id:(0,o.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()},{conditions:{leaseId:this.currentLeaseId}})}catch(e){if(e.statusCode!==201){throw e}}return true}catch(e){if(e.statusCode===409||e.code==="LeaseAlreadyPresent"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.currentLeaseId)return true;try{const e=this.blobClient.getBlobLeaseClient(this.currentLeaseId);await e.releaseLease();this.currentLeaseId=undefined;return true}catch(e){return false}}async forceUnlock(e){try{const t=await this.blobClient.getProperties();const i=t.metadata?.id;if(t.leaseState==="available"){return{success:false,error:"No lock exists for the given state."}}if(i!==e){return{success:false,currentLockId:i||"unknown"}}const a=this.blobClient.getBlobLeaseClient();await a.breakLease(0);return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){try{const e=await this.blobClient.getProperties();return e.leaseState!=="available"}catch(e){return false}}emptyState(){return{version:d.VERSION_STATE,serial:0,lineage:(0,o.randomUUID)(),lastSync:"",resources:[]}}async streamToString(e){return new Promise(((t,i)=>{const a=[];e.on("data",(e=>{a.push(e.toString())}));e.on("end",(()=>{t(a.join(""))}));e.on("error",i)}))}async listWorkspaces(){const e=new Set(["default"]);try{for await(const t of this.containerClient.listBlobsFlat({prefix:"env:/"})){const i=t.name.match(/^env:\/([^\/]+)\//);if(i){e.add(i[1])}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const t=`env:/${e}/${this.originalKey}`;const i=this.containerClient.getBlockBlobClient(t);await i.deleteIfExists();return true}catch(e){return false}}}t.AzureRMBackend=AzureRMBackend},64558:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GCSBackend=void 0;const a=i(28525);const o=i(76982);const d=i(2560);class GCSBackend{config;workspace;storage;bucketClient;stateKey;lockKey;lockId;constructor(e,t="default"){this.config=e;this.workspace=t;const i={};if(e.credentials){i.keyFilename=e.credentials}this.storage=new a.Storage(i);this.bucketClient=this.storage.bucket(e.bucket);let o=this.config.prefix||"";if(o&&!o.endsWith("/")){o+="/"}const m=d.FILE_STATE;if(this.workspace!=="default"){this.stateKey=`${o}env:/${this.workspace}/${m}`}else{this.stateKey=`${o}${m}`}this.lockKey=`${this.stateKey}.tflock`}emptyState(){return{version:d.VERSION_STATE,serial:0,lineage:(0,o.randomUUID)(),lastSync:"",resources:[]}}async exists(){try{const[e]=await this.bucketClient.file(this.config.prefix).exists();return e}catch(e){return false}}async read(){try{const e=this.bucketClient.file(this.stateKey);const[t]=await e.exists();if(!t){return this.emptyState()}const[i]=await e.download();return JSON.parse(i.toString("utf8"))}catch(e){return this.emptyState()}}async write(e){const t=this.bucketClient.file(this.stateKey);const i=JSON.stringify(e,null,2);await t.save(i,{contentType:"application/json"})}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const d=this.bucketClient.file(this.lockKey);const m=JSON.stringify({id:(0,o.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()});while(true){try{await d.save(m,{preconditionOpts:{ifGenerationMatch:0}});this.lockId=m;return true}catch(e){if(e.code===412||e.code==="412"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.lockId)return true;const e=this.bucketClient.file(this.lockKey);try{const[t]=await e.exists();if(t){await e.delete()}this.lockId=undefined;return true}catch(e){return false}}async forceUnlock(e){const t=this.bucketClient.file(this.lockKey);try{const[i]=await t.exists();if(!i){return{success:false,error:"No lock exists for the given state."}}const[a]=await t.download();const o=JSON.parse(a.toString("utf8"));if(o.id!==e){return{success:false,currentLockId:o.id}}await t.delete();this.lockId=undefined;return{success:true}}catch(e){return{success:false,error:e.message}}}async isLocked(){const e=this.bucketClient.file(this.lockKey);try{const[t]=await e.exists();return t}catch(e){return false}}async listWorkspaces(){const e=new Set(["default"]);try{let t=this.config.prefix||"";if(t&&!t.endsWith("/")){t+="/"}const i=`${t}env:/`;const[a]=await this.bucketClient.getFiles({prefix:i});for(const t of a){const a=t.name.substring(i.length);const o=a.match(/^([^\/]+)\//);if(o){e.add(o[1])}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{let t=this.config.prefix||"";if(t&&!t.endsWith("/")){t+="/"}const i=`${t}env:/${e}/${d.FILE_STATE}`;const a=this.bucketClient.file(i);const[o]=await a.exists();if(o){await a.delete();return true}return false}catch(e){return false}}}t.GCSBackend=GCSBackend},27814:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LocalBackend=void 0;const a=i(16928);const o=i(79896);const d=i(76982);const m=i(2560);class LocalBackend{dir;customStatePath;customBackupPath;workspace;constructor(e,t,i,a="default"){this.dir=e;this.customStatePath=t;this.customBackupPath=i;this.workspace=a}getWorkspaceStatePath(){if(this.customStatePath){return(0,a.resolve)(this.dir,this.customStatePath)}if(this.workspace!=="default"){return(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`,this.workspace,m.FILE_STATE)}return(0,a.resolve)(this.dir,m.FILE_STATE)}resolvePath(){const e=this.getWorkspaceStatePath();if((0,o.existsSync)(e))return e;if(this.workspace==="default"){const e=(0,a.resolve)(this.dir,m.FILE_STATE);if((0,o.existsSync)(e))return e}return null}lockPath(){const e=this.resolvePath()??this.getWorkspaceStatePath();return`${e}.lock`}async exists(){return this.resolvePath()!==null}async read(){const e=this.resolvePath();if(!e||!(0,o.existsSync)(e)){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}const t=await o.promises.readFile(e,"utf-8");return JSON.parse(t)}async write(e){const t=this.resolvePath()??this.getWorkspaceStatePath();const i=(0,a.resolve)(t,"..");if(!(0,o.existsSync)(i)){await o.promises.mkdir(i,{recursive:true})}const d=this.customBackupPath?(0,a.resolve)(this.dir,this.customBackupPath):`${t}.backup`;if((0,o.existsSync)(t)){await o.promises.copyFile(t,d)}await o.promises.writeFile(t,JSON.stringify(e,null,2),"utf-8")}async lock(e){const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=this.lockPath();const m=Date.now();while(true){try{await o.promises.writeFile(a,JSON.stringify({id:(0,d.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()},null,2),{flag:"wx"});return true}catch(e){if(e.code==="EEXIST"){if(Date.now()-m>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){const e=this.lockPath();if((0,o.existsSync)(e)){try{await o.promises.unlink(e);return true}catch(e){return false}}return true}async forceUnlock(e){const t=this.lockPath();if(!(0,o.existsSync)(t)){return{success:false,error:`No lock exists for the given state. (Path checked: ${t})`}}try{const i=await o.promises.readFile(t,"utf-8");const a=JSON.parse(i);if(a.id!==e){return{success:false,currentLockId:a.id}}await o.promises.unlink(t);return{success:true}}catch(e){return{success:false,error:`The lock file could not be read or parsed.`}}}async isLocked(){return(0,o.existsSync)(this.lockPath())}async listWorkspaces(){const e=["default"];const t=(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`);if((0,o.existsSync)(t)){const i=await o.promises.readdir(t,{withFileTypes:true});for(const t of i){if(t.isDirectory()){e.push(t.name)}}}return e}async deleteWorkspace(e){if(e==="default")return false;const t=(0,a.resolve)(this.dir,`${m.FILE_STATE}.d`,e);if((0,o.existsSync)(t)){await o.promises.rm(t,{recursive:true,force:true});return true}return false}}t.LocalBackend=LocalBackend},19979:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.S3Backend=void 0;const a=i(53711);const o=i(64305);const d=i(76982);const m=i(2560);class S3Backend{config;workspace;s3;dynamo;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const i={region:e.region||process.env.AWS_REGION||"us-east-1"};if(e.profile==="local"){i.endpoint=e.region&&e.region.startsWith("http")?e.region:"http://localhost:4566";i.region=process.env.AWS_REGION||"us-east-1";i.forcePathStyle=true;i.credentials={accessKeyId:"test",secretAccessKey:"test"}}this.s3=new a.S3Client(i);if(e.dynamodb_table){this.dynamo=new o.DynamoDBClient(i)}this.config.key=this.config.key||m.FILE_STATE;this.originalKey=this.config.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}}async exists(){try{await this.s3.send(new a.HeadObjectCommand({Bucket:this.config.bucket,Key:this.config.key}));return true}catch(e){return false}}async read(){try{const e=new a.GetObjectCommand({Bucket:this.config.bucket,Key:this.config.key});const t=await this.s3.send(e);const i=await(t.Body?.transformToString());if(!i){return this.emptyState()}return JSON.parse(i)}catch(e){if(e instanceof a.NoSuchKey||e.name==="NoSuchKey"||e.Code==="NoSuchKey"){return this.emptyState()}throw e}}async write(e){const t=new a.PutObjectCommand({Bucket:this.config.bucket,Key:this.config.key,Body:JSON.stringify(e,null,2),ContentType:"application/json"});await this.s3.send(t)}async lock(e){if(!this.dynamo||!this.config.dynamodb_table){return true}const t=e.match(/^(\d+)s$/);const i=t?parseInt(t[1],10)*1e3:0;const a=Date.now();const m=(0,d.randomUUID)();const h={LockID:{S:this.config.bucket+"/"+this.config.key},Info:{S:JSON.stringify({id:m,operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()})}};while(true){try{await this.dynamo.send(new o.PutItemCommand({TableName:this.config.dynamodb_table,Item:h,ConditionExpression:"attribute_not_exists(LockID)"}));return true}catch(e){if(e instanceof o.ConditionalCheckFailedException||e.name==="ConditionalCheckFailedException"){if(Date.now()-a>=i){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.dynamo||!this.config.dynamodb_table)return true;try{await this.dynamo.send(new o.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return true}catch(e){return false}}async forceUnlock(e){if(!this.dynamo||!this.config.dynamodb_table){return{success:false,error:"DynamoDB locking is not configured for this backend."}}try{const t=await this.dynamo.send(new o.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));if(!t.Item||!t.Item.Info){return{success:false,error:"No lock exists for the given state."}}const i=JSON.parse(t.Item.Info.S);if(i.id!==e){return{success:false,currentLockId:i.id}}await this.dynamo.send(new o.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){if(!this.dynamo||!this.config.dynamodb_table)return false;try{const e=await this.dynamo.send(new o.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return!!e.Item}catch(e){return false}}emptyState(){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}async listWorkspaces(){const e=new Set(["default"]);try{const{ListObjectsV2Command:t}=await Promise.resolve().then(i.t.bind(i,53711,23));const a=new t({Bucket:this.config.bucket,Prefix:"env:/"});const o=await this.s3.send(a);if(o.Contents){for(const t of o.Contents){if(t.Key){const i=t.Key.match(/^env:\/([^\/]+)\//);if(i){e.add(i[1])}}}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const{DeleteObjectCommand:t}=await Promise.resolve().then(i.t.bind(i,53711,23));const a=`env:/${e}/${this.originalKey}`;const o=new t({Bucket:this.config.bucket,Key:a});await this.s3.send(o);return true}catch(e){return false}}}t.S3Backend=S3Backend},54472:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCommandContext=createCommandContext;const a=i(92401);const o=i(84489);const d=i(7066);const m=i(86999);const h=i(1622);const P=i(2560);async function createCommandContext(e={}){const{dir:t=".",verbose:i=false,statePath:_,backupPath:L,lock:j=true,lockTimeout:U="0s",silent:H=false}=e;const V=new m.Logger(i);const K=new o.Config(t);const W=K.getGitHub();if(!W){if(!H){h.notify.push({type:"error",title:"GitHub configuration not found",detail:[P.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return null}const J=new d.State(t,_,L);await J.init();await J.acquireLock(j,U);const X=new a.GitHubAdapter(W);return{state:J,github:X,config:K,logger:V}}},84489:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Config=void 0;const a=i(79896);const o=i(16928);const d=i(2560);const m=i(1622);class Config{dir;config={};constructor(e){this.dir=e;this.required()}resolve(){let e=(0,o.resolve)(this.dir);const t=(0,o.resolve)("/");while(e!==t){const t=(0,o.resolve)(e,d.FILE_CONFIG);if((0,a.existsSync)(t)){return t}const i=(0,o.resolve)(e,"..");if(i===e)break;e=i}const i=(0,o.resolve)(process.cwd(),d.FILE_CONFIG);return(0,a.existsSync)(i)?i:null}load(e){const t=(0,a.readFileSync)(e,"utf-8");this.config=JSON.parse(t);return this.config}getConfig(){return this.config}getGitHub(){const e=this.config.github;if(!e)return undefined;return{owner:e.owner,repository:e.repository,projectId:e.projectId||e.project_id,tokenEnv:e.tokenEnv||e.token_env||"GITHUB_TOKEN"}}getBackend(){return this.config.backend}getIdentity(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;const i=t?.identity;if(e=="testcase")return i??"tc-*";if(e=="testrun")return i??"tr-*";if(e=="testplan")return i??"tp-*"}getConvention(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,"global")?this.config.scope["global"]:undefined;const i=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;if(!t?.convention&&!i?.convention)return undefined;return{...t?.convention||{},...i?.convention||{}}}getReportMapping(e){return this.config.report_mapping?this.config.report_mapping[e]:undefined}getFields(e){const t=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,"global")?this.config.scope["global"]:undefined;const i=t?.fields??[];const a=this.config.scope&&Object.prototype.hasOwnProperty.call(this.config.scope,e)?this.config.scope[e]:undefined;const o=a?.fields??[];const d=new Map;for(const e of i){if(e.name)d.set(e.name.toLowerCase(),e)}for(const e of o){if(e.name)d.set(e.name.toLowerCase(),e)}return Array.from(d.values())}required(){const e=this.resolve();if(!e){m.notify.push({type:"error",title:"No configuration files",detail:["Plan requires configuration to be present. Planning without a configuration would mark everything for","destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the",`-destroy option. Otherwise, create a ${d.TITLE_APP} configuration file (.json file) and try again.`],close:true})}const t=this.load(e);const i=t.version??"";if(i==null){m.notify.push({type:"error",title:`${d.FILE_CONFIG} is missing the "version" field`,detail:[`Add a "version" field to your ${d.FILE_CONFIG} file and rerun init.`],close:true})}if(i!==d.VERSION_CONFIG){m.notify.push({type:"error",title:`configuration version mismatch`,detail:[`Found version "${this.config.version}", but expected "${d.VERSION_CONFIG}".`,`Update ${d.FILE_CONFIG} to version ${d.VERSION_CONFIG} and rerun init.`],close:true})}}}t.Config=Config},72633:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credentials=void 0;const a=i(79896);const o=i(16928);const d=i(70857);class Credentials{credsPath;constructor(){const e=(0,d.homedir)();const t=(0,o.join)(e,".testform.d");if(!(0,a.existsSync)(t)){(0,a.mkdirSync)(t,{recursive:true})}this.credsPath=(0,o.join)(t,"credentials.json")}load(){if(!(0,a.existsSync)(this.credsPath)){return{credentials:{}}}try{const e=(0,a.readFileSync)(this.credsPath,"utf8");return JSON.parse(e)}catch{return{credentials:{}}}}save(e){(0,a.writeFileSync)(this.credsPath,JSON.stringify(e,null,2),"utf8")}getToken(e="github.com"){const t=this.load();return t.credentials?.[e]?.token}getAuth(e="github.com"){const t=this.load();return t.credentials?.[e]}setToken(e="github.com",t){this.setAuth(e,{token:t})}setAuth(e="github.com",t){const i=this.load();if(!i.credentials)i.credentials={};i.credentials[e]=t;this.save(i)}removeToken(e="github.com"){const t=this.load();if(t.credentials?.[e]){delete t.credentials[e];this.save(t);return true}return false}}t.Credentials=Credentials},51387:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GherkinEditor=void 0;const a=i(79896);class GherkinEditor{static updateScenarioStatus(e,t,i,o){let d=(0,a.readFileSync)(e,"utf-8");const m=d.split("\n");let h=false;let P=false;let _=-1;let L=-1;let j=m.length;const escapeRegex=e=>e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&");const U=escapeRegex(t);const H=escapeRegex(t.split("/").pop()||t);const V=new RegExp(`^\\s*Rule:\\s*(${U}|${H})(\\.feature)?\\s*$`,"i");const K=new RegExp(`^\\s*Scenario:\\s*${escapeRegex(i)}\\s*$`,"i");const W=/^\s*Rule:/i;const J=/^\s*\*\s*link\s+status\s*=\s*(.*)$/i;for(let e=0;e<m.length;e++){const t=m[e];if(!h){if(V.test(t)){h=true;L=e}}else{if(W.test(t)){j=e;break}}}if(!h){throw new Error(`Could not find Rule '${t}' in ${e}`)}let X=false;for(let e=L+1;e<j;e++){const t=m[e];if(!P){if(K.test(t)){P=true;_=e}}else{if(/^\s*(Scenario|Rule):/i.test(t)){break}if(J.test(t)){m[e]=t.replace(/(^\s*\*\s*link\s+status\s*=\s*).*/i,`$1${o}`);X=true;break}}}if(P&&!X){m.splice(_+1,0,` * link status = ${o}`)}else if(!P){let e=j;while(e>L+1&&m[e-1].trim()===""){e--}if(e>L+1&&m[e-1].trim()!==""){m.splice(e,0,"");e++}m.splice(e,0,` Scenario: ${i}`,` * link status = ${o}`)}(0,a.writeFileSync)(e,m.join("\n"),"utf-8")}static expandScenarios(e,t,i="pending"){let a=false;for(const e of t){const t=e.split("::");if(t.length>=2&&t[t.length-1]!=="*"){a=true;break}}if(a){this.removeWildcardScenario(e)}for(const o of t){const t=o.split("::");if(t.length<2)continue;const d=t.pop();const m=t.pop();if(a&&d==="*")continue;this.ensureScenarioExists(e,m,d,i)}}static removeWildcardScenario(e){let t=(0,a.readFileSync)(e,"utf-8");const i=t.split("\n");const o=[];let d=false;for(let e=0;e<i.length;e++){const t=i[e];if(/^\s*Scenario:\s*\*\s*$/i.test(t)){d=true;continue}if(d&&/^\s*(Scenario|Rule|Feature|Background):/i.test(t)){d=false}if(!d){o.push(t)}}while(o.length>0&&o[o.length-1].trim()===""){o.pop()}(0,a.writeFileSync)(e,o.join("\n"),"utf-8")}static ensureScenarioExists(e,t,i,o){let d=(0,a.readFileSync)(e,"utf-8");const m=d.split("\n");let h=false;let P=false;let _=-1;let L=m.length;const escapeRegex=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const j=escapeRegex(t);const U=escapeRegex(t.split("/").pop()||t);const H=new RegExp(`^\\s*Rule:\\s*(${j}|${U})(\\.feature)?\\s*$`,"i");const V=new RegExp(`^\\s*Scenario:\\s*${escapeRegex(i)}\\s*$`,"i");const K=/^\s*Rule:/i;for(let e=0;e<m.length;e++){const t=m[e];if(!h){if(H.test(t)){h=true;_=e}}else{if(K.test(t)){L=e;break}}}if(!h)return;for(let e=_+1;e<L;e++){const t=m[e];if(V.test(t)){return}}let W=L;while(W>_+1&&m[W-1].trim()===""){W--}if(W>_+1&&m[W-1].trim()!==""){m.splice(W,0,"");W++}m.splice(W,0,` Scenario: ${i}`,` * link status = ${o}`);(0,a.writeFileSync)(e,m.join("\n"),"utf-8")}}t.GherkinEditor=GherkinEditor},45392:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;const a=i(39711);const o=i(53772);const d=i(64777);const m=i(70313);class ReaderParser extends a.BaseParser{filter(e){return e}}class Parser{dir;variables;reader;constructor(e,t){this.dir=e;this.variables=t;this.reader=new ReaderParser(e,t)}content(){return this.reader.content()}filter(e,t,i){let a;switch(i){case"testcase":a=new o.TestcaseParser(this.dir,this.variables);break;case"testrun":a=new d.TestrunParser(this.dir,this.variables);break;case"testplan":a=new m.TestplanParser(this.dir,this.variables);break;default:a=new o.TestcaseParser(this.dir,this.variables)}return a.filter(e,t,i)}}t.Parser=Parser},39711:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseParser=t.FIELD_PATTERN=void 0;const a=i(40119);const o=i(28569);const d=i(79896);const m=i(16928);t.FIELD_PATTERN=/^(?:field)\s+([A-Za-z0-9_.\- ]+?)\s*=\s*(.+)$/i;class BaseParser{dir;variables;constructor(e,t){this.dir=e;this.variables=t}find(e){try{const t=(0,d.statSync)(e);if(t.isFile()&&e.endsWith(".feature")){return[e]}if(t.isDirectory()){const t=(0,d.readdirSync)(e,{withFileTypes:true});const i=[];for(const a of t){const t=(0,m.join)(e,a.name);if(a.isDirectory()){i.push(...this.find(t))}else if(a.name.endsWith(".feature")){i.push(t)}}return i}return[]}catch(e){return[]}}format(e){const t=e.feature;const i=e.uri??"(unknown)";const toStep=e=>({keyword:e.keyword,keywordType:e.keywordType,text:e.text});const toBackground=e=>({keyword:e.keyword,name:e.name,steps:(e.steps??[]).map(toStep)});const interpolate=(e,t,i)=>t.reduce(((e,t,a)=>e.split(`<${t}>`).join(i[a])),e);const processChildren=(e,a,o)=>{const d=[];const m=e[0]?.background?toBackground(e[0].background):a;for(const a of e){if(a.background)continue;if(a.scenario){const e=a.scenario;const h=(t?.tags??[]).map((e=>e.name));const P=[...h,...(e.tags??[]).map((e=>e.name))];const _=P.includes("@unique");const L=e.name.includes("<")||(e.steps??[]).some((e=>e.text.includes("<")))||P.some((e=>e.includes("<")));const j={tags:(t?.tags??[]).map((e=>e.name)),keyword:t?.keyword??"",name:t?.name??"",description:t?.description??"",location:t?.location.line??0};if(_&&L&&(e.examples??[]).length>0){for(const t of e.examples){const a=(t.tableHeader?.cells??[]).map((e=>e.value));for(const h of t.tableBody??[]){const t=(h.cells??[]).map((e=>e.value));d.push({uri:i,feature:j,location:e.location.line,keyword:e.keyword,name:interpolate(e.name,a,t),description:e.description,tags:P.map((e=>interpolate(e,a,t))),steps:(e.steps??[]).map((e=>({keyword:e.keyword,keywordType:e.keywordType,text:interpolate(e.text,a,t)}))),...m?{background:JSON.parse(JSON.stringify(m))}:{},...o?{rule:o}:{}})}}}else{d.push({uri:i,feature:j,location:e.location.line,keyword:e.keyword,name:e.name,description:e.description,tags:P,steps:(e.steps??[]).map(toStep),...m?{background:JSON.parse(JSON.stringify(m))}:{},...o?{rule:o}:{}})}}if("rule"in a&&a.rule){const e=a.rule;const o={keyword:e.keyword,name:e.name,description:e.description??""};const h=processChildren(e.children??[],m,o);if(h.length===0){const a=(e.children??[])[0]?.background;const h=a?toBackground(a):m;d.push({uri:i,feature:{keyword:t?.keyword??"",name:t?.name??"",description:t?.description??"",tags:(t?.tags??[]).map((e=>e.name)),location:t?.location?.line??0},location:e.location.line,keyword:e.keyword,name:"*",description:e.description,tags:[...(t?.tags??[]).map((e=>e.name))],steps:[],...h?{background:JSON.parse(JSON.stringify(h))}:{},rule:o})}else{d.push(...h)}}}return d};if(!t)return[];return processChildren(t.children??[])}content(){const e=this.find(this.dir);const t=[];for(const i of e){let e=(0,d.readFileSync)(i,"utf-8");if(this.variables){e=this.variables.applyToTemplate(e)}const h=new a.Parser(new a.AstBuilder(o.IdGenerator.uuid()),new a.GherkinClassicTokenMatcher);const P=h.parse(e);P.uri=(0,m.relative)(this.dir,i);t.push(...this.format(P))}return t}dslFields(e){const t=new Map;const i=new Map;for(const a of e){if(a.type==="keywords"){t.set(a.name.toLowerCase(),a)}if(a.type==="tags"){i.set(a.name.toLowerCase(),a)}}return{keywordFields:t,tagFields:i}}compileIdentityMatcher(e){if(!e)return null;const t=e.trim().replace(/^@/,"");if(t.includes("*")){const e=t.split("*");return{type:"wildcard",prefix:e[0],suffix:e[1]||""}}return{type:"exact",value:t}}matchIdentity(e,t){if(t.type==="wildcard"){for(const i of e){const e=i.replace(/^@/,"");if(e.startsWith(t.prefix)&&e.endsWith(t.suffix)){return{identityValue:i,tagToRemove:i}}}return{}}const i=e.find((e=>e.replace(/^@/,"")===t.value));if(i){return{identityValue:i,tagToRemove:i}}return{}}}t.BaseParser=BaseParser},53772:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestcaseParser=void 0;const a=i(39711);class TestcaseParser extends a.BaseParser{filter(e,t,i){const o=t.identity;const d=t.fields||[];const{keywordFields:m,tagFields:h}=this.dslFields(d);const P=this.compileIdentityMatcher(o);for(const t of e){const e={};if(i){const e=`@${i}`;if(!t.tags)t.tags=[];if(!t.tags.includes(e)){t.tags.push(e)}}const{identityValue:o,tagToRemove:_}=P?this.matchIdentity(t.tags,P):{};t.tags=t.tags.filter((e=>e!=="@unique"));if(_){t.tags=t.tags.filter((e=>e!==_))}if(t.description){const i=t.description.match(/^\s*\*\s*link\s+status\s*=\s*(.*)$/im);if(i){e["status"]=i[1]?.trim()}}if(t.background){t.background.steps=t.background.steps.filter((i=>{const o=i.text.match(/^\s*(?:\*\s*)?link\s+status\s*=\s*(.*)$/i);if(o){e["status"]=o[1]?.trim();return false}const d=i.text.match(a.FIELD_PATTERN);if(!d)return true;const h=d[1]?.trim().toLowerCase();const P=d[2]?.trim();if(!h||P===undefined)return true;const _=m.get(h);if(!_){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:h});return true}e[_.name]=P;return false}));t.steps=[...t.background.steps,...t.steps];t.background.steps=[]}t.steps=t.steps.filter((i=>{const o=i.text.match(/^\s*(?:\*\s*)?link\s+status\s*=\s*(.*)$/i);if(o){e["status"]=o[1]?.trim();return false}const d=i.text.match(a.FIELD_PATTERN);if(!d)return true;const h=d[1]?.trim().toLowerCase();const P=d[2]?.trim();if(!h||P===undefined)return true;const _=m.get(h);if(!_){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:h});return true}e[_.name]=P;return false}));const tagFilter=t=>{for(const i of h.values()){const a=Array.isArray(i.values)?i.values:typeof i.values==="string"?[i.values]:[];if(a.includes(t)){e[i.name]=t;return false}}return true};t.tags=t.tags.filter(tagFilter);if(t.feature&&t.feature.tags){t.feature.tags=t.feature.tags.filter(tagFilter)}for(const i of d){if(e[i.name]===undefined&&i.default!==undefined){const t=Array.isArray(i.default)?i.default[0]:i.default;if(t!==undefined){e[i.name]=t}}if(i.required&&!e[i.name]){(t.custom??={}).policy??=[];t.custom.policy.push({type:"required-field",field:i.name});e[i.name]=""}else if(e[i.name]===undefined){e[i.name]=""}}t.custom={...t.custom??{},identity:o,fields:e}}return e}}t.TestcaseParser=TestcaseParser},70313:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestplanParser=void 0;const a=i(53772);class TestplanParser extends a.TestcaseParser{filter(e,t,i){const a=super.filter(e,t,i);const o={};for(const e of a){(o[e.uri]??=[]).push(e)}return Object.entries(o).map((([e,t])=>{const i=t.some((e=>e.name&&e.name!=="*"));if(i){throw new Error(`Testplan validation failed: Testplans must not contain explicit Scenario blocks. Found in ${e}`)}const a=JSON.parse(JSON.stringify(t[0]));a.custom??={};const o=t.find((e=>e.custom&&e.custom.identity));if(o&&o.custom?.identity){a.custom.identity=o.custom.identity}else{a.custom.identity=e}a.custom.testruns=t.filter((e=>e.rule)).map((e=>e.rule.name));return a}))}}t.TestplanParser=TestplanParser},64777:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestrunParser=void 0;const a=i(53772);class TestrunParser extends a.TestcaseParser{filter(e,t,i){const a=super.filter(e,t,i);const o={};for(const e of a){(o[e.uri]??=[]).push(e)}return Object.entries(o).map((([e,t])=>{const i=JSON.parse(JSON.stringify(t[0]));i.custom??={};const a=t.find((e=>e.custom&&e.custom.identity));if(a&&a.custom?.identity){i.custom.identity=a.custom.identity}else{i.custom.identity=e}i.custom.testcases=t.filter((e=>e.rule&&e.name)).map((e=>`${e.rule?.name}::${e.name}`));i.custom.groupScenarios=t;return i}))}}t.TestrunParser=TestrunParser},32721:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerPolicy=t.policy=void 0;const a=i(86999);const o=i(1622);class Policy{builtinPolicies={};userPolicies={};resolve(e){const t=Object.values(this.builtinPolicies);const i=Object.values(this.userPolicies);return[...t,...i].filter((t=>t.scope.includes(e)))}registry(e,t="system"){if(t==="system"){this.builtinPolicies[e.id]=e}if(t==="user"){this.userPolicies[e.id]=e}}scanner(e,t,i=false,d=false){const m=[];const h=this.resolve(t);for(const i of h){try{i.action(e,m,t)}catch(e){const t=e instanceof Error?e.message:"Unknown policy execution error";m.push({id:`policy-runtime-error:${i.id}`,title:`Policy "${i.id}" failed during execution.`,detail:t,uri:"(policy-runtime)"})}}if(i){if(m.length>0){const e={valid:false,error_count:m.length,warning_count:0,diagnostics:m.map((e=>({severity:e.type??"error",summary:e.title,detail:e.detail})))};console.log(JSON.stringify(e,null,2));process.exit(1)}return}if(m.length>0){a.logger.info("Review the violations above and fix them before continuing.",{bold:true});a.logger.info(`${m.length} policy violation${m.length>1?"s":""} found:\n`,{bold:true})}let P=0;for(const e of m){const t=e.type==="warning";if(t)P++;if(t&&d)continue;let i=`on ${e.uri}`;if(e.line!==undefined)i+=` line ${e.line}`;if(e.scenario)i+=`, in scenario "${e.scenario}"`;o.notify.push({type:e.type??"error",title:e.title,detail:[e.detail,i]})}if(P>0&&d){a.logger.warn(`\n${P} warning(s) found. (Details suppressed by -compact-warnings)`)}return m.length>0}}t.policy=new Policy;const registerPolicy=e=>t.policy.registry(e,"user");t.registerPolicy=registerPolicy;t.policy.registry({id:"undeclared-fields",scope:["testcase"],action:(e,t,i)=>{for(const i of e){for(const e of i.custom?.policy?.filter((e=>e.type==="undeclared-field"))??[]){t.push({id:"undeclared-field",type:"warning",title:`Value for undeclared field "${e.field}"`,detail:`Field "${e.field}" is not declared in the configuration. Add a "fields" entry to your config.`,uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"required-fields",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{for(const i of e){for(const e of i.custom?.policy?.filter((e=>e.type==="required-field"))??[]){t.push({id:"required-field-missing",title:`Required field "${e.field}" is missing`,detail:`Add a step: "field ${e.field} = <value>" to the scenario.`,uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"required-gherkin",scope:["testcase"],action:(e,t,i)=>{const a=["scenario","scenario outline"];for(const i of e){if(!i.feature.name||i.feature.name.trim()===""){t.push({id:"feature-name-required",title:"Feature name is required",detail:"Every feature must have a name. Add a descriptive name after 'Feature'.",uri:i.uri,line:i.location})}if(!i.name||i.name.trim()===""){t.push({id:"scenario-name-required",title:"Scenario name is required",detail:"Every scenario must have a name. Add a descriptive name after 'Scenario:' or 'Scenario Outline:'.",uri:i.uri,line:i.location});continue}if(!a.includes(i.keyword.trim().toLowerCase()))continue;const e=[...i.background?.steps??[],...i.steps];const o=[];if(!e.some((e=>e.keyword.trim().toLowerCase()==="given")))o.push("Given");if(!e.some((e=>e.keyword.trim().toLowerCase()==="when")))o.push("When");if(!e.some((e=>e.keyword.trim().toLowerCase()==="then")))o.push("Then");if(o.length>0){t.push({id:"steps-required",title:`Scenario is missing required step types: ${o.join(", ")}.`,detail:"Each scenario must have at least one Given, When, and Then step.",uri:i.uri,scenario:i.name,line:i.location})}}}});t.policy.registry({id:"no-feature-tags",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{const a=`@${i}`;const o=new Set;for(const d of e){const e=d.uri??"(unknown)";if(o.has(e))continue;o.add(e);const m=["@testcase","@testrun","@testplan"];const h=[...m];if(d.custom?.identity){h.push(d.custom.identity.toLowerCase())}const P=d.feature?.tags??[];const _=P.filter((e=>!h.includes(e.toLowerCase())));if(_.length>0){t.push({id:"no-feature-tags",title:`Feature-level tags are not allowed in ${e} scope (found: ${_.join(", ")}).`,detail:"Move any tags from Feature: to the individual Scenario level, except for scope tags and identity tags.",uri:e})}const L=P.filter((e=>m.includes(e.toLowerCase())));for(const o of L){if(o.toLowerCase()!==a){t.push({id:"invalid-scope-tag",title:`Mismatched scope: file is tagged as ${o} but is being processed as ${a}.`,detail:`A feature file designed for ${o} cannot be executed in -scope ${i}.`,uri:e})}}}}});t.policy.registry({id:"identity-required",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{for(const a of e??[]){const e=a.custom?.identity;if(!e||e.trim()===""||e===a.uri){t.push({id:"identity-required",title:i==="testcase"?"Every scenario must have an identity tag matching the configured identity pattern.":"Every feature must have an identity tag matching the configured identity pattern.",detail:i==="testcase"?"Add the identity tag (e.g. @tc-1) to each scenario.":"Add the identity tag (e.g. @tr-1) to the Feature level.",uri:a.uri??"(unknown)",scenario:i==="testcase"?a.name:undefined,line:i==="testcase"?a.location:a.feature?.location??a.location});continue}if(i==="testrun"||i==="testplan"){const o=a.feature?.tags??[];const d=o.some((t=>t.toLowerCase()===e.toLowerCase()));if(!d){t.push({id:"identity-feature-level-required",title:`The identity tag ${e} must be declared at the Feature level.`,detail:`Move the identity tag ${e} so it is placed next to the @${i} tag before the 'Feature:' keyword.`,uri:a.uri??"(unknown)",line:a.feature?.location??a.location})}}}}});t.policy.registry({id:"identity-unique",scope:["testcase","testrun","testplan"],action:(e,t,i)=>{const a=new Map;for(const t of e){const e=t.custom?.identity?.trim();if(!e)continue;if(e===t.uri)continue;const o={scenario:t.name,line:t.location,keyword:t.keyword||"",uri:t.uri||""};const d=i==="testcase"?`${t.uri}::${e}`:e;const m=a.get(d);if(m){m.push(o)}else{a.set(d,[o])}}for(const[o,d]of a){if(d.length<=1)continue;const a=o.includes("::")?o.split("::")[1]:o;const m=d.every((e=>(e.keyword||"").trim()==="Scenario Outline"))&&d.every((e=>e.line===d[0].line&&e.uri===d[0].uri));if(m){t.push({id:"unique-key-required",title:`Scenario Outline expanded ${d.length} rows but all share the same identity "${a}".`,detail:"Add a <key> inside the identity tag (e.g. @tc-<key>) so each expanded row has a unique identity.",uri:d[0].uri,scenario:d[0].scenario,line:d[0].line});continue}for(const o of d){let d="";const m=a.match(/^(@[a-zA-Z0-9-]+?)-?(\d+)(.*)$/);if(m){const t=m[1]+(a.includes("-")?"-":"");const h=m[3];let P=0;for(const a of e){if(i==="testcase"&&a.uri!==o.uri)continue;const e=a.custom?.identity?.trim();if(e&&e!==a.uri){const i=e.match(new RegExp(`^${t}(\\d+)${h}$`));if(i){const e=parseInt(i[1],10);if(e>P)P=e}}}if(P>0){d=` The next available identity ${i==="testcase"?"in this file ":""}is ${t}${P+1}${h}.`}}t.push({id:"identity-unique",title:i==="testcase"?`Duplicate identity "${a}" found in the same file.`:`Duplicate identity "${a}" found.`,detail:(i==="testcase"?"Each scenario within a file must have a unique identity tag.":"Each element must have a globally unique identity tag in the workspace.")+d,uri:o.uri,scenario:o.scenario,line:o.line})}}}})},65301:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.askConfirmation=askConfirmation;t.askApproval=askApproval;t.askDestroyApproval=askDestroyApproval;t.askMigrationApproval=askMigrationApproval;t.askStatus=askStatus;const a=i(23785);const o=i(80465);const d=i(2560);async function askConfirmation(e){const t=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((i=>{console.log("");for(const t of e){console.log(t)}console.log(` ${d.MSG_APPROVE_ONLY_YES}`);console.log("");t.question(" Enter a value: ",(e=>{t.close();console.log("");i(e.trim().toLowerCase()==="yes")}))}))}async function askApproval(){return askConfirmation(["Do you want to perform these actions?",` ${d.TITLE_APP} will perform the actions described above.`])}async function askDestroyApproval(e,t){const i=t?` in scope '${t}'`:"";return askConfirmation([(0,o.red)((0,o.bold)(`${d.TITLE_APP} will destroy ${e} resource(s)${i}.`))," This action cannot be undone."])}async function askMigrationApproval(e){const t=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((i=>{console.log("");console.log((0,o.bold)("Do you want to copy existing state to the new backend?"));console.log(" Pre-existing state was found while migrating the previous");console.log(` backend to the newly configured "${e}" backend.`);console.log(" Do you want to copy this state to the new backend?");console.log(' Enter "yes" to copy and "no" to start with an empty state.');console.log("");t.question(" Enter a value: ",(e=>{t.close();console.log("");i(e.trim().toLowerCase()==="yes")}))}))}async function askStatus(){const e=(0,a.createInterface)({input:process.stdin,output:process.stdout});return new Promise((t=>{console.log("");console.log((0,o.bold)("Select the new status for this testcase:"));console.log(" Available options: passed, failed, pending, skipped, blocked, etc.");console.log("");e.question(" Enter the new status: ",(i=>{e.close();console.log("");t(i.trim().toLowerCase())}))}))}},7066:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.State=void 0;const a=i(76982);const o=i(2560);const d=i(1622);const m=i(27814);const h=i(19979);const P=i(59491);const _=i(64558);const L=i(84489);const j=i(28742);class State{state;backend;workspaceManager;lockAcquired=false;constructor(e,t,i,a=false,o,d){const U=new L.Config(e);let H=d||U.getBackend();this.workspaceManager=new j.WorkspaceManager(e);const V=this.workspaceManager.getCurrentWorkspace();if(a){H={type:"local",config:{}}}else if(H&&H.type!=="local"&&o){const e=this.parseBackendOverrides(o);H.config={...H.config,...e}}if(H?.type==="s3"){this.backend=new h.S3Backend(H.config,V)}else if(H?.type==="azurerm"){this.backend=new P.AzureRMBackend(H.config,V)}else if(H?.type==="gcs"){this.backend=new _.GCSBackend(H.config,V)}else{this.backend=new m.LocalBackend(e,t,i,V)}}parseBackendOverrides(e){const t={};const i=Array.isArray(e)?e:[e];for(const e of i){const i=e.indexOf("=");if(i>0){const a=e.substring(0,i).trim();const o=e.substring(i+1).trim();t[a]=o}}return t}async hasState(){return await this.backend.exists()}async init(){const e=await this.backend.read();if(!e.version){d.notify.push({type:"error",title:`${o.FILE_STATE} is missing the "version" field`,detail:[`Add a "version" field to your ${o.FILE_STATE} file and rerun init.`],close:true})}else if(e.version!==o.VERSION_STATE){d.notify.push({type:"error",title:`state version mismatch`,detail:[`Found version "${e.version}", but expected "${o.VERSION_STATE}".`,`Update ${o.FILE_STATE} to version ${o.VERSION_STATE} and rerun init.`],close:true})}this.state={version:e.version||o.VERSION_STATE,serial:e.serial??0,lineage:e.lineage??(0,a.randomUUID)(),lastSync:e.lastSync??"",resources:e.resources??[]}}async acquireLock(e,t){if(!e)return;const i=await this.backend.lock(t);if(!i){console.error(`\nError: Acquiring the state lock.\n\nTestform acquires a state lock to protect the state from being written\nby multiple users at the same time. Please resolve the issue above and try\nagain. For most commands, you can disable locking with the "-lock=false"\nflag, but this is not recommended.\n`);process.exit(1)}this.lockAcquired=true;const cleanup=async()=>{await this.releaseLock();process.exit(1)};process.on("SIGINT",cleanup);process.on("SIGTERM",cleanup)}async releaseLock(){if(this.lockAcquired){await this.backend.unlock();this.lockAcquired=false}}async forceUnlock(e){return this.backend.forceUnlock(e)}async save(){this.state.serial+=1;this.state.lastSync=(new Date).toISOString();await this.backend.write(this.state)}getState(){return this.state}replaceState(e){this.state=JSON.parse(JSON.stringify(e))}getResources(e){if(!this.state.resources)return[];if(!e)return this.state.resources;return this.state.resources.filter((t=>t.type===e))}getCurrentWorkspace(){return this.workspaceManager.getCurrentWorkspace()}setCurrentWorkspace(e){this.workspaceManager.setCurrentWorkspace(e)}async listWorkspaces(){return this.backend.listWorkspaces()}async deleteWorkspace(e){return this.backend.deleteWorkspace(e)}findResource(e){return this.state.resources.find((t=>t.identity===e))}upsertResource(e){const t=this.state.resources.findIndex((t=>t.identity===e.identity));if(t>=0){this.state.resources[t]=e}else{this.state.resources.push(e)}}removeResource(e){this.state.resources=this.state.resources.filter((t=>t.identity!==e))}clearResources(){this.state.resources=[]}}t.State=State},62978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatHclValue=void 0;t.elapsedSeconds=elapsedSeconds;t.formatIdentityDisplay=formatIdentityDisplay;t.formatResourceAddress=formatResourceAddress;function elapsedSeconds(e){return((Date.now()-e)/1e3).toFixed(0)}function formatIdentityDisplay(e){const t=e.split("::");if(t.length>0){let e=t[0];const i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));if(i!==-1){e=e.substring(i+1)}const a=e.lastIndexOf(".");if(a!==-1){e=e.substring(0,a)}t[0]=e;return t.join("::")}return e}function formatResourceAddress(e,t){return`${e}.${formatIdentityDisplay(t)}`}const formatHclValue=(e,i)=>{const a=" ".repeat(i);if(e===null||e===undefined)return"null";if(typeof e==="string"){if(e.includes("\n")){const t=e.split("\n").map((e=>e?`${a} ${e}`:`${a} `)).join("\n");return`<<-EOT\n${t}\n${a}EOT`}return JSON.stringify(e)}if(Array.isArray(e)){if(e.length===0)return"[]";const o=e.map((e=>(0,t.formatHclValue)(e,i+1)));return`[\n${a} ${o.join(`,\n${a} `)},\n${a}]`}if(typeof e==="object"){const o=Object.keys(e);if(o.length===0)return"{}";let d=0;for(const e of o){const t=JSON.stringify(e);if(t.length>d)d=t.length}let m=`{\n`;for(const h of o){const o=JSON.stringify(h);const P=" ".repeat(d-o.length);const _=Object.prototype.hasOwnProperty.call(e,h)?e[h]:undefined;m+=`${a} ${o}${P} = ${(0,t.formatHclValue)(_,i+1)}\n`}m+=`${a}}`;return m}return JSON.stringify(e)};t.formatHclValue=formatHclValue},29922:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VariableParser=void 0;const a=i(79896);const o=i(1622);class VariableParser{vars={};workDir;constructor(e,t,i="."){this.workDir=i;this.parseVarFiles(t);this.parseVars(e)}parseVars(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(const e of t){const t=e.indexOf("=");if(t===-1){o.notify.push({type:"warning",title:`Invalid variable format: ${e}`,detail:["Variables must be in the format key=value"]});continue}const i=e.substring(0,t).trim();const a=e.substring(t+1).trim();this.vars[i]=a}}parseVarFiles(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(let e of t){const t=i(16928);e=t.resolve(this.workDir,e);if(!(0,a.existsSync)(e)){o.notify.push({type:"error",title:`Variable file not found: ${e}`,detail:[],close:true});process.exit(1)}try{const t=(0,a.readFileSync)(e,"utf-8");let i={};if(e.endsWith(".json")){i=JSON.parse(t)}else{const e=t.split("\n");for(const t of e){const e=t.trim();if(!e||e.startsWith("#")||e.startsWith("//"))continue;const a=e.indexOf("=");if(a!==-1){const t=e.substring(0,a).trim();let o=e.substring(a+1).trim();if(o.startsWith('"')&&o.endsWith('"')){o=o.substring(1,o.length-1)}else if(o.startsWith("'")&&o.endsWith("'")){o=o.substring(1,o.length-1)}i[t]=o}}}this.vars={...this.vars,...i}}catch(t){o.notify.push({type:"error",title:`Failed to parse variable file: ${e}`,detail:[t.message],close:true});process.exit(1)}}}getVars(){return this.vars}applyToTemplate(e){let t=e;const i=/\$\{var\.([a-zA-Z0-9_-]+)\}/g;t=t.replace(i,((e,t)=>this.vars[t]!==undefined?this.vars[t]:e));return t}}t.VariableParser=VariableParser},28742:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const a=i(16928);const o=i(79896);class WorkspaceManager{envPath;statePath;constructor(e){const t=(0,a.join)(e,".testform");if(!(0,o.existsSync)(t)){(0,o.mkdirSync)(t,{recursive:true})}this.envPath=(0,a.join)(t,"environment");this.statePath=(0,a.join)(t,"testform.state")}getCurrentWorkspace(){if((0,o.existsSync)(this.envPath)&&(0,o.statSync)(this.envPath).isFile()){const e=(0,o.readFileSync)(this.envPath,"utf8").trim();if(e.length>0){return e}}return"default"}setCurrentWorkspace(e){(0,o.writeFileSync)(this.envPath,e,"utf8")}getActiveBackend(){if((0,o.existsSync)(this.statePath)&&(0,o.statSync)(this.statePath).isFile()){try{const e=(0,o.readFileSync)(this.statePath,"utf8");const t=JSON.parse(e);return t.backend||null}catch{return null}}return null}setActiveBackend(e){let t={version:3};if((0,o.existsSync)(this.statePath)&&(0,o.statSync)(this.statePath).isFile()){try{t=JSON.parse((0,o.readFileSync)(this.statePath,"utf8"))}catch{}}t.backend=e;(0,o.writeFileSync)(this.statePath,JSON.stringify(t,null,2),"utf8")}}t.WorkspaceManager=WorkspaceManager},41244:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HELP_DEBUG=t.HELP_GENERATE=t.HELP_REPORT=t.HELP_DIFF=t.HELP_WORKSPACE=t.HELP_VERSION=t.HELP_UNTAINT=t.HELP_TAINT=t.HELP_STATE_SHOW=t.HELP_STATE_RM=t.HELP_STATE_PUSH=t.HELP_STATE_PULL=t.HELP_STATE_MV=t.HELP_STATE_LIST=t.HELP_STATE_IDENTITIES=t.HELP_STATE=t.HELP_LOGOUT=t.HELP_LOGIN=t.HELP_GRAPH=t.HELP_FORCE_UNLOCK=t.HELP_FMT=t.HELP_SHOW=t.HELP_REFRESH=t.HELP_IMPORT=t.HELP_DESTROY=t.HELP_APPLY=t.HELP_VALIDATE=t.HELP_PLAN=t.HELP_INIT=t.HELP_GLOBAL=void 0;t.getCommandHelp=getCommandHelp;const a=i(2560);const o=i(80465);t.HELP_GLOBAL=`\n${(0,o.bold)("Usage:")} ${a.TITLE_CLI} [global options] [subcommand] [args]\n\nThe available commands for execution are listed below.\nThe primary workflow commands are given first, followed by\nless common or more advanced commands.\n\n${(0,o.bold)("Main commands:")}\n init Prepare working directory for other commands\n validate Check whether the configuration is valid\n plan Show changes required by current configuration\n apply Create or update resources \n destroy Destroy previously-created resources \n\n${(0,o.bold)("All other commands:")}\n diff Show drift between local configuration and state\n debug Parse a feature file and print the JSON AST\n fmt Reformat your configuration in the standard style\n force-unlock Release a stuck lock on the current workspace\n generate Generate new feature files based on your scope and convention\n graph Generate a Graphviz graph of the steps in an operation\n import Associate existing infrastructure with a ${a.TITLE_APP} resource\n login Obtain and save credentials for a remote host\n logout Remove locally-stored credentials for a remote host\n refresh Update the state to match remote systems\n report Generate multi-dimensional test execution reports\n show Show the current state or a saved plan\n state Advanced state management\n taint Mark a resource instance as not fully functional\n untaint Remove the 'tainted' state from a resource instance\n version Show the current ${a.TITLE_APP} version\n workspace Workspace management\n\n${(0,o.bold)("Global options (use these before the subcommand, if any):")}\n -chdir=DIR Switch to a different working directory before executing the given subcommand.\n -projectId Override the default project ID defined in your testform.json.\n -scope Limit the scope of the execution (testcase, testrun, testplan).\n -help Show this help output, or the help for a specified subcommand.\n -version An alias for the "version" subcommand.\n`;t.HELP_INIT=`\nUsage: ${a.TITLE_CLI} [global options] init [options]\n\n Initialize a new or existing ${a.TITLE_APP} working directory by creating\n initial files and loading any remote state.\n\n This is the first command that should be run for any new or existing\n ${a.TITLE_APP} configuration per machine. This sets up all the local data\n necessary to run ${a.TITLE_APP}.\n\n This command is always safe to run multiple times.\n\nOptions:\n\n -backend=false Disable backend initialization for this configuration\n and use what was previously initialized instead.\n\n -backend-config=path Configuration to be merged with what is in the\n configuration file's 'backend' block. This can be\n a 'key=value' format, and can be specified multiple\n times.\n\n -lock=false Don't hold a state lock during backend migration.\n This is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -json If specified, machine readable output will be\n printed in JSON format.\n\n -reconfigure Reconfigure a backend, ignoring any saved\n configuration.\n\n -migrate-state Reconfigure a backend, and attempt to migrate any\n existing state.\n`.trim();t.HELP_PLAN=`\nUsage: ${a.TITLE_CLI} [global options] plan [options]\n\n Generates a speculative execution plan, showing what actions ${a.TITLE_APP}\n would take to apply the current configuration. This command will not\n actually perform the planned actions.\n\n You can optionally save the plan to a file, which you can then pass to\n the "apply" command to perform exactly the actions described in the plan.\n\nPlan Customization Options:\n\n The following options customize how ${a.TITLE_APP} will produce its plan. You\n can also use these options when you run "${a.TITLE_CLI} apply" without passing\n it a saved plan, in order to plan and apply in a single command.\n\n -destroy Select the "destroy" planning mode, which creates a plan\n to destroy all objects currently managed by this\n ${a.TITLE_APP} configuration instead of the usual behavior.\n\n -refresh-only Select the "refresh only" planning mode, which checks\n whether remote objects still match the outcome of the\n most recent ${a.TITLE_APP} apply but does not propose any\n actions to undo any changes made outside of ${a.TITLE_APP}.\n\n -refresh=false Skip checking for external changes to remote objects\n while creating the plan. This can potentially make\n planning faster, but at the expense of possibly planning\n against a stale record of the remote system state.\n\n -replace=resource Force replacement of a particular resource instance using\n its resource address. If the plan would've normally\n produced an update or no-op action for this instance,\n ${a.TITLE_APP} will plan to replace it instead. You can use\n this option multiple times to replace more than one object.\n\n -target=resource Limit the planning operation to only the given module,\n resource, or resource instance and all of its\n dependencies. You can use this option multiple times to\n include more than one object. This is for exceptional\n use only.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file (.json or key=value format).\n Use this option more than once to include more than one\n variables file.\n\nOther Options:\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, shows them in a more compact\n form that includes only the summary messages.\n\n -detailed-exitcode Return detailed exit codes when the command exits.\n This will change the meaning of exit codes to:\n 0 - Succeeded, diff is empty (no changes)\n 1 - Errored\n 2 - Succeeded, there is a diff\n\n -lock=false Don't hold a state lock during the operation. This\n is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -out=path Write a plan file to the given path. This can be\n used as input to the "apply" command.\n\n -parallelism=n Limit the number of concurrent operations. Defaults\n to 10.\n\n -state=statefile A legacy option used for the local backend only.\n See the local backend's documentation for more\n information.\n \n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n`.trim();t.HELP_VALIDATE=`\nUsage: ${a.TITLE_CLI} [global options] validate [options]\n\n Validate the configuration files in a directory, referring only to the\n configuration and not accessing any remote services.\n\n Validate runs checks that verify whether a configuration is syntactically\n valid and internally consistent.\n\nOptions:\n\n -json Produce output in a machine-readable JSON format.\n Always disables color.\n\n -no-color If specified, output won't contain any color.\n\n -no-tests If specified, ${a.TITLE_APP} will only parse the files and\n skip policy validations.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory, defaults to "tests".\n \n -query=string Filter the parsed documents to locate specific test \n scenarios across the active scope.\n`.trim();t.HELP_APPLY=`\nUsage: ${a.TITLE_CLI} [global options] apply [options] [PLAN]\n\n Creates or updates infrastructure according to ${a.TITLE_APP} configuration\n files in the current directory.\n\n By default, ${a.TITLE_APP} will generate a new plan and present it for your\n approval before taking any action. You can optionally provide a plan\n file created by a previous call to "${a.TITLE_CLI} plan", in which case\n ${a.TITLE_APP} will take the actions described in that plan without any\n confirmation prompt.\n\nOptions:\n\n -auto-approve Skip interactive approval of plan before applying.\n\n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension. Set to "-" to disable backup.\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact\n form that includes only the summary messages.\n\n -destroy Destroy ${a.TITLE_APP}-managed infrastructure.\n The command "${a.TITLE_CLI} destroy" is a convenience alias\n for this option.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -input=true Ask for input for variables if not directly set.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of parallel resource operations.\n Defaults to 10.\n\n -replace=resource ${a.TITLE_APP} will plan to replace this resource instance\n instead of doing an update or no-op action. \n\n -set-status=assigns Injects or updates the status field in your local\n testrun features before applying.\n (e.g., "tc1=passed,tc2=failed").\n Supported statuses: passed, failed, pending,\n blocked, skipped, unexecuted.\n\n -state=path Path to read and save state. Defaults to "testform.tfstate".\n Legacy option for the local backend only. See the local\n backend's documentation for more information.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file (.json or key=value format).\n Use this option more than once to include more than one\n variables file.\n\n -test-directory=path Set the ${a.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n\n If you don't provide a saved plan file then this command will also accept\n all of the plan-customization options accepted by the ${a.TITLE_CLI} plan command.\n For more information on those options, run:\n ${a.TITLE_CLI} plan -help\n`.trim();t.HELP_DESTROY=`\nUsage: ${a.TITLE_CLI} [global options] destroy [options]\n\n Destroy ${a.TITLE_APP}-managed infrastructure.\n\n This command is a convenience alias for:\n ${a.TITLE_CLI} apply -destroy\n\n This command also accepts many of the plan-customization options accepted by\n the ${a.TITLE_CLI} plan command. For more information on those options, run:\n ${a.TITLE_CLI} plan -help\n`.trim();t.HELP_IMPORT=`\nUsage: ${a.TITLE_CLI} [global options] import [options] ADDR ISSUE_NUMBER\n\n Import an existing GitHub Issue into your ${a.TITLE_APP} state.\n\n This command connects to GitHub, fetches the specified ISSUE_NUMBER, and\n imports it into your local ${a.TITLE_APP} state under the given ADDR (Identity).\n This allows existing GitHub Issues to come under ${a.TITLE_APP} management\n without having to be initially created via a 'testform apply'.\n\n ADDR: The identity of the scenario (e.g., 'test1').\n ISSUE_NUMBER: The numeric ID of the GitHub Issue to import (e.g., '123').\n\n This command will make network requests to GitHub but will not modify\n the remote issue.\n\nOptions:\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_REFRESH=`\nUsage: ${a.TITLE_CLI} [global options] refresh [options]\n\n Update the local state file by checking the real-world status of all tracked\n GitHub Issues and updating their metadata (e.g., titles, descriptions).\n\n This command will not modify your GitHub Issues, but it will modify your\n local state file to reflect any changes made on GitHub. These state changes\n might cause new actions to occur when you generate a plan or call apply next.\n\nOptions:\n\n -compact-warnings If ${a.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact form\n that includes only the summary messages.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of concurrent operations. Defaults to 10.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_SHOW=`\nUsage: ${a.TITLE_CLI} [global options] show [options] [path]\n\n Reads and outputs a ${a.TITLE_APP} state or plan file in a human-readable\n form. If no path is specified, the current state will be shown.\n\nOptions:\n\n -no-color If specified, output won't contain any color.\n -json If specified, output the ${a.TITLE_APP} plan or state in\n a machine-readable form.\n`.trim();t.HELP_FMT=`\nUsage: ${a.TITLE_CLI} [global options] fmt [options] [target...]\n\n Rewrites all ${a.TITLE_APP} scenario files to a canonical format. All\n testing files (.feature) are updated using standard Gherkin syntax\n indentation.\n\n By default, fmt scans the current directory for .feature files. If you\n provide a directory for the target argument, then fmt will scan that\n directory instead.\n\n The content must be in the Gherkin language native syntax.\n\nOptions:\n\n -list=false Don't list files whose formatting differs\n\n -write=false Don't write to source files\n\n -check Check if the input is formatted. Exit status will be 3 if\n any input is not properly formatted and zero otherwise.\n\n -no-color If specified, output won't contain any color.\n\n -recursive Also process files in subdirectories. By default, only the\n given directory (or current directory) is processed.\n`.trim();t.HELP_FORCE_UNLOCK=`\nUsage: ${a.TITLE_CLI} [global options] force-unlock LOCK_ID\n\n Manually unlock the state for the defined configuration.\n\n This will not modify your infrastructure. This command removes the lock on the\n state for the current workspace. The behavior of this lock is dependent\n on the backend being used. Local state files cannot be unlocked by another\n process.\n\nOptions:\n\n -force Don't ask for input for unlock confirmation.\n`.trim();t.HELP_GRAPH=`\nUsage: ${a.TITLE_CLI} [global options] graph [options]\n\n Produces an ASCII tree representation of the dependency graph between\n different objects in the current test configuration and state.\n\n By default the graph shows the relationships between the hierarchical\n components in your configuration: Test Plans -> Test Runs -> Test Cases.\n\nOptions:\n\n -draw-cycles Highlight the dependency links in the graph with colored\n edges to explicitly visualize the dependency between\n Plans, Runs, and Cases.\n\n -type=TYPE (deprecated) In prior versions of Testform, specified the\n type of operation graph to output.\n\n -module-depth=n (deprecated) In prior versions of Testform, specified the\n depth of modules to show in the output.\n`.trim();t.HELP_LOGIN=`\nUsage: ${a.TITLE_CLI} [global options] login [hostname]\n\n Retrieves an authentication token for the given hostname, if it supports\n automatic login, and saves it in a credentials file in your home directory.\n\n If no hostname is provided, the default hostname is github.com, to\n log in to GitHub.\n\n If not overridden by credentials helper settings in the CLI configuration,\n the credentials will be written to the following local file:\n ~/.testform.d/credentials.json\n`.trim();t.HELP_LOGOUT=`\nUsage: ${a.TITLE_CLI} [global options] logout [hostname]\n\n Removes locally-stored credentials for specified hostname.\n\n Note: the API token is only removed from local storage, not destroyed on the\n remote server, so it will remain valid until manually revoked.\n\n If no hostname is provided, the default hostname is github.com.\n`.trim();t.HELP_STATE=`\nUsage: ${a.TITLE_CLI} [global options] state [subcommand] [options] [args]\n\n This command has subcommands for advanced state management.\n\n These subcommands can be used to slice and dice the ${a.TITLE_APP} state.\n This is sometimes necessary in advanced cases. For your safety, all\n state management commands that modify the state create a timestamped\n backup of the state prior to making modifications.\n\nSubcommands:\n identities List the identities of resources in the state\n list List resources in the state\n mv Move an item in the state\n pull Pull current state and output to stdout\n push Update remote state from a local state file\n rm Remove instances from the state\n show Show a resource in the state\n`.trim();t.HELP_STATE_IDENTITIES=`\nUsage: ${a.TITLE_CLI} [global options] state identities [options] -json [address...]\n\n List the json format of the identities of resources in the ${a.TITLE_APP} state.\n\n This command lists the identities of resource instances in the ${a.TITLE_APP} state in json format.\n The address argument can be used to filter the instances by resource or module. If\n no pattern is given, identities for all resource instances are listed.\n\n The addresses must either be module addresses or absolute resource\n addresses, such as:\n github_testcase.example\n module.example\n module.example.module.child\n module.example.github_testcase.example\n\n An error will be returned if any of the resources or modules given as\n filter addresses do not exist in the state.\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default, ${a.TITLE_APP}\n will consult the state of the currently-selected\n workspace.\n\n -id=ID Filters the results to include only instances whose\n resource types have an attribute named "id" whose value\n equals the given id string.\n`.trim();t.HELP_STATE_LIST=`\nUsage: ${a.TITLE_CLI} [global options] state list [options] [address...]\n\n List resources in the ${a.TITLE_APP} state.\n\n This command lists resource instances in the ${a.TITLE_APP} state. The address\n argument can be used to filter the instances by resource or module. If\n no pattern is given, all resource instances are listed.\n\n The addresses must either be module addresses or absolute resource\n addresses, such as:\n github_testcase.example\n module.example\n module.example.module.child\n module.example.github_testcase.example\n\n An error will be returned if any of the resources or modules given as\n filter addresses do not exist in the state.\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default, ${a.TITLE_APP}\n will consult the state of the currently-selected\n workspace.\n\n -id=ID Filters the results to include only instances whose\n resource types have an attribute named "id" whose value\n equals the given id string.\n`.trim();t.HELP_STATE_MV=`\nUsage: ${a.TITLE_CLI} [global options] state mv [options] SOURCE DESTINATION\n\n This command will move an item matched by the address given to the\n destination address. This command can also move to a destination address\n in a completely different state file.\n\n This can be used for simple resource renaming, moving items to and from\n a module, moving entire modules, and more. And because this command can also\n move data to a completely new state, it can also be used for refactoring\n one configuration into multiple separately managed ${a.TITLE_APP} configurations.\n\n This command will output a backup copy of the state prior to saving any\n changes. The backup cannot be disabled. Due to the destructive nature\n of this command, backups are required.\n\n If you're moving an item to a different state file, a backup will be created\n for each state file.\n\nOptions:\n\n -dry-run If set, prints out what would've been moved but doesn't\n actually move anything.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -ignore-remote-version A rare option used for the remote backend only. See\n the remote backend documentation for more information.\n\n -state, state-out, and -backup are legacy options supported for the local\n backend only. For more information, see the local backend's documentation.\n`.trim();t.HELP_STATE_PULL=`\nUsage: ${a.TITLE_CLI} [global options] state pull [options]\n\n Pull the state from its location, upgrade the local copy, and output it\n to stdout.\n\n This command "pulls" the current state and outputs it to stdout.\n As part of this process, ${a.TITLE_APP} will upgrade the state format of the\n local copy to the current version.\n\n The primary use of this is for state stored remotely. This command\n will still work with local state but is less useful for this.\n`.trim();t.HELP_STATE_PUSH=`\nUsage: ${a.TITLE_CLI} [global options] state push [options] PATH\n\n Update remote state from a local state file at PATH.\n\n This command "pushes" a local state and overwrites remote state\n with a local state file. The command will protect you against writing\n an older serial or a different state file lineage unless you specify the\n "-force" flag.\n\n This command works with local state (it will overwrite the local\n state), but is less useful for this use case.\n\n If PATH is "-", then this command will read the state to push from stdin.\n Data from stdin is not streamed to the backend: it is loaded completely\n (until pipe close), verified, and then pushed.\n\nOptions:\n\n -force Write the state even if lineages don't match or the\n remote serial is higher.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n`.trim();t.HELP_STATE_RM=`\nUsage: ${a.TITLE_CLI} [global options] state rm [options] ADDRESS...\n\n Remove one or more items from the ${a.TITLE_APP} state, causing ${a.TITLE_APP} to\n "forget" those items without first destroying them in the remote system.\n\n This command removes one or more resource instances from the ${a.TITLE_APP} state\n based on the addresses given. You can view and list the available instances\n with "${a.TITLE_CLI} state list".\n\n If you give the address of an entire module then all of the instances in\n that module and any of its child modules will be removed from the state.\n\n If you give the address of a resource that has "count" or "for_each" set,\n all of the instances of that resource will be removed from the state.\n\nOptions:\n\n -dry-run If set, prints out what would've been removed but\n doesn't actually remove anything.\n\n -backup=PATH Path where ${a.TITLE_APP} should write the backup\n state.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state=PATH Path to the state file to update. Defaults to the\n current workspace state.\n Legacy option for the local backend only. See\n the local backend's documentation for more\n information.\n\n -ignore-remote-version Continue even if remote and local ${a.TITLE_APP} versions\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n`.trim();t.HELP_STATE_SHOW=`\nUsage: ${a.TITLE_CLI} [global options] state show [options] ADDRESS\n\n Shows the attributes of a resource in the ${a.TITLE_APP} state.\n\n This command shows the attributes of a single resource in the ${a.TITLE_APP}\n state. The address argument must be used to specify a single resource.\n You can view the list of available resources with "${a.TITLE_CLI} state list".\n\nOptions:\n\n -state=statefile Path to a ${a.TITLE_APP} state file to use to look\n up ${a.TITLE_APP}-managed resources. By default it will\n use the state "${a.FILE_STATE}" if it exists.\n`.trim();t.HELP_TAINT=`\nUsage: ${a.TITLE_CLI} [global options] taint [options] [address]\n\n ${a.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n this command.\n\n This will not modify your infrastructure directly, but subsequent\n ${a.TITLE_APP} plans will include actions to destroy the remote object\n and create a new object to replace it.\n\n You can remove the "taint" state from a resource instance using\n the "${a.TITLE_CLI} untaint" command.\n\n The address is in the usual resource address syntax, such as:\n aws_instance.foo\n aws_instance.bar[1]\n module.foo.module.bar.aws_instance.baz\n\n Use your shell's quoting or escaping syntax to ensure that the\n address will reach ${a.TITLE_APP} correctly, without any special\n interpretation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_UNTAINT=`\nUsage: ${a.TITLE_CLI} [global options] untaint [options] name\n\n ${a.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n the "${a.TITLE_CLI} taint" command.\n\n This command removes that state from a resource instance, causing\n ${a.TITLE_APP} to see it as fully-functional and not in need of\n replacement.\n\n This will not modify your infrastructure directly. It only avoids\n ${a.TITLE_APP} planning to replace a tainted instance in a future operation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_VERSION=`\nUsage: ${a.TITLE_CLI} version [options]\n\n Displays the version of ${a.TITLE_APP}.\n`.trim();t.HELP_WORKSPACE=`\nUsage: ${a.TITLE_CLI} [global options] workspace\n\n new, list, show, select and delete ${a.TITLE_APP} workspaces.\n\nSubcommands:\n delete Delete a workspace\n list List Workspaces\n new Create a new workspace\n select Select a workspace\n show Show the name of the current workspace\n`.trim();t.HELP_DIFF=`\nUsage: ${a.TITLE_CLI} [global options] diff [options]\n\n Show drift between local configuration and state.\n`.trim();t.HELP_REPORT=`\nUsage: ${a.TITLE_CLI} [global options] report <type> [options]\n\n Generates multi-dimensional test reports from the local state.\n Available report types are grouped by scope:\n\n 📦 Scope: Test Case\n testcase-summary List of all test cases and their status\n test-case-activity Dashboard of test cases with graphs and trends\n\n 🏃 Scope: Test Run\n testrun-summary Test runs and their pass/fail metrics\n testrun-detailed In-depth view of a specific Test Run\n\n 📋 Scope: Test Plan\n testplan-summary Overall Test Plan Progress and linked test runs\n\n 🌐 Cross-Scope (Multi-dimensional)\n defects List of failed/blocked tests with issue links\n traceability Mapping between requirements/tags and test runs\n coverage Percentage of passed tests grouped by tags\n two-dimensional Status distribution matrix\n raw Extract all data for custom reporting\n\nOptions:\n\n -format <md|csv|json> Output format. Default is "md" (Markdown).\n -out <path> Path to save the generated report.\n -filter <key=val> Filter data by any state attribute. Can be\n specified multiple times.\n -groupBy <field> Group results dynamically by a specific field\n using JSONPath (e.g. attributes.custom_fields.sprint).\n -apply Create a GitHub Issue for the report.\n -field <key=val> Custom field values to attach when -apply is used.\n Also accepts a JSON string (e.g. '{"key": "val"}').\n Can be specified multiple times.\n`.trim();t.HELP_GENERATE=`\nUsage: ${a.TITLE_CLI} [global options] generate <scope> [title] [options]\n\n Generate new feature files based on your scope and convention.\n\n This command simplifies creating new testcase, testrun, or testplan files.\n It automatically resolves the appropriate directory and applies the naming\n convention defined in your ${a.TITLE_APP} configuration.\n\n <scope> can be one of: testcase, testrun, testplan.\n [title] is an optional title for the feature. If not provided, a default\n will be generated.\n\nOptions:\n\n -rule <rule> Include a business rule block (Rule: <rule>) in the generated\n feature file. The command verifies that a feature file for\n this rule exists in the workspace.\n Can be specified multiple times.\n`.trim();t.HELP_DEBUG=`\nUsage: ${a.TITLE_CLI} [global options] debug <file> [options]\n\n Parse a specific feature file and print its JSON Abstract Syntax Tree (AST).\n This command is designed for developers to debug Gherkin feature parsing and Testform's\n filtering behavior.\n\n <file> The filename or partial filename to parse and output.\n\nOptions:\n\n -format <format> Choose between 'gherkin' (raw Gherkin AST) or 'testform' \n (filtered and enriched by Testform). Default is 'testform'.\n`.trim();function getCommandHelp(e){switch(e){case"init":return t.HELP_INIT;case"validate":return t.HELP_VALIDATE;case"plan":return t.HELP_PLAN;case"apply":return t.HELP_APPLY;case"destroy":return t.HELP_DESTROY;case"import":return t.HELP_IMPORT;case"refresh":return t.HELP_REFRESH;case"diff":return t.HELP_DIFF;case"show":return t.HELP_SHOW;case"fmt":return t.HELP_FMT;case"force-unlock":return t.HELP_FORCE_UNLOCK;case"login":return t.HELP_LOGIN;case"workspace":return t.HELP_WORKSPACE;case"report":return t.HELP_REPORT;case"generate":return t.HELP_GENERATE;case"debug":return t.HELP_DEBUG;case"logout":return t.HELP_LOGOUT;case"state":return t.HELP_STATE;case"state identities":return t.HELP_STATE_IDENTITIES;case"state list":return t.HELP_STATE_LIST;case"state mv":return t.HELP_STATE_MV;case"state pull":return t.HELP_STATE_PULL;case"state push":return t.HELP_STATE_PUSH;case"state rm":return t.HELP_STATE_RM;case"state show":return t.HELP_STATE_SHOW;case"taint":return t.HELP_TAINT;case"untaint":return t.HELP_UNTAINT;case"version":return t.HELP_VERSION;default:return null}}},79407:function(module,exports,__nccwpck_require__){"use strict";module=__nccwpck_require__.nmd(module);var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.main=void 0;const arg_1=__importDefault(__nccwpck_require__(840));const chalk_1=__nccwpck_require__(80465);const node_process_1=__nccwpck_require__(1708);const path_1=__nccwpck_require__(16928);const init_1=__nccwpck_require__(70722);const plan_1=__nccwpck_require__(74483);const validate_1=__nccwpck_require__(30010);const apply_1=__nccwpck_require__(8314);const destroy_1=__nccwpck_require__(29540);const show_1=__nccwpck_require__(45765);const refresh_1=__nccwpck_require__(31821);const diff_1=__nccwpck_require__(65083);const import_1=__nccwpck_require__(52541);const force_unlock_1=__nccwpck_require__(23634);const state_1=__nccwpck_require__(61047);const taint_1=__nccwpck_require__(1510);const graph_1=__nccwpck_require__(79478);const fmt_1=__nccwpck_require__(52353);const login_1=__nccwpck_require__(17155);const logout_1=__nccwpck_require__(13834);const workspace_1=__nccwpck_require__(62743);const report_1=__nccwpck_require__(8938);const generate_1=__nccwpck_require__(7651);const debug_1=__nccwpck_require__(66321);const variables_1=__nccwpck_require__(29922);const notify_1=__nccwpck_require__(1622);const chalk_2=__importDefault(__nccwpck_require__(80465));const logger_1=__nccwpck_require__(86999);const const_1=__nccwpck_require__(2560);const help_1=__nccwpck_require__(41244);function compareVersions(e,t){const i=e.split(".").map((e=>Number(e)));const a=t.split(".").map((e=>Number(e)));const o=Math.max(i.length,a.length);for(let e=0;e<o;e++){const t=i.at(e)??0;const o=a.at(e)??0;if(t>o)return 1;if(t<o)return-1}return 0}function printVersion(e=false){const t=process.env.TESTSTATE_LATEST_VERSION;const i=`${node_process_1.platform}_${node_process_1.arch}`;console.log((0,chalk_1.cyan)(`${const_1.TITLE_APP} v${const_1.VERSION_CLI}`));console.log(`on ${i}`);if(e){console.log(`+ Config Version: ${const_1.VERSION_CONFIG} (${const_1.FILE_CONFIG})`);console.log(`+ State Version: ${const_1.VERSION_STATE} (${const_1.FILE_STATE})`)}if(t&&compareVersions(const_1.VERSION_CLI,t)<0){console.log("");console.log(`Your version of ${const_1.TITLE_APP} is out of date! The latest version`);console.log(`is ${t}. You can update from your release source.`)}}function printTooManyArgsForInit(){logger_1.logger.error("Too many command line arguments. Did you mean to use -chdir?")}function ensureNoPositionalArgs(e,t){if(t.length>0){logger_1.logger.error(`Too many command line arguments\n\nTo specify a working directory for the ${e}, use the global -chdir flag.`)}}function isScopeToken(e){if(!e)return false;return["testcase","testrun","testplan"].includes(e.toLowerCase())}function normalizeLongFlags(e){const t=new Set(["chdir","scope","help","verbose","version","auto-approve","out","lock","lock-timeout","input","var","var-file","no-color","json","detailed-exitcode","state","backup","target","destroy","refresh","refresh-only","force","check","list","write","diff","recursive","plan","draw-cycles","type","module-depth","allow-missing","ignore-remote-version","backend","backend-config","force-copy","from-module","get","plugin-dir","reconfigure","lockfile","test-directory","set-status","set-state","replace","compact-warnings","generate-config-out","parallelism","no-tests","query","state-out","config","taint","untaint","workspace","report","format","filter","id","dry-run","apply","field","rule"]);const i={C:"chdir",s:"scope",h:"help",v:"verbose",a:"auto-approve",o:"out"};return e.map((e=>{const a=e.match(/^-([a-zA-Z][a-zA-Z-]*)(=.*)?$/);if(!a)return e;const o=a[1];const d=a[2]||"";if(i[o]){return`--${i[o]}${d}`}const m=o.toLowerCase();if(t.has(m)){return`--${m}${d}`}return e}))}const booleanFlags=new Set(["--help","--verbose","--version","--auto-approve","--lock","--input","--no-color","--json","--detailed-exitcode","--destroy","--refresh","--refresh-only","--force","--check","--list","--write","--diff","--recursive","--draw-cycles","--allow-missing","--ignore-remote-version","--backend","--reconfigure","--migrate-state","--compact-warnings","--no-tests","--dry-run","--apply"]);const main=async()=>{let e;try{const t=normalizeLongFlags(process.argv.slice(2));const i=new Map;const a=[];for(const e of t){const t=e.match(/^(--[a-z][a-z-]*)=(true|false)$/i);if(t&&booleanFlags.has(t[1])){i.set(t[1],t[2].toLowerCase()==="true")}else{a.push(e)}}e=(0,arg_1.default)({"--chdir":String,"--projectId":String,"--scope":String,"--out":String,"--lock-timeout":String,"--var":[String],"--var-file":[String],"--state":String,"--backup":String,"--target":[String],"--plan":String,"--type":String,"--module-depth":String,"--backend-config":[String],"--test-directory":String,"--set-status":[String],"--set-state":[String],"--replace":[String],"--parallelism":String,"--state-out":String,"--config":String,"--taint":[String],"--untaint":[String],"--workspace":String,"--report":String,"--format":String,"--filter":[String],"--id":String,"--field":[String],"--rule":[String],"--help":Boolean,"--verbose":Boolean,"--version":Boolean,"--auto-approve":Boolean,"--lock":Boolean,"--input":Boolean,"--no-color":Boolean,"--json":Boolean,"--detailed-exitcode":Boolean,"--destroy":Boolean,"--refresh":Boolean,"--refresh-only":Boolean,"--force":Boolean,"--check":Boolean,"--list":Boolean,"--write":Boolean,"--diff":Boolean,"--apply":Boolean,"--recursive":Boolean,"--draw-cycles":Boolean,"--allow-missing":Boolean,"--ignore-remote-version":Boolean,"--backend":Boolean,"--reconfigure":Boolean,"--migrate-state":Boolean,"--compact-warnings":Boolean,"--no-tests":Boolean,"--dry-run":Boolean,"-C":"--chdir","-s":"--scope","-h":"--help","-v":"--verbose","-a":"--auto-approve","-o":"--out"},{argv:a});Object.assign(e,Object.fromEntries(i))}catch(e){if(e.code==="ARG_UNKNOWN_OPTION"){console.error(`[31mError: ${e.message}[0m\n`);console.log(`Usage: ${const_1.TITLE_CLI} [global options] <subcommand> [args]\nRun '${const_1.TITLE_CLI} --help' for more information.`);process.exit(1)}throw e}const t=e._.map(String);if(e["--version"]){printVersion(false);process.exit(0)}const i=e._;const a=i[0];const o=i.slice(1);if(e["--help"]){if(a){let e=a;if(a==="state"&&o.length>0){e=`state ${o[0]}`}const t=(0,help_1.getCommandHelp)(e);if(t){console.log(t)}else{console.log(`Unknown command: ${e}\n\n${help_1.HELP_GLOBAL}`)}}else{console.log(help_1.HELP_GLOBAL)}process.exit(0)}if(!a){console.log(help_1.HELP_GLOBAL);process.exit(0)}let d=a.toLowerCase();let m=o;const h=Object.prototype.hasOwnProperty.call(e,"--scope");let P=e["--scope"]||(h?"testcase":"all");if(!h&&["plan","apply","diff","refresh","destroy"].includes(d)){logger_1.logger.warn(`Warning: Scanning all scopes. You can use -scope (testcase|testrun|testplan) to limit the operation.`)}const _=String(e["--chdir"]||".");const L=new variables_1.VariableParser(e["--var"],e["--var-file"],_);if(e["--no-color"]){chalk_2.default.level=0}if(isScopeToken(d)&&t[1]){P=d;d=t[1].toLowerCase();m=t.slice(2)}if(!_){printTooManyArgsForInit();process.exit(1)}const j=Boolean(e["--verbose"]||e["--verbose"]);const U=P;const H=U==="all"?"testcase":U;if(d==="version"){printVersion(true);process.exit(process.exitCode||0)}if(d==="init"){if(m.length>0){printTooManyArgsForInit()}await(0,init_1.initCmd)({dir:_,verbose:j,backendConfigRaw:e["--backend-config"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",reconfigure:e["--reconfigure"],migrateState:e["--migrate-state"],backendEnabled:e["--backend"]??true,isJson:e["--json"],inputEnabled:e["--input"]??true});process.exit(process.exitCode||0)}if(d==="validate"){const t=m.length>0?m[0]:_;if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,validate_1.validateCmd)({targetPath:t,verbose:j,scope:H,variables:L,isJson:e["--json"],testDirectory:e["--test-directory"],noTests:e["--no-tests"],query:e["--query"]});process.exit(process.exitCode||0)}if(d==="plan"){ensureNoPositionalArgs(d,m);await(0,plan_1.planCmd)({dir:_,verbose:j,scope:U,outPath:e["--out"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",variables:L,isJson:e["--json"],detailedExitCode:e["--detailed-exitcode"],statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],destroyPlan:e["--destroy"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="apply"){let t=undefined;if(m.length===1){t=m[0]}else if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,apply_1.applyCmd)({dir:_,autoApprove:Boolean(e["--auto-approve"]||e["--auto-approve"]),verbose:j,scope:U,planFile:t,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,variables:L,statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],setStatus:e["--set-status"]?.[0]||e["--set-state"]?.[0],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="destroy"){ensureNoPositionalArgs(d,m);await(0,destroy_1.destroyCmd)({dir:_,verbose:j,scope:U,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="show"){const t=m[0];await(0,show_1.showCmd)({path:t,isJson:e["--json"],verbose:j,dir:String(e["--chdir"]||"."),statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="refresh"){ensureNoPositionalArgs(d,m);await(0,refresh_1.refreshCmd)({dir:_,verbose:j,scope:U,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"],parallelismRaw:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false});process.exit(process.exitCode||0)}if(d==="diff"){ensureNoPositionalArgs(d,m);await(0,diff_1.diffCmd)({dir:_,verbose:j,scope:U});process.exit(0)}if(d==="import"){if(m.length!==2){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} import [options] ADDR ISSUE_NUMBER`);process.exit(1)}const t=m[0];const i=m[1];await(0,import_1.importCmd)({dir:_,scope:H,identityArg:t,issueNumber:i,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="state"){if(m.length===0){console.log((0,help_1.getCommandHelp)("state"));process.exit(1)}const t=m[0];const i=m.slice(1);await(0,state_1.stateCmd)({dir:_,action:t,args:i,statePath:e["--state"],backupPath:e["--backup"],isJson:e["--json"],id:e["--id"],dryRun:e["--dry-run"],force:e["--force"]});process.exit(process.exitCode||0)}if(d==="taint"||d==="untaint"){if(m.length===0){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} ${d} [options] name`);process.exit(1)}await(0,taint_1.taintCmd)({dir:_,action:d,identityRaw:m[0],statePath:e["--state"],backupPath:e["--backup"],allowMissing:e["--allow-missing"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s"});process.exit(process.exitCode||0)}if(d==="workspace"){await(0,workspace_1.workspaceCmd)({dir:_,verbose:j,args:m});process.exit(process.exitCode||0)}if(d==="force-unlock"){if(m.length!==1){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} force-unlock [options] LOCK_ID`);process.exit(1)}await(0,force_unlock_1.forceUnlockCmd)({dir:_,lockId:m[0],force:e["--force"],statePath:e["--state"]});process.exit(process.exitCode||0)}if(d==="graph"){if(e["--help"]){const{HELP_GRAPH:e}=__nccwpck_require__(41244);console.log(e);process.exit(0)}ensureNoPositionalArgs(d,m);await(0,graph_1.graphCmd)({dir:_,scope:H,drawCycles:e["--draw-cycles"]});process.exit(process.exitCode||0)}if(d==="report"){const t=m.length>0?m[0]:"raw";await(0,report_1.reportCmd)({dir:_,type:t,format:e["--format"]||"md",filter:e["--filter"]||[],fields:e["--field"]||[],apply:e["--apply"],out:e["--out"],statePath:e["--state"]});process.exit(0)}if(d==="generate"){let t=undefined;let i=undefined;const a=Object.prototype.hasOwnProperty.call(e,"--scope");if(m.length>0){const e=m[0].toLowerCase();if(["testcase","testrun","testplan"].includes(e)){t=e;i=m.slice(1).join(" ")}else{i=m.join(" ")}}if(!t&&a){t=String(e["--scope"])}if(!t){logger_1.logger.error(`Usage: testform generate <scope> [title]\n\nYou must specify the scope either as the first argument or using the -scope flag (e.g., -scope=testrun).`);process.exit(1)}if(!["testcase","testrun","testplan"].includes(t)){logger_1.logger.error(`Invalid scope '${t}'. Must be one of: testcase, testrun, testplan.`);process.exit(1)}if(!i)i=undefined;await(0,generate_1.generateCmd)({dir:_,scope:t,title:i,rules:e["--rule"]||[]});process.exit(process.exitCode||0)}if(d==="fmt"){const t=e["--test-directory"]?(0,path_1.resolve)(_,e["--test-directory"]):_;const i=m.length>0?(0,path_1.resolve)(_,m[0]):t;await(0,fmt_1.fmtCmd)({dir:i,check:e["--check"],list:e["--list"]??true,write:e["--write"]??true,recursive:e["--recursive"]});process.exit(process.exitCode||0)}if(d==="debug"){if(m.length===0){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} debug <file> [options]`);process.exit(1)}await(0,debug_1.debugCmd)({dir:_,file:m[0],format:e["--format"]||"testform",scope:H,variables:L});process.exit(process.exitCode||0)}if(d==="login"){const e=m.length>0?m[0]:"github.com";await(0,login_1.loginCmd)({hostname:e});process.exit(process.exitCode||0)}if(d==="logout"){const e=m.length>0?m[0]:"github.com";await(0,logout_1.logoutCmd)({hostname:e});process.exit(process.exitCode||0)}console.log(help_1.HELP_GLOBAL);process.exit(1)};exports.main=main;if(require.main===require.cache[eval("__filename")]||!module.parent){main().catch((e=>{notify_1.notify.push({type:"error",title:e.name,detail:[e.message]})}))}},86999:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.Logger=void 0;const a=i(80465);class Logger{verbose=false;isJson=false;constructor(e=false,t=false){this.verbose=e;this.isJson=t}applyStyle(e,t){let i=e;if(t?.bold)i=(0,a.bold)(i);if(t?.dim)i=(0,a.dim)(i);return i}emitJson(e,t,i){const a={"@level":e,"@message":t,"@module":"testform.ui","@timestamp":(new Date).toISOString(),type:"log"};if(i){a.data=i}console.log(JSON.stringify(a))}formatMessage(e){return Array.isArray(e)?e.join("\n"):e}debug(e,t){if(!this.verbose)return;const i=this.formatMessage(e);if(this.isJson){this.emitJson("debug",i,t?.data);return}const o=t?.prefix!==false;const d=o?(0,a.dim)(`[DEBUG] `):"";const m=this.applyStyle(i,t);console.log(`${d}${(0,a.gray)(m)}`);if(t?.data)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}info(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("info",i,t?.data);return}const o=t?.prefix===true;const d=o?(0,a.cyan)(`[INFO] `):"";const m=this.applyStyle(i,t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}success(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("info",i,t?.data);return}const o=t?.prefix===true;const d=o?(0,a.green)(`[✓] `):"";const m=this.applyStyle((0,a.green)(i),t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,a.gray)(JSON.stringify(t.data,null,2)))}warn(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("warn",i,t?.data);return}console.error((0,a.yellow)("╷"));const o=(0,a.bold)((0,a.yellow)("Warning:"));const d=this.applyStyle(i,t);console.error(`${(0,a.yellow)("│")} ${o} ${d}`);if(t?.data&&this.verbose){console.error((0,a.yellow)("│"));const e=JSON.stringify(t.data,null,2);e.split("\n").forEach((e=>console.error(`${(0,a.yellow)("│")} ${e}`)))}console.error((0,a.yellow)("╵"))}error(e,t){const i=this.formatMessage(e);if(this.isJson){this.emitJson("error",i,t?t instanceof Error?t.stack:t:undefined);process.exit(1);return}console.error((0,a.red)("╷"));const o=(0,a.bold)((0,a.red)("Error:"));const d=i.split("\n");console.error(`${(0,a.red)("│")} ${o} ${(0,a.bold)(d[0])}`);for(let e=1;e<d.length;e++){console.error(`${(0,a.red)("│")} ${d[e]}`)}if(t){console.error((0,a.red)("│"));if(t instanceof Error){console.error(`${(0,a.red)("│")} ${t.message}`);if(this.verbose&&t.stack){t.stack.split("\n").forEach((e=>console.error(`${(0,a.red)("│")} ${(0,a.dim)(e)}`)))}}else if(typeof t==="object"){const e=JSON.stringify(t,null,2);e.split("\n").forEach((e=>console.error(`${(0,a.red)("│")} ${e}`)))}else{console.error(`${(0,a.red)("│")} ${String(t)}`)}}console.error((0,a.red)("╵"));process.exit(1)}blank(){if(this.isJson)return;console.log("")}}t.Logger=Logger;t.logger=new Logger},1622:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.notify=void 0;const a=i(80465);class Notify{push(e){const t=e.type==="warning";const i=t?(0,a.bold)((0,a.yellow)("Warning:")):(0,a.bold)((0,a.red)("Error:"));const o=t?a.yellow:a.red;const d=(0,a.bold)(e.title);const m=e.close??false;console.log(o("╷"));console.log(`${o("│")} ${i} ${d}`);console.log(o("│"));if(e.detail){const t=e.detail;for(const e of t){console.log(`${o("│")} ${e}`)}}if(e.extra){const t=e.extra;for(const e of t){console.log(`${o("│")} ${e}`)}}console.log(o("╵"));if(m)process.exit(1)}refresh(e,t){const i=t?(0,a.dim)(`[id=${t}]`):"";console.log(`${(0,a.cyan)(e)}: Refreshing state... ${i}`)}}t.notify=new Notify},42078:module=>{module.exports=eval("require")("encoding")},42613:e=>{"use strict";e.exports=require("assert")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},76982:e=>{"use strict";e.exports=require("crypto")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},16698:e=>{"use strict";e.exports=require("node:async_hooks")},4573:e=>{"use strict";e.exports=require("node:buffer")},31421:e=>{"use strict";e.exports=require("node:child_process")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},37067:e=>{"use strict";e.exports=require("node:http")},32467:e=>{"use strict";e.exports=require("node:http2")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},76760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},73136:e=>{"use strict";e.exports=require("node:url")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},24876:e=>{"use strict";e.exports=require("punycode")},83480:e=>{"use strict";e.exports=require("querystring")},23785:e=>{"use strict";e.exports=require("readline")},2203:e=>{"use strict";e.exports=require("stream")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},43106:e=>{"use strict";e.exports=require("zlib")},59192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},83134:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var a=i(59192);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return a.AbortError}})},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{_key;get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const a=i(87779);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}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,a.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const a=i(87779);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}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,a.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var a=i(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return a.AzureKeyCredential}});var o=i(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return o.isKeyCredential}});var d=i(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var m=i(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return m.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return m.isSASCredential}});var h=i(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return h.isTokenCredential}})},99155:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const a=i(87779);function isKeyCredential(e){return(0,a.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;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)}},17698:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const a=i(89994);const o=i(20741);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 i=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return i.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:i}=e;const d=e.logger||a.logger;const m=i.headers.get("WWW-Authenticate");if(!m){d.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const h=parseCAEChallenge(m)||[];const P=h.find((e=>e.claims));if(!P){d.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const _=await e.getAccessToken(P.scope?[P.scope]:t,{claims:(0,o.decodeStringToString)(P.claims)});if(!_){return false}e.request.headers.set("Authorization",`${_.tokenType??"Bearer"} ${_.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const i={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 a=getChallenge(e.response);if(a){const o=parseChallenge(a);const d=buildScopes(e,o);const m=extractTenantId(o);if(!m){return false}const h=await e.getAccessToken(d,{...t,tenantId:m});if(!h){return false}e.request.headers.set(i.HeaderConstants.AUTHORIZATION,`${h.tokenType??"Bearer"} ${h.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const i=t.pathname.split("/");const a=i[1];if(a&&isUuid(a)){return a}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const a=new URL(t.resource_id);a.pathname=i.DefaultScope;let o=a.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}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 i=`${t.trim()} `.split(" ").filter((e=>e));const a=i.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return a.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;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 decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const a=i(56058);const o=i(20778);const d=i(31530);const m=i(19688);const h=["application/json","text/json"];const P=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){const i=e.expectedContentTypes?.json??h;const o=e.expectedContentTypes?.xml??P;const d=e.parseXML;const m=e.serializerOptions;const _={xml:{rootName:m?.xml.rootName??"",includeRoot:m?.xml.includeRoot??false,xmlCharKey:m?.xml.xmlCharKey??a.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const a=await t(e);return deserializeResponseBody(i,o,a,_,d)}}}function getOperationResponseMap(e){let t;const i=e.request;const a=(0,m.getOperationRequestInfo)(i);const o=a?.operationSpec;if(o){if(!a?.operationResponseGetter){t=o.responses[e.status]}else{t=a?.operationResponseGetter(o,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const i=(0,m.getOperationRequestInfo)(t);const a=i?.shouldDeserialize;let o;if(a===undefined){o=true}else if(typeof a==="boolean"){o=a}else{o=a(e)}return o}async function deserializeResponseBody(e,t,i,a,h){const P=await parse(e,t,i,a,h);if(!shouldDeserializeResponse(P)){return P}const _=(0,m.getOperationRequestInfo)(P.request);const L=_?.operationSpec;if(!L||!L.responses){return P}const j=getOperationResponseMap(P);const{error:U,shouldReturnResponse:H}=handleErrorResponse(P,L,j,a);if(U){throw U}else if(H){return P}if(j){if(j.bodyMapper){let e=P.parsedBody;if(L.isXML&&j.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[j.bodyMapper.xmlElementName]:[]}try{P.parsedBody=L.serializer.deserialize(j.bodyMapper,e,"operationRes.parsedBody",a)}catch(e){const t=new o.RestError(`Error ${e} occurred in deserializing the responseBody - ${P.bodyAsText}`,{statusCode:P.status,request:P.request,response:P});throw t}}else if(L.httpMethod==="HEAD"){P.parsedBody=i.status>=200&&i.status<300}if(j.headersMapper){P.parsedHeaders=L.serializer.deserialize(j.headersMapper,P.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return P}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,i,a){const m=200<=e.status&&e.status<300;const h=isOperationSpecEmpty(t)?m:!!i;if(h){if(i){if(!i.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const P=i??t.responses.default;const _=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const L=new o.RestError(_,{statusCode:e.status,request:e.request,response:e});if(!P&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw L}const j=P?.bodyMapper;const U=P?.headersMapper;try{if(e.parsedBody){const i=e.parsedBody;let o;if(j){let e=i;if(t.isXML&&j.type.name===d.MapperTypeNames.Sequence){e=[];const t=j.xmlElementName;if(typeof i==="object"&&t){e=i[t]}}o=t.serializer.deserialize(j,e,"error.response.parsedBody",a)}const m=i.error||o||i;L.code=m.code;if(m.message){L.message=m.message}if(j){L.response.parsedBody=o}}if(e.headers&&U){L.response.parsedHeaders=t.serializer.deserialize(U,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){L.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:L,shouldReturnResponse:false}}async function parse(e,t,i,a,d){if(!i.request.streamResponseStatusCodes?.has(i.status)&&i.bodyAsText){const m=i.bodyAsText;const h=i.headers.get("Content-Type")||"";const P=!h?[]:h.split(";").map((e=>e.toLowerCase()));try{if(P.length===0||P.some((t=>e.indexOf(t)!==-1))){i.parsedBody=JSON.parse(m);return i}else if(P.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(m,a.xml);i.parsedBody=e;return i}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${i.bodyAsText}.`;const a=e.code||o.RestError.PARSE_ERROR;const d=new o.RestError(t,{code:a,statusCode:i.status,request:i.request,response:i});throw d}}return i}},26323:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const a=i(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,a.createDefaultHttpClient)()}return o}},60160:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var a=i(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return a.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return a.MapperTypeNames}});var o=i(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return o.ServiceClient}});var d=i(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var m=i(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return m.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return m.XML_CHARKEY}});var h=i(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return h.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return h.deserializationPolicyName}});var P=i(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return P.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return P.serializationPolicyName}});var _=i(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return _.authorizeRequestOnClaimChallenge}});var L=i(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return L.authorizeRequestOnTenantChallenge}})},92066:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const a=i(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const i in e.responses){const o=e.responses[i];if(o.bodyMapper&&o.bodyMapper.type.name===a.MapperTypeNames.Stream){t.add(Number(i))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:i}=e;let a;if(typeof t==="string"){a=t}else if(Array.isArray(t)){a=t.join(".")}else{a=i.serializedName}return a}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("core-client")},19688:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const a=i(33345);function getOperationArgumentValueFromParameter(e,t,i){let a=t.parameterPath;const o=t.mapper;let d;if(typeof a==="string"){a=[a]}if(Array.isArray(a)){if(a.length>0){if(o.isConstant){d=o.defaultValue}else{let t=getPropertyFromParameterPath(e,a);if(!t.propertyFound&&i){t=getPropertyFromParameterPath(i,a)}let m=false;if(!t.propertyFound){m=o.required||a[0]==="options"&&a.length===2}d=m?o.defaultValue:t.propertyValue}}}else{if(o.required){d={}}for(const t in a){const m=o.type.modelProperties[t];const h=a[t];const P=getOperationArgumentValueFromParameter(e,{parameterPath:h,mapper:m},i);if(P!==undefined){if(!d){d={}}d[t]=P}}}return d}function getPropertyFromParameterPath(e,t){const i={propertyFound:false};let a=0;for(;a<t.length;++a){const i=t[a];if(e&&i in e){e=e[i]}else{break}}if(a===t.length){i.propertyValue=e;i.propertyFound=true}return i}const o=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return o in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[o])}let t=a.state.operationRequestMap.get(e);if(!t){t={};a.state.operationRequestMap.set(e,t)}return t}},74136:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const a=i(90111);const o=i(20778);const d=i(56234);function createClientPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e??{});if(e.credentialOptions){t.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,a.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const a=i(56058);const o=i(19688);const d=i(31530);const m=i(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const i=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const a=(0,o.getOperationRequestInfo)(e);const d=a?.operationSpec;const m=a?.operationArguments;if(d&&m){serializeHeaders(e,m,d);serializeRequestBody(e,m,d,i)}return t(e)}}}function serializeHeaders(e,t,i){if(i.headerParameters){for(const a of i.headerParameters){let d=(0,o.getOperationArgumentValueFromParameter)(t,a);if(d!==null&&d!==undefined||a.mapper.required){d=i.serializer.serialize(a.mapper,d,(0,m.getPathStringFromParameter)(a));const t=a.mapper.headerCollectionPrefix;if(t){for(const i of Object.keys(d)){e.headers.set(t+i,d[i])}}else{e.headers.set(a.mapper.serializedName||(0,m.getPathStringFromParameter)(a),d)}}}}const a=t.options?.requestOptions?.customHeaders;if(a){for(const t of Object.keys(a)){e.headers.set(t,a[t])}}}function serializeRequestBody(e,t,i,h=function(){throw new Error("XML serialization unsupported!")}){const P=t.options?.serializerOptions;const _={xml:{rootName:P?.xml.rootName??"",includeRoot:P?.xml.includeRoot??false,xmlCharKey:P?.xml.xmlCharKey??a.XML_CHARKEY}};const L=_.xml.xmlCharKey;if(i.requestBody&&i.requestBody.mapper){e.body=(0,o.getOperationArgumentValueFromParameter)(t,i.requestBody);const a=i.requestBody.mapper;const{required:P,serializedName:j,xmlName:U,xmlElementName:H,xmlNamespace:V,xmlNamespacePrefix:K,nullable:W}=a;const J=a.type.name;try{if(e.body!==undefined&&e.body!==null||W&&e.body===null||P){const t=(0,m.getPathStringFromParameter)(i.requestBody);e.body=i.serializer.serialize(a,e.body,t,_);const o=J===d.MapperTypeNames.Stream;if(i.isXML){const t=K?`xmlns:${K}`:"xmlns";const i=getXmlValueWithNamespace(V,t,J,e.body,_);if(J===d.MapperTypeNames.Sequence){e.body=h(prepareXMLRootList(i,H||U||j,t,V),{rootName:U||j,xmlCharKey:L})}else if(!o){e.body=h(i,{rootName:U||j,xmlCharKey:L})}}else if(J===d.MapperTypeNames.String&&(i.contentType?.match("text/plain")||i.mediaType==="text")){return}else if(!o){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(j,undefined," ")}.`)}}else if(i.formDataParameters&&i.formDataParameters.length>0){e.formData={};for(const a of i.formDataParameters){const d=(0,o.getOperationArgumentValueFromParameter)(t,a);if(d!==undefined&&d!==null){const t=a.mapper.serializedName||(0,m.getPathStringFromParameter)(a);e.formData[t]=i.serializer.serialize(a.mapper,d,(0,m.getPathStringFromParameter)(a),_)}}}}function getXmlValueWithNamespace(e,t,i,o,d){if(e&&!["Composite","Sequence","Dictionary"].includes(i)){const i={};i[d.xml.xmlCharKey]=o;i[a.XML_ATTRKEY]={[t]:e};return i}return o}function prepareXMLRootList(e,t,i,o){if(!Array.isArray(e)){e=[e]}if(!i||!o){return{[t]:e}}const d={[t]:e};d[a.XML_ATTRKEY]={[i]:o};return d}},31530:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const a=i(61860);const o=a.__importStar(i(20741));const d=i(56058);const m=i(31193);class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,i){const failValidation=(e,a)=>{throw new Error(`"${i}" with value "${t}" should satisfy the constraint "${e}": ${a}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:i,ExclusiveMinimum:a,InclusiveMaximum:o,InclusiveMinimum:d,MaxItems:m,MaxLength:h,MinItems:P,MinLength:_,MultipleOf:L,Pattern:j,UniqueItems:U}=e.constraints;if(i!==undefined&&t>=i){failValidation("ExclusiveMaximum",i)}if(a!==undefined&&t<=a){failValidation("ExclusiveMinimum",a)}if(o!==undefined&&t>o){failValidation("InclusiveMaximum",o)}if(d!==undefined&&t<d){failValidation("InclusiveMinimum",d)}if(m!==undefined&&t.length>m){failValidation("MaxItems",m)}if(h!==undefined&&t.length>h){failValidation("MaxLength",h)}if(P!==undefined&&t.length<P){failValidation("MinItems",P)}if(_!==undefined&&t.length<_){failValidation("MinLength",_)}if(L!==undefined&&t%L!==0){failValidation("MultipleOf",L)}if(j){const e=typeof j==="string"?new RegExp(j):j;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",j)}}if(U&&t.some(((e,t,i)=>i.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,i,a={xml:{}}){const o={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??d.XML_CHARKEY}};let m={};const h=e.type.name;if(!i){i=e.serializedName}if(h.match(/^Sequence$/i)!==null){m=[]}if(e.isConstant){t=e.defaultValue}const{required:P,nullable:_}=e;if(P&&_&&t===undefined){throw new Error(`${i} cannot be undefined.`)}if(P&&!_&&(t===undefined||t===null)){throw new Error(`${i} cannot be null or undefined.`)}if(!P&&_===false&&t===null){throw new Error(`${i} cannot be null.`)}if(t===undefined||t===null){m=t}else{if(h.match(/^any$/i)!==null){m=t}else if(h.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){m=serializeBasicTypes(h,i,t)}else if(h.match(/^Enum$/i)!==null){const a=e;m=serializeEnumType(i,a.type.allowedValues,t)}else if(h.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){m=serializeDateTypes(h,t,i)}else if(h.match(/^ByteArray$/i)!==null){m=serializeByteArrayType(i,t)}else if(h.match(/^Base64Url$/i)!==null){m=serializeBase64UrlType(i,t)}else if(h.match(/^Sequence$/i)!==null){m=serializeSequenceType(this,e,t,i,Boolean(this.isXML),o)}else if(h.match(/^Dictionary$/i)!==null){m=serializeDictionaryType(this,e,t,i,Boolean(this.isXML),o)}else if(h.match(/^Composite$/i)!==null){m=serializeCompositeType(this,e,t,i,Boolean(this.isXML),o)}}return m}deserialize(e,t,i,a={xml:{}}){const m={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??d.XML_CHARKEY},ignoreUnknownProperties:a.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 h;const P=e.type.name;if(!i){i=e.serializedName}if(P.match(/^Composite$/i)!==null){h=deserializeCompositeType(this,e,t,i,m)}else{if(this.isXML){const e=m.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(P.match(/^Number$/i)!==null){h=parseFloat(t);if(isNaN(h)){h=t}}else if(P.match(/^Boolean$/i)!==null){if(t==="true"){h=true}else if(t==="false"){h=false}else{h=t}}else if(P.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){h=t}else if(P.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){h=new Date(t)}else if(P.match(/^UnixTime$/i)!==null){h=unixTimeToDate(t)}else if(P.match(/^ByteArray$/i)!==null){h=o.decodeString(t)}else if(P.match(/^Base64Url$/i)!==null){h=base64UrlToByteArray(t)}else if(P.match(/^Sequence$/i)!==null){h=deserializeSequenceType(this,e,t,i,m)}else if(P.match(/^Dictionary$/i)!==null){h=deserializeDictionaryType(this,e,t,i,m)}}if(e.isConstant){h=e.defaultValue}return h}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let i=e.length;while(i-1>=0&&e[i-1]===t){--i}return e.substr(0,i)}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=o.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 o.decodeString(e)}function splitSerializeName(e){const t=[];let i="";if(e){const a=e.split(".");for(const e of a){if(e.charAt(e.length-1)==="\\"){i+=e.substr(0,e.length-1)+"."}else{i+=e;t.push(i);i=""}}}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,i){if(i!==null&&i!==undefined){if(e.match(/^Number$/i)!==null){if(typeof i!=="number"){throw new Error(`${t} with value ${i} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof i.valueOf()!=="string"){throw new Error(`${t} with value "${i}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof i.valueOf()==="string"&&(0,m.isValidUuid)(i))){throw new Error(`${t} with value "${i}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof i!=="boolean"){throw new Error(`${t} with value ${i} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof i;if(e!=="string"&&typeof i.pipe!=="function"&&typeof i.tee!=="function"&&!(i instanceof ArrayBuffer)&&!ArrayBuffer.isView(i)&&!((typeof Blob==="function"||typeof Blob==="object")&&i instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return i}function serializeEnumType(e,t,i){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const a=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===i.toLowerCase()}return e===i}));if(!a){throw new Error(`${i} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return i}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=o.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,i){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(`${i} 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(`${i} 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(`${i} 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(`${i} 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(!(0,m.isDuration)(t)){throw new Error(`${i} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,i,a,o,m){if(!Array.isArray(i)){throw new Error(`${a} must be of type Array.`)}let h=t.type.element;if(!h||typeof h!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}if(h.type.name==="Composite"&&h.type.className){h=e.modelMappers[h.type.className]??h}const P=[];for(let t=0;t<i.length;t++){const _=e.serialize(h,i[t],a,m);if(o&&h.xmlNamespace){const e=h.xmlNamespacePrefix?`xmlns:${h.xmlNamespacePrefix}`:"xmlns";if(h.type.name==="Composite"){P[t]={..._};P[t][d.XML_ATTRKEY]={[e]:h.xmlNamespace}}else{P[t]={};P[t][m.xml.xmlCharKey]=_;P[t][d.XML_ATTRKEY]={[e]:h.xmlNamespace}}}else{P[t]=_}}return P}function serializeDictionaryType(e,t,i,a,o,m){if(typeof i!=="object"){throw new Error(`${a} must be of type object.`)}const h=t.type.value;if(!h||typeof h!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const P={};for(const t of Object.keys(i)){const d=e.serialize(h,i[t],a,m);P[t]=getXmlObjectValue(h,d,o,m)}if(o&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const i=P;i[d.XML_ATTRKEY]={[e]:t.xmlNamespace};return i}return P}function resolveAdditionalProperties(e,t,i){const a=t.type.additionalProperties;if(!a&&t.type.className){const a=resolveReferencedMapper(e,t,i);return a?.type.additionalProperties}return a}function resolveReferencedMapper(e,t,i){const a=t.type.className;if(!a){throw new Error(`Class name for model "${i}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[a]}function resolveModelProperties(e,t,i){let a=t.type.modelProperties;if(!a){const o=resolveReferencedMapper(e,t,i);if(!o){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}a=o?.type.modelProperties;if(!a){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(o)}" of type "${t.type.className}" for object "${i}".`)}}return a}function serializeCompositeType(e,t,i,a,o,m){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,i,"clientName")}if(i!==undefined&&i!==null){const h={};const P=resolveModelProperties(e,t,a);for(const _ of Object.keys(P)){const L=P[_];if(L.readOnly){continue}let j;let U=h;if(e.isXML){if(L.xmlIsWrapped){j=L.xmlName}else{j=L.xmlElementName||L.xmlName}}else{const e=splitSerializeName(L.serializedName);j=e.pop();for(const t of e){const e=U[t];if((e===undefined||e===null)&&(i[_]!==undefined&&i[_]!==null||L.defaultValue!==undefined)){U[t]={}}U=U[t]}}if(U!==undefined&&U!==null){if(o&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";U[d.XML_ATTRKEY]={...U[d.XML_ATTRKEY],[e]:t.xmlNamespace}}const h=L.serializedName!==""?a+"."+L.serializedName:a;let P=i[_];const H=getPolymorphicDiscriminatorRecursively(e,t);if(H&&H.clientName===_&&(P===undefined||P===null)){P=t.serializedName}const V=e.serialize(L,P,h,m);if(V!==undefined&&j!==undefined&&j!==null){const e=getXmlObjectValue(L,V,o,m);if(o&&L.xmlIsAttribute){U[d.XML_ATTRKEY]=U[d.XML_ATTRKEY]||{};U[d.XML_ATTRKEY][j]=V}else if(o&&L.xmlIsWrapped){U[j]={[L.xmlElementName]:e}}else{U[j]=e}}}}const _=resolveAdditionalProperties(e,t,a);if(_){const t=Object.keys(P);for(const o in i){const d=t.every((e=>e!==o));if(d){h[o]=e.serialize(_,i[o],a+'["'+o+'"]',m)}}}return h}return i}function getXmlObjectValue(e,t,i,a){if(!i||!e.xmlNamespace){return t}const o=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const m={[o]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e={...t};e[d.XML_ATTRKEY]=m;return e}}const h={};h[a.xml.xmlCharKey]=t;h[d.XML_ATTRKEY]=m;return h}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,i,a,o){const m=o.xml.xmlCharKey??d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,i,"serializedName")}const h=resolveModelProperties(e,t,a);let P={};const _=[];for(const L of Object.keys(h)){const j=h[L];const U=splitSerializeName(h[L].serializedName);_.push(U[0]);const{serializedName:H,xmlName:V,xmlElementName:K}=j;let W=a;if(H!==""&&H!==undefined){W=a+"."+H}const J=j.headerCollectionPrefix;if(J){const t={};for(const a of Object.keys(i)){if(a.startsWith(J)){t[a.substring(J.length)]=e.deserialize(j.type.value,i[a],W,o)}_.push(a)}P[L]=t}else if(e.isXML){if(j.xmlIsAttribute&&i[d.XML_ATTRKEY]){P[L]=e.deserialize(j,i[d.XML_ATTRKEY][V],W,o)}else if(j.xmlIsMsText){if(i[m]!==undefined){P[L]=i[m]}else if(typeof i==="string"){P[L]=i}}else{const t=K||V||H;if(j.xmlIsWrapped){const t=i[V];const a=t?.[K]??[];P[L]=e.deserialize(j,a,W,o);_.push(V)}else{const a=i[t];P[L]=e.deserialize(j,a,W,o);_.push(t)}}}else{let a;let d=i;let m=0;for(const e of U){if(!d)break;m++;d=d[e]}if(d===null&&m<U.length){d=undefined}a=d;const _=t.type.polymorphicDiscriminator;if(_&&L===_.clientName&&(a===undefined||a===null)){a=t.serializedName}let H;if(Array.isArray(i[L])&&h[L].serializedName===""){a=i[L];const t=e.deserialize(j,a,W,o);for(const[e,i]of Object.entries(P)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=i}}P=t}else if(a!==undefined||j.defaultValue!==undefined){H=e.deserialize(j,a,W,o);P[L]=H}}}const L=t.type.additionalProperties;if(L){const isAdditionalProperty=e=>{for(const t in h){const i=splitSerializeName(h[t].serializedName);if(i[0]===e){return false}}return true};for(const t in i){if(isAdditionalProperty(t)){P[t]=e.deserialize(L,i[t],a+'["'+t+'"]',o)}}}else if(i&&!o.ignoreUnknownProperties){for(const e of Object.keys(i)){if(P[e]===undefined&&!_.includes(e)&&!isSpecialXmlProperty(e,o)){P[e]=i[e]}}}return P}function deserializeDictionaryType(e,t,i,a,o){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){const t={};for(const m of Object.keys(i)){t[m]=e.deserialize(d,i[m],a,o)}return t}return i}function deserializeSequenceType(e,t,i,a,o){let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){if(!Array.isArray(i)){i=[i]}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const t=[];for(let m=0;m<i.length;m++){t[m]=e.deserialize(d,i[m],`${a}[${m}]`,o)}return t}return i}function getIndexDiscriminator(e,t,i){const a=[i];while(a.length){const i=a.shift();const o=t===i?t:i+"."+t;if(Object.prototype.hasOwnProperty.call(e,o)){return e[o]}else{for(const[t,o]of Object.entries(e)){if(t.startsWith(i+".")&&o.type.uberParent===i&&o.type.className){a.push(o.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,i,a){const o=getPolymorphicDiscriminatorRecursively(e,t);if(o){let d=o[a];if(d){if(a==="serializedName"){d=d.replace(/\\/gi,"")}const o=i[d];const m=t.type.uberParent??t.type.className;if(typeof o==="string"&&m){const i=getIndexDiscriminator(e.modelMappers.discriminators,o,m);if(i){t=i}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}t.MapperTypeNames={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"}},89544:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const a=i(20778);const o=i(74136);const d=i(31193);const m=i(26323);const h=i(19688);const P=i(61752);const _=i(92066);const L=i(89994);class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){L.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,m.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:i}of e.additionalPolicies){const e=i==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const i=t.baseUrl||this._endpoint;if(!i){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 o=(0,P.getRequestUrl)(i,t,e,this);const m=(0,a.createPipelineRequest)({url:o});m.method=t.httpMethod;const L=(0,h.getOperationRequestInfo)(m);L.operationSpec=t;L.operationArguments=e;const j=t.contentType||this._requestContentType;if(j&&t.requestBody){m.headers.set("Content-Type",j)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){m.timeout=e.timeout}if(e.onUploadProgress){m.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){m.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){L.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){m.allowInsecureConnection=true}}if(U.abortSignal){m.abortSignal=U.abortSignal}if(U.tracingOptions){m.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){m.allowInsecureConnection=true}if(m.streamResponseStatusCodes===undefined){m.streamResponseStatusCodes=(0,_.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(m);const i=(0,d.flattenResponse)(e,t.responses[e.status]);if(U?.onResponse){U.onResponse(e,i)}return i}catch(e){if(typeof e==="object"&&e?.response){const i=e.response;const a=(0,d.flattenResponse)(i,t.responses[e.statusCode]||t.responses["default"]);e.details=a;if(U?.onResponse){U.onResponse(i,a,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const i=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,o.createClientPipeline)({...e,credentialOptions:i})}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}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const a=i(19688);const o=i(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,i,a){const o=calculateUrlReplacements(t,i,a);let d=false;let m=replaceAll(e,o);if(t.path){let e=replaceAll(t.path,o);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){m=e;d=true}else{m=appendPath(m,e)}}const{queryParams:h,sequenceParams:P}=calculateQueryParameters(t,i,a);m=appendQueryParams(m,h,P,d);return m}function replaceAll(e,t){let i=e;for(const[e,a]of t){i=i.split(e).join(a)}return i}function calculateUrlReplacements(e,t,i){const d=new Map;if(e.urlParameters?.length){for(const m of e.urlParameters){let h=(0,a.getOperationArgumentValueFromParameter)(t,m,i);const P=(0,o.getPathStringFromParameter)(m);h=e.serializer.serialize(m.mapper,h,P);if(!m.skipEncoding){h=encodeURIComponent(h)}d.set(`{${m.mapper.serializedName||P}}`,h)}}return d}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const i=new URL(e);let a=i.pathname;if(!a.endsWith("/")){a=`${a}/`}if(t.startsWith("/")){t=t.substring(1)}const o=t.indexOf("?");if(o!==-1){const e=t.substring(0,o);const d=t.substring(o+1);a=a+e;if(d){i.search=i.search?`${i.search}&${d}`:d}}else{a=a+t}i.pathname=a;return i.toString()}function calculateQueryParameters(e,t,i){const m=new Map;const h=new Set;if(e.queryParameters?.length){for(const P of e.queryParameters){if(P.mapper.type.name==="Sequence"&&P.mapper.serializedName){h.add(P.mapper.serializedName)}let _=(0,a.getOperationArgumentValueFromParameter)(t,P,i);if(_!==undefined&&_!==null||P.mapper.required){_=e.serializer.serialize(P.mapper,_,(0,o.getPathStringFromParameter)(P));const t=P.collectionFormat?d[P.collectionFormat]:"";if(Array.isArray(_)){_=_.map((e=>{if(e===null||e===undefined){return""}return e}))}if(P.collectionFormat==="Multi"&&_.length===0){continue}else if(Array.isArray(_)&&(P.collectionFormat==="SSV"||P.collectionFormat==="TSV")){_=_.join(t)}if(!P.skipEncoding){if(Array.isArray(_)){_=_.map((e=>encodeURIComponent(e)))}else{_=encodeURIComponent(_)}}if(Array.isArray(_)&&(P.collectionFormat==="CSV"||P.collectionFormat==="Pipes")){_=_.join(t)}m.set(P.mapper.serializedName||(0,o.getPathStringFromParameter)(P),_)}}}return{queryParams:m,sequenceParams:h}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const i=e.split("&");for(const e of i){const[i,a]=e.split("=",2);const o=t.get(i);if(o){if(Array.isArray(o)){o.push(a)}else{t.set(i,[o,a])}}else{t.set(i,a)}}return t}function appendQueryParams(e,t,i,a=false){if(t.size===0){return e}const o=new URL(e);const d=simpleParseQueryParams(o.search);for(const[e,o]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(o)){t.push(...o);const i=new Set(t);d.set(e,Array.from(i))}else{t.push(o)}}else if(t){if(Array.isArray(o)){o.unshift(t)}else if(i.has(e)){d.set(e,[t,o])}if(!a){d.set(e,o)}}else{d.set(e,o)}}const m=[];for(const[e,t]of d){if(typeof t==="string"){m.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const i of t){m.push(`${e}=${i}`)}}else{m.push(`${e}=${t}`)}}o.search=m.length?`?${m.join("&")}`:"";return o.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;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 i=/^(-|\+)?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 i.test(e)}const a=/^[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 a.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 i=e.parsedHeaders;if(e.request.method==="HEAD"){return{...i,body:e.parsedBody}}const a=t&&t.bodyMapper;const o=Boolean(a?.nullable);const d=a?.type.name;if(d==="Stream"){return{...i,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const m=d==="Composite"&&a.type.modelProperties||{};const h=Object.keys(m).some((e=>m[e].serializedName===""));if(d==="Sequence"||h){const t=e.parsedBody??[];for(const i of Object.keys(m)){if(m[i].serializedName){t[i]=e.parsedBody?.[i]}}if(i){for(const e of Object.keys(i)){t[e]=i[e]}}return o&&!e.parsedBody&&!i&&Object.getOwnPropertyNames(m).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:i,hasNullableType:o,shouldWrapBody:isPrimitiveBody(e.parsedBody,d)})}},95492:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{ExtendedServiceClient:()=>ExtendedServiceClient});e.exports=__toCommonJS(h);var P=i(32639);var _=i(20778);var L=i(60160);var j=i(38153);class ExtendedServiceClient extends L.ServiceClient{constructor(e){super(e);if(e.keepAliveOptions?.enable===false&&!(0,P.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,P.createDisableKeepAlivePolicy)())}if(e.redirectOptions?.handleRedirects===false){this.pipeline.removePolicy({name:_.redirectPolicyName})}}async sendOperationRequest(e,t){const i=e?.options?.onResponse;let a;function onResponse(e,t,o){a=e;if(i){i(e,t,o)}}e.options={...e.options,onResponse:onResponse};const o=await super.sendOperationRequest(e,t);if(a){Object.defineProperty(o,"_response",{value:(0,j.toCompatResponse)(a)})}return o}}0&&0},2078:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{convertHttpClient:()=>convertHttpClient});e.exports=__toCommonJS(h);var P=i(38153);var _=i(33850);function convertHttpClient(e){return{sendRequest:async t=>{const i=await e.sendRequest((0,_.toWebResourceLike)(t,{createProxy:true}));return(0,P.toPipelineResponse)(i)}}}0&&0},61584:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{ExtendedServiceClient:()=>P.ExtendedServiceClient,HttpPipelineLogLevel:()=>L.HttpPipelineLogLevel,convertHttpClient:()=>U.convertHttpClient,createRequestPolicyFactoryPolicy:()=>L.createRequestPolicyFactoryPolicy,disableKeepAlivePolicyName:()=>j.disableKeepAlivePolicyName,requestPolicyFactoryPolicyName:()=>L.requestPolicyFactoryPolicyName,toCompatResponse:()=>_.toCompatResponse,toHttpHeadersLike:()=>H.toHttpHeadersLike});e.exports=__toCommonJS(h);var P=i(95492);var _=i(38153);var L=i(3466);var j=i(32639);var U=i(2078);var H=i(33850);0&&0},32639:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{createDisableKeepAlivePolicy:()=>createDisableKeepAlivePolicy,disableKeepAlivePolicyName:()=>m,pipelineContainsDisableKeepAlivePolicy:()=>pipelineContainsDisableKeepAlivePolicy});e.exports=__toCommonJS(d);const m="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:m,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===m))}0&&0},3466:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{HttpPipelineLogLevel:()=>L,createRequestPolicyFactoryPolicy:()=>createRequestPolicyFactoryPolicy,requestPolicyFactoryPolicyName:()=>U});e.exports=__toCommonJS(h);var P=i(33850);var _=i(38153);var L=(e=>{e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING";return e})(L||{});const j={log(e,t){},shouldLog(e){return false}};const U="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const t=e.slice().reverse();return{name:U,async sendRequest(e,i){let a={async sendRequest(e){const t=await i((0,P.toPipelineRequest)(e));return(0,_.toCompatResponse)(t,{createProxy:true})}};for(const e of t){a=e.create(a,j)}const o=(0,P.toWebResourceLike)(e,{createProxy:true});const d=await a.sendRequest(o);return(0,_.toPipelineResponse)(d)}}}0&&0},38153:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{toCompatResponse:()=>toCompatResponse,toPipelineResponse:()=>toPipelineResponse});e.exports=__toCommonJS(h);var P=i(20778);var _=i(33850);const L=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let i=(0,_.toWebResourceLike)(e.request);let a=(0,_.toHttpHeadersLike)(e.headers);if(t?.createProxy){return new Proxy(e,{get(t,o,d){if(o==="headers"){return a}else if(o==="request"){return i}else if(o===L){return e}return Reflect.get(t,o,d)},set(e,t,o,d){if(t==="headers"){a=o}else if(t==="request"){i=o}return Reflect.set(e,t,o,d)}})}else{return{...e,request:i,headers:a}}}function toPipelineResponse(e){const t=e;const i=t[L];const a=(0,P.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(i){i.headers=a;return i}else{return{...e,headers:a,request:(0,_.toPipelineRequest)(e.request)}}}0&&0},33850:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{HttpHeaders:()=>HttpHeaders,toHttpHeadersLike:()=>toHttpHeadersLike,toPipelineRequest:()=>toPipelineRequest,toWebResourceLike:()=>toWebResourceLike});e.exports=__toCommonJS(h);var P=i(20778);const _=Symbol("Original PipelineRequest");const L=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const i=e;const a=i[_];const o=(0,P.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(a){a.headers=o;return a}else{const i=(0,P.createPipelineRequest)({url:e.url,method:e.method,headers:o,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){i[L]=t.originalRequest}return i}}function toWebResourceLike(e,t){const i=t?.originalRequest??e;const a={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(a,{get(t,o,d){if(o===_){return e}else if(o==="clone"){return()=>toWebResourceLike(toPipelineRequest(a,{originalRequest:i}),{createProxy:true,originalRequest:i})}return Reflect.get(t,o,d)},set(t,i,a,o){if(i==="keepAlive"){e.disableKeepAlive=!a}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof i==="string"&&d.includes(i)){e[i]=a}return Reflect.set(t,i,a,o)}})}else{return a}}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?void 0: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 i=0;i<t.length;++i){e.push(t[i].name)}return e}headerValues(){const e=[];const t=this.headersArray();for(let i=0;i<t.length;++i){e.push(t[i].value)}return e}toJson(e={}){const t={};if(e.preserveCase){for(const e in this._headersMap){const i=this._headersMap[e];t[i.name]=i.value}}else{for(const e in this._headersMap){const i=this._headersMap[e];t[getHeaderKey(i.name)]=i.value}}return t}toString(){return JSON.stringify(this.toJson({preserveCase:true}))}clone(){const e={};for(const t in this._headersMap){const i=this._headersMap[t];e[i.name]=i.value}return new HttpHeaders(e)}}0&&0},93878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const a=i(30736);const o=i(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:i}=e;return i!==null&&i!==void 0?i: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:i,requestMethod:a,requestPath:o,resourceLocationConfig:d}=e;switch(a){case"PUT":{return o}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:o}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return i}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:i,requestPath:a,resourceLocationConfig:o}=e;const d=getOperationLocationHeader(t);const m=getAzureAsyncOperationHeader(t);const h=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:m});const P=getLocationHeader(t);const _=i===null||i===void 0?void 0:i.toLocaleUpperCase();if(h!==undefined){return{mode:"OperationLocation",operationLocation:h,resourceLocation:findResourceLocation({requestMethod:_,location:P,requestPath:a,resourceLocationConfig:o})}}else if(P!==undefined){return{mode:"ResourceLocation",operationLocation:P}}else if(_==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:i}=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(i);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:{o.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:i}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:i,statusCode:e.statusCode})}function getProvisioningState(e){var t,i;const{properties:a,provisioningState:o}=(t=e.body)!==null&&t!==void 0?t:{};const d=(i=a===null||a===void 0?void 0:a.provisioningState)!==null&&i!==void 0?i:o;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function 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}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){o.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){o.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const i=e.getTime();if(t<i){return i-t}return undefined}function getStatusFromInitialResponse(e){const{response:t,state:i,operationLocation:a}=e;function helper(){var e;const a=(e=i.config.metadata)===null||e===void 0?void 0:e["mode"];switch(a){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return getOperationStatus(t,i);default:return"running"}}const o=helper();return o==="running"&&a===undefined?"succeeded":o}t.getStatusFromInitialResponse=getStatusFromInitialResponse;async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:i,processResult:o,lro:d,setErrorAsResult:m}=e;return(0,a.initOperation)({init:async()=>{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:i});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:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:m})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var i;const a=(i=t.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var i;const a=(i=t.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){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: ${a}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},i){var a,o;return(a=e===null||e===void 0?void 0:e[i])!==null&&a!==void 0?a:(o=t.body)===null||o===void 0?void 0:o[i]}function getResourceLocation(e,t){const i=accessBodyProperty(e,"resourceLocation");if(i&&typeof i==="string"){t.config.resourceLocation=i}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:i,options:o,processResult:d,updateState:m,setDelay:h,state:P,setErrorAsResult:_}=e;return(0,a.pollOperation)({state:P,stateProxy:i,setDelay:h,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:m,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,i)=>t.sendPollRequest(e,i),setErrorAsResult:_})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const a=i(93878);const o=i(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:i,intervalInMs:d,processResult:m,restoreFrom:h,updateState:P,withOperationLocation:_,resolveOnUnsuccessful:L=false}=t||{};return(0,o.buildCreatePoller)({getStatusFromInitialResponse:a.getStatusFromInitialResponse,getStatusFromPollResponse:a.getOperationStatus,isOperationError:a.isOperationError,getOperationLocation:a.getOperationLocation,getResourceLocation:a.getResourceLocation,getPollingInterval:a.parseRetryAfter,getError:a.getErrorFromResponse,resolveOnUnsuccessful:L})({init:async()=>{const t=await e.sendInitialRequest();const o=(0,a.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:i});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:_,restoreFrom:h,updateState:P,processResult:m?({flatResponse:e},t)=>m(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const a=i(61860);var o=i(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return o.createHttpPoller}});a.__exportStar(i(55454),t);a.__exportStar(i(36272),t);a.__exportStar(i(82670),t)},55454:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var a=i(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return a.LroEngine}})},91607:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const a=i(54267);const o=i(55044);const d=i(36272);const m=i(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:i=o.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:h=false,isDone:P,lroResourceLocationConfig:_,processResult:L,updateState:j}=t||{};const U=d?(0,m.deserializeState)(d):{};const H=new a.GenericPollOperation(U,e,!h,_,L,j,P);super(H);this.resolveOnUnsuccessful=h;this.config={intervalInMs:i};H.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const a=i(93878);const o=i(50480);const 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,i,a,o,d,m){this.state=e;this.lro=t;this.setErrorAsResult=i;this.lroResourceLocationConfig=a;this.processResult=o;this.updateState=d;this.isDone=m}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const i=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,a.initHttpOperation)({lro:this.lro,stateProxy:i,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,a.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:i,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(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(){o.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;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()}}t.Poller=Poller},50480:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const a=i(50480);const o=i(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:i,isOperationError:a}=e;return e=>{if(a(e)){i.setError(t,e);i.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let i=e;if(i.slice(-1)!=="."){i=i+"."}return i+" "+t}function simplifyError(e){let t=e.message;let i=e.code;let a=e;while(a.innererror){a=a.innererror;i=a.code;t=appendReadableErrorMessage(t,a.message)}return{code:i,message:t}}function processOperationStatus(e){const{state:t,stateProxy:i,status:o,isDone:d,processResult:m,getError:h,response:P,setErrorAsResult:_}=e;switch(o){case"succeeded":{i.setSucceeded(t);break}case"failed":{const e=h===null||h===void 0?void 0:h(P);let o="";if(e){const{code:t,message:i}=simplifyError(e);o=`. ${t}. ${i}`}const d=`The long-running operation has failed${o}`;i.setError(t,new Error(d));i.setFailed(t);a.logger.warning(d);break}case"canceled":{i.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(P,t))||d===undefined&&["succeeded","canceled"].concat(_?[]:["failed"]).includes(o)){i.setResult(t,buildResult({response:P,state:t,processResult:m}))}}function buildResult(e){const{processResult:t,response:i,state:a}=e;return t?t(i,a):i}async function initOperation(e){const{init:t,stateProxy:i,processResult:o,getOperationStatus:d,withOperationLocation:m,setErrorAsResult:h}=e;const{operationLocation:P,resourceLocation:_,metadata:L,response:j}=await t();if(P)m===null||m===void 0?void 0:m(P,false);const U={metadata:L,operationLocation:P,resourceLocation:_};a.logger.verbose(`LRO: Operation description:`,U);const H=i.initState(U);const V=d({response:j,state:H,operationLocation:P});processOperationStatus({state:H,status:V,stateProxy:i,response:j,setErrorAsResult:h,processResult:o});return H}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:i,stateProxy:d,operationLocation:m,getOperationStatus:h,getResourceLocation:P,isOperationError:_,options:L}=e;const j=await t(m,L).catch(setStateError({state:i,stateProxy:d,isOperationError:_}));const U=h(j,i);a.logger.verbose(`LRO: Status:\n\tPolling from: ${i.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${o.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=P(j,i);if(e!==undefined){return{response:await t(e).catch(setStateError({state:i,stateProxy:d,isOperationError:_})),status:U}}}return{response:j,status:U}}async function pollOperation(e){const{poll:t,state:i,stateProxy:a,options:d,getOperationStatus:m,getResourceLocation:h,getOperationLocation:P,isOperationError:_,withOperationLocation:L,getPollingInterval:j,processResult:U,getError:H,updateState:V,setDelay:K,isDone:W,setErrorAsResult:J}=e;const{operationLocation:X}=i.config;if(X!==undefined){const{response:e,status:Y}=await pollOperationHelper({poll:t,getOperationStatus:m,state:i,stateProxy:a,operationLocation:X,getResourceLocation:h,isOperationError:_,options:d});processOperationStatus({status:Y,response:e,state:i,stateProxy:a,isDone:W,processResult:U,getError:H,setErrorAsResult:J});if(!o.terminalStates.includes(Y)){const t=j===null||j===void 0?void 0:j(e);if(t)K(t);const a=P===null||P===void 0?void 0:P(e,i);if(a!==undefined){const e=X!==a;i.config.operationLocation=a;L===null||L===void 0?void 0:L(a,e)}else L===null||L===void 0?void 0:L(X,false)}V===null||V===void 0?void 0:V(i,e)}}t.pollOperation=pollOperation},18835:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const a=i(30736);const o=i(55044);const d=i(87779);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 buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:i,getStatusFromPollResponse:m,isOperationError:h,getResourceLocation:P,getPollingInterval:_,getError:L,resolveOnUnsuccessful:j}=e;return async({init:e,poll:U},H)=>{const{processResult:V,updateState:K,withOperationLocation:W,intervalInMs:J=o.POLL_INTERVAL_IN_MS,restoreFrom:X}=H||{};const Y=createStateProxy();const Q=W?(()=>{let e=false;return(t,i)=>{if(i)W(t);else if(!e)W(t);e=true}})():undefined;const Z=X?(0,a.deserializeState)(X):await(0,a.initOperation)({init:e,stateProxy:Y,processResult:V,getOperationStatus:i,withOperationLocation:Q,setErrorAsResult:!j});let ee;const te=new AbortController;const ne=new Map;const handleProgressEvents=async()=>ne.forEach((e=>e(Z)));const re="Operation was canceled";let ie=J;const ae={getOperationState:()=>Z,getResult:()=>Z.result,isDone:()=>["succeeded","failed","canceled"].includes(Z.status),isStopped:()=>ee===undefined,stopPolling:()=>{te.abort()},toString:()=>JSON.stringify({state:Z}),onProgress:e=>{const t=Symbol();ne.set(t,e);return()=>ne.delete(t)},pollUntilDone:e=>ee!==null&&ee!==void 0?ee:ee=(async()=>{const{abortSignal:t}=e||{};function abortListener(){te.abort()}const i=te.signal;if(t===null||t===void 0?void 0:t.aborted){te.abort()}else if(!i.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ae.isDone()){await ae.poll({abortSignal:i});while(!ae.isDone()){await(0,d.delay)(ie,{abortSignal:i});await ae.poll({abortSignal:i})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(j){return ae.getResult()}else{switch(Z.status){case"succeeded":return ae.getResult();case"canceled":throw new Error(re);case"failed":throw Z.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{ee=undefined})),async poll(e){if(j){if(ae.isDone())return}else{switch(Z.status){case"succeeded":return;case"canceled":throw new Error(re);case"failed":throw Z.error}}await(0,a.pollOperation)({poll:U,state:Z,stateProxy:Y,getOperationLocation:t,isOperationError:h,withOperationLocation:Q,getPollingInterval:_,getOperationStatus:m,getResourceLocation:P,processResult:V,getError:L,updateState:K,options:e,setDelay:e=>{ie=e},setErrorAsResult:!j});await handleProgressEvents();if(!j){switch(Z.status){case"canceled":throw new Error(re);case"failed":throw Z.error}}}};return ae}}t.buildCreatePoller=buildCreatePoller},66427:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{DEFAULT_RETRY_POLICY_COUNT:()=>h,SDK_VERSION:()=>m});e.exports=__toCommonJS(d);const m="1.22.3";const h=3;0&&0},90862:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createPipelineFromOptions:()=>createPipelineFromOptions});e.exports=__toCommonJS(h);var P=i(53253);var _=i(29590);var L=i(64087);var j=i(32799);var U=i(45807);var H=i(39295);var V=i(48170);var K=i(75497);var W=i(87779);var J=i(32815);var X=i(95686);var Y=i(18554);var Q=i(75798);var Z=i(93237);var ee=i(37466);function createPipelineFromOptions(e){const t=(0,_.createEmptyPipeline)();if(W.isNodeLike){if(e.agent){t.addPolicy((0,Y.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,Q.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,J.proxyPolicy)(e.proxyOptions));t.addPolicy((0,H.decompressResponsePolicy)())}t.addPolicy((0,ee.wrapAbortSignalLikePolicy)());t.addPolicy((0,K.formDataPolicy)(),{beforePolicies:[U.multipartPolicyName]});t.addPolicy((0,j.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,X.setClientRequestIdPolicy)(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy((0,U.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,V.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});t.addPolicy((0,Z.tracingPolicy)({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(W.isNodeLike){t.addPolicy((0,L.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,P.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}0&&0},7960:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createDefaultHttpClient:()=>createDefaultHttpClient});e.exports=__toCommonJS(h);var P=i(41958);var _=i(91297);function createDefaultHttpClient(){const e=(0,P.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:i,cleanup:a}=t.abortSignal?(0,_.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=i;return await e.sendRequest(t)}finally{a?.()}}}}0&&0},192:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createHttpHeaders:()=>createHttpHeaders});e.exports=__toCommonJS(h);var P=i(41958);function createHttpHeaders(e){return(0,P.createHttpHeaders)(e)}0&&0},20778:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{RestError:()=>H.RestError,agentPolicy:()=>ue.agentPolicy,agentPolicyName:()=>ue.agentPolicyName,auxiliaryAuthenticationHeaderPolicy:()=>le.auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>le.auxiliaryAuthenticationHeaderPolicyName,bearerTokenAuthenticationPolicy:()=>se.bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>se.bearerTokenAuthenticationPolicyName,createDefaultHttpClient:()=>L.createDefaultHttpClient,createEmptyPipeline:()=>P.createEmptyPipeline,createFile:()=>de.createFile,createFileFromStream:()=>de.createFileFromStream,createHttpHeaders:()=>j.createHttpHeaders,createPipelineFromOptions:()=>_.createPipelineFromOptions,createPipelineRequest:()=>U.createPipelineRequest,decompressResponsePolicy:()=>V.decompressResponsePolicy,decompressResponsePolicyName:()=>V.decompressResponsePolicyName,defaultRetryPolicy:()=>re.defaultRetryPolicy,exponentialRetryPolicy:()=>K.exponentialRetryPolicy,exponentialRetryPolicyName:()=>K.exponentialRetryPolicyName,formDataPolicy:()=>oe.formDataPolicy,formDataPolicyName:()=>oe.formDataPolicyName,getDefaultProxySettings:()=>Y.getDefaultProxySettings,isRestError:()=>H.isRestError,logPolicy:()=>J.logPolicy,logPolicyName:()=>J.logPolicyName,multipartPolicy:()=>X.multipartPolicy,multipartPolicyName:()=>X.multipartPolicyName,ndJsonPolicy:()=>ce.ndJsonPolicy,ndJsonPolicyName:()=>ce.ndJsonPolicyName,proxyPolicy:()=>Y.proxyPolicy,proxyPolicyName:()=>Y.proxyPolicyName,redirectPolicy:()=>Q.redirectPolicy,redirectPolicyName:()=>Q.redirectPolicyName,retryPolicy:()=>te.retryPolicy,setClientRequestIdPolicy:()=>W.setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>W.setClientRequestIdPolicyName,systemErrorRetryPolicy:()=>Z.systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>Z.systemErrorRetryPolicyName,throttlingRetryPolicy:()=>ee.throttlingRetryPolicy,throttlingRetryPolicyName:()=>ee.throttlingRetryPolicyName,tlsPolicy:()=>ae.tlsPolicy,tlsPolicyName:()=>ae.tlsPolicyName,tracingPolicy:()=>ne.tracingPolicy,tracingPolicyName:()=>ne.tracingPolicyName,userAgentPolicy:()=>ie.userAgentPolicy,userAgentPolicyName:()=>ie.userAgentPolicyName});e.exports=__toCommonJS(h);var P=i(29590);var _=i(90862);var L=i(7960);var j=i(192);var U=i(95709);var H=i(8666);var V=i(39295);var K=i(16708);var W=i(95686);var J=i(53253);var X=i(45807);var Y=i(32815);var Q=i(64087);var Z=i(96518);var ee=i(97540);var te=i(56085);var ne=i(93237);var re=i(48170);var ie=i(32799);var ae=i(75798);var oe=i(75497);var se=i(26925);var ce=i(36827);var le=i(42262);var ue=i(18554);var de=i(97073);0&&0},80544:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{logger:()=>_});e.exports=__toCommonJS(h);var P=i(26515);const _=(0,P.createClientLogger)("core-rest-pipeline");0&&0},29590:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createEmptyPipeline:()=>createEmptyPipeline});e.exports=__toCommonJS(h);var P=i(41958);function createEmptyPipeline(){return(0,P.createEmptyPipeline)()}0&&0},95709:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createPipelineRequest:()=>createPipelineRequest});e.exports=__toCommonJS(h);var P=i(41958);function createPipelineRequest(e){return(0,P.createPipelineRequest)(e)}0&&0},18554:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{agentPolicy:()=>agentPolicy,agentPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.agentPolicyName;function agentPolicy(e){return(0,P.agentPolicy)(e)}0&&0},42262:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{auxiliaryAuthenticationHeaderPolicy:()=>auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(39202);var _=i(80544);const L="auxiliaryAuthenticationHeaderPolicy";const j="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:i,request:a}=e;const o={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions};return(await i(t,o))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:i}=e;const a=e.logger||_.logger;const o=new WeakMap;return{name:L,async sendRequest(e,d){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){a.info(`${L} header will not be set due to empty credentials.`);return d(e)}const m=[];for(const d of t){let t=o.get(d);if(!t){t=(0,P.createTokenCycler)(d);o.set(d,t)}m.push(sendAuthorizeRequest({scopes:Array.isArray(i)?i:[i],request:e,getAccessToken:t,logger:a}))}const h=(await Promise.all(m)).filter((e=>Boolean(e)));if(h.length===0){a.warning(`None of the auxiliary tokens are valid. ${j} header will not be set.`);return d(e)}e.headers.set(j,h.map((e=>`Bearer ${e}`)).join(", "));return d(e)}}}0&&0},26925:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{bearerTokenAuthenticationPolicy:()=>bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>j,parseChallenges:()=>parseChallenges});e.exports=__toCommonJS(h);var P=i(39202);var _=i(80544);var L=i(8666);const j="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),void 0]}catch(e){if((0,L.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:i,request:a}=e;const o={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions,enableCae:true};const d=await i(t,o);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:i}=e;const a=await e.getAccessToken(i,{enableCae:true,claims:t});if(!a){return false}e.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:i,challengeCallbacks:a}=e;const o=e.logger||_.logger;const d={authorizeRequest:a?.authorizeRequest?.bind(a)??defaultAuthorizeRequest,authorizeRequestOnChallenge:a?.authorizeRequestOnChallenge?.bind(a)};const m=t?(0,P.createTokenCycler)(t):()=>Promise.resolve(null);return{name:j,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 d.authorizeRequest({scopes:Array.isArray(i)?i:[i],request:e,getAccessToken:m,logger:o});let a;let h;let P;[a,h]=await trySendRequest(e,t);if(isChallengeResponse(a)){let _=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(_){let d;try{d=atob(_)}catch(e){o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${_}`);return a}P=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(i)?i:[i],response:a,request:e,getAccessToken:m,logger:o},d);if(P){[a,h]=await trySendRequest(e,t)}}else if(d.authorizeRequestOnChallenge){P=await d.authorizeRequestOnChallenge({scopes:Array.isArray(i)?i:[i],request:e,response:a,getAccessToken:m,logger:o});if(P){[a,h]=await trySendRequest(e,t)}if(isChallengeResponse(a)){_=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(_){let d;try{d=atob(_)}catch(e){o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${_}`);return a}P=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(i)?i:[i],response:a,request:e,getAccessToken:m,logger:o},d);if(P){[a,h]=await trySendRequest(e,t)}}}}}if(h){throw h}else{return a}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const i=/(\w+)="([^"]*)"/g;const a=[];let o;while((o=t.exec(e))!==null){const e=o[1];const t=o[2];const d={};let m;while((m=i.exec(t))!==null){d[m[1]]=m[2]}a.push({scheme:e,params:d})}return a}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}0&&0},39295:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{decompressResponsePolicy:()=>decompressResponsePolicy,decompressResponsePolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,P.decompressResponsePolicy)()}0&&0},48170:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{defaultRetryPolicy:()=>defaultRetryPolicy,defaultRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,P.defaultRetryPolicy)(e)}0&&0},16708:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{exponentialRetryPolicy:()=>exponentialRetryPolicy,exponentialRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,P.exponentialRetryPolicy)(e)}0&&0},75497:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{formDataPolicy:()=>formDataPolicy,formDataPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.formDataPolicyName;function formDataPolicy(){return(0,P.formDataPolicy)()}0&&0},53253:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{logPolicy:()=>logPolicy,logPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(80544);var _=i(44960);const L=_.logPolicyName;function logPolicy(e={}){return(0,_.logPolicy)({logger:P.logger.info,...e})}0&&0},45807:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{multipartPolicy:()=>multipartPolicy,multipartPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(44960);var _=i(97073);const L=P.multipartPolicyName;function multipartPolicy(){const e=(0,P.multipartPolicy)();return{name:L,sendRequest:async(t,i)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,_.hasRawContent)(e.body)){e.body=(0,_.getRawContent)(e.body)}}}return e.sendRequest(t,i)}}}0&&0},36827:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{ndJsonPolicy:()=>ndJsonPolicy,ndJsonPolicyName:()=>m});e.exports=__toCommonJS(d);const m="ndJsonPolicy";function ndJsonPolicy(){return{name:m,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}0&&0},32815:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{getDefaultProxySettings:()=>getDefaultProxySettings,proxyPolicy:()=>proxyPolicy,proxyPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.proxyPolicyName;function getDefaultProxySettings(e){return(0,P.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,P.proxyPolicy)(e,t)}0&&0},64087:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{redirectPolicy:()=>redirectPolicy,redirectPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.redirectPolicyName;function redirectPolicy(e={}){return(0,P.redirectPolicy)(e)}0&&0},56085:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{retryPolicy:()=>retryPolicy});e.exports=__toCommonJS(h);var P=i(26515);var _=i(66427);var L=i(44960);const j=(0,P.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:_.DEFAULT_RETRY_POLICY_COUNT}){return(0,L.retryPolicy)(e,{logger:j,...t})}0&&0},95686:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{setClientRequestIdPolicy:()=>setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>m});e.exports=__toCommonJS(d);const m="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:m,async sendRequest(t,i){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return i(t)}}}0&&0},96518:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{systemErrorRetryPolicy:()=>systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,P.systemErrorRetryPolicy)(e)}0&&0},97540:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{throttlingRetryPolicy:()=>throttlingRetryPolicy,throttlingRetryPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,P.throttlingRetryPolicy)(e)}0&&0},75798:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{tlsPolicy:()=>tlsPolicy,tlsPolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(44960);const _=P.tlsPolicyName;function tlsPolicy(e){return(0,P.tlsPolicy)(e)}0&&0},93237:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{tracingPolicy:()=>tracingPolicy,tracingPolicyName:()=>K});e.exports=__toCommonJS(h);var P=i(20623);var _=i(66427);var L=i(28431);var j=i(80544);var U=i(87779);var H=i(8666);var V=i(95750);const K="tracingPolicy";function tracingPolicy(e={}){const t=(0,L.getUserAgentValue)(e.userAgentPrefix);const i=new V.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const a=tryCreateTracingClient();return{name:K,async sendRequest(e,o){if(!a){return o(e)}const d=await t;const m={"http.url":i.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":d,requestId:e.requestId};if(d){m["http.user_agent"]=d}const{span:h,tracingContext:P}=tryCreateSpan(a,e,m)??{};if(!h||!P){return o(e)}try{const t=await a.withContext(P,o,e);tryProcessResponse(h,t);return t}catch(e){tryProcessError(h,e);throw e}}}}function tryCreateTracingClient(){try{return(0,P.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:_.SDK_VERSION})}catch(e){j.logger.warning(`Error when creating the TracingClient: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryCreateSpan(e,t,i){try{const{span:a,updatedOptions:o}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:i});if(!a.isRecording()){a.end();return void 0}const d=e.createRequestHeaders(o.tracingOptions.tracingContext);for(const[e,i]of Object.entries(d)){t.headers.set(e,i)}return{span:a,tracingContext:o.tracingOptions.tracingContext}}catch(e){j.logger.warning(`Skipping creating a tracing span due to an error: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,U.isError)(t)?t:void 0});if((0,H.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){j.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const i=t.headers.get("x-ms-request-id");if(i){e.setAttribute("serviceRequestId",i)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){j.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}0&&0},32799:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{userAgentPolicy:()=>userAgentPolicy,userAgentPolicyName:()=>L});e.exports=__toCommonJS(h);var P=i(28431);const _=(0,P.getUserAgentHeaderName)();const L="userAgentPolicy";function userAgentPolicy(e={}){const t=(0,P.getUserAgentValue)(e.userAgentPrefix);return{name:L,async sendRequest(e,i){if(!e.headers.has(_)){e.headers.set(_,await t)}return i(e)}}}0&&0},37466:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{wrapAbortSignalLikePolicy:()=>wrapAbortSignalLikePolicy,wrapAbortSignalLikePolicyName:()=>_});e.exports=__toCommonJS(h);var P=i(91297);const _="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:_,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:i,cleanup:a}=(0,P.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=i;try{return await t(e)}finally{a?.()}}}}0&&0},8666:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{RestError:()=>_,isRestError:()=>isRestError});e.exports=__toCommonJS(h);var P=i(41958);const _=P.RestError;function isRestError(e){return(0,P.isRestError)(e)}0&&0},97073:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{createFile:()=>createFile,createFileFromStream:()=>createFileFromStream,getRawContent:()=>getRawContent,hasRawContent:()=>hasRawContent});e.exports=__toCommonJS(h);var P=i(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const _={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 L=Symbol("rawContent");function hasRawContent(e){return typeof e[L]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[L]()}else{return e}}function createFileFromStream(e,t,i={}){return{..._,type:i.type??"",lastModified:i.lastModified??(new Date).getTime(),webkitRelativePath:i.webkitRelativePath??"",size:i.size??-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[L]:e}}function createFile(e,t,i={}){if(P.isNodeLike){return{..._,type:i.type??"",lastModified:i.lastModified??(new Date).getTime(),webkitRelativePath:i.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[L]:()=>e}}else{return new File([toArrayBuffer(e)],t,i)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}0&&0},39202:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{DEFAULT_CYCLER_OPTIONS:()=>_,createTokenCycler:()=>createTokenCycler});e.exports=__toCommonJS(h);var P=i(87779);const _={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,i){async function tryGetAccessToken(){if(Date.now()<i){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let a=await tryGetAccessToken();while(a===null){await(0,P.delay)(t);a=await tryGetAccessToken()}return a}function createTokenCycler(e,t){let i=null;let a=null;let o;const d={..._,...t};const m={get isRefreshing(){return i!==null},get shouldRefresh(){if(m.isRefreshing){return false}if(a?.refreshAfterTimestamp&&a.refreshAfterTimestamp<Date.now()){return true}return(a?.expiresOnTimestamp??0)-d.refreshWindowInMs<Date.now()},get mustRefresh(){return a===null||a.expiresOnTimestamp-d.forcedRefreshWindowInMs<Date.now()}};function refresh(t,h){if(!m.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,h);i=beginRefresh(tryGetAccessToken,d.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then((e=>{i=null;a=e;o=h.tenantId;return a})).catch((e=>{i=null;a=null;o=void 0;throw e}))}return i}return async(e,t)=>{const i=Boolean(t.claims);const d=o!==t.tenantId;if(i){a=null}const h=d||i||m.mustRefresh;if(h){return refresh(e,t)}if(m.shouldRefresh){refresh(e,t)}return a}}0&&0},28431:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{getUserAgentHeaderName:()=>getUserAgentHeaderName,getUserAgentValue:()=>getUserAgentValue});e.exports=__toCommonJS(h);var P=i(31848);var _=i(66427);function getUserAgentString(e){const t=[];for(const[i,a]of e){const e=a?`${i}/${a}`:i;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,P.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",_.SDK_VERSION);await(0,P.setPlatformSpecificData)(t);const i=getUserAgentString(t);const a=e?`${e} ${i}`:i;return a}0&&0},31848:(e,t,i)=>{var a=Object.create;var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var h=Object.getPrototypeOf;var P=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)o(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of m(t))if(!P.call(e,h)&&h!==i)o(e,h,{get:()=>t[h],enumerable:!(a=d(t,h))||a.enumerable})}return e};var __toESM=(e,t,i)=>(i=e!=null?a(h(e)):{},__copyProps(t||!e||!e.__esModule?o(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(o({},"__esModule",{value:true}),e);var _={};__export(_,{getHeaderName:()=>getHeaderName,setPlatformSpecificData:()=>setPlatformSpecificData});e.exports=__toCommonJS(_);var L=__toESM(i(48161));var j=__toESM(i(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(j.default&&j.default.versions){const t=`${L.default.type()} ${L.default.release()}; ${L.default.arch()}`;const i=j.default.versions;if(i.bun){e.set("Bun",`${i.bun} (${t})`)}else if(i.deno){e.set("Deno",`${i.deno} (${t})`)}else if(i.node){e.set("Node",`${i.node} (${t})`)}}}0&&0},91297:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{wrapAbortSignalLike:()=>wrapAbortSignalLike});e.exports=__toCommonJS(d);function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let i=true;function cleanup(){if(i){e.removeEventListener("abort",listener);i=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}0&&0},20623:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var a=i(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return a.useInstrumenter}});var o=i(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return o.createTracingClient}})},48729:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const a=i(79186);const o=i(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,a.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...i){return t(...i)}}}function useInstrumenter(e){o.state.instrumenterImplementation=e}function getInstrumenter(){if(!o.state.instrumenterImplementation){o.state.instrumenterImplementation=createDefaultInstrumenter()}return o.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const a=i(48729);const o=i(79186);function createTracingClient(e){const{namespace:t,packageName:i,packageVersion:d}=e;function startSpan(e,m,h){const P=(0,a.getInstrumenter)().startSpan(e,{...h,packageName:i,packageVersion:d,tracingContext:m?.tracingOptions?.tracingContext});let _=P.tracingContext;const L=P.span;if(!_.getValue(o.knownContextKeys.namespace)){_=_.setValue(o.knownContextKeys.namespace,t)}L.setAttribute("az.namespace",_.getValue(o.knownContextKeys.namespace));const j=Object.assign({},m,{tracingOptions:{...m?.tracingOptions,tracingContext:_}});return{span:L,updatedOptions:j}}async function withSpan(e,t,i,a){const{span:o,updatedOptions:d}=startSpan(e,t,a);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(i(d,o))));o.setStatus({status:"success"});return e}catch(e){o.setStatus({status:"error",error:e});throw e}finally{o.end()}}function withContext(e,t,...i){return(0,a.getInstrumenter)().withContext(e,t,...i)}function parseTraceparentHeader(e){return(0,a.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,a.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let i=new TracingContextImpl(e.parentContext);if(e.span){i=i.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){i=i.setValue(t.knownContextKeys.namespace,e.namespace)}return i}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const i=new TracingContextImpl(this);i._contextMap.set(e,t);return i}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){const i=new AbortController;function abortHandler(){i.abort()}t?.abortSignal?.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:i.signal}))))}finally{i.abort();t?.abortSignal?.removeEventListener("abort",abortHandler)}}},63128:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const a=i(83134);function createAbortablePromise(e,t){const{cleanupBeforeAbort:i,abortSignal:o,abortErrorMsg:d}=t??{};return new Promise(((t,m)=>{function rejectOnAbort(){m(new a.AbortError(d??"The operation was aborted."))}function removeListeners(){o?.removeEventListener("abort",onAbort)}function onAbort(){i?.();removeListeners();rejectOnAbort()}if(o?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();m(e)}))}catch(e){m(e)}o?.addEventListener("abort",onAbort)}))}},90636:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const a=i(63128);const o=i(95750);const d="The delay was aborted.";function delay(e,t){let i;const{abortSignal:o,abortErrorMsg:m}=t??{};return(0,a.createAbortablePromise)((t=>{i=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(i),abortSignal:o,abortErrorMsg:m??d})}function calculateRetryDelay(e,t){const i=t.retryDelayInMs*Math.pow(2,e);const a=Math.min(t.maxRetryDelayInMs,i);const d=a/2+(0,o.getRandomIntegerInclusive)(0,a/2);return{retryAfterInMs:d}}},99945:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const a=i(95750);function getErrorMessage(e){if((0,a.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}`}}},87779:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const a=i(61860);const o=a.__importStar(i(95750));var d=i(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var m=i(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return m.createAbortablePromise}});var h=i(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return h.delay}});var P=i(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return P.getErrorMessage}});var _=i(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return _.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return _.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return _.objectHasProperty}});function calculateRetryDelay(e,t){return o.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return o.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,i){return o.computeSha256Hmac(e,t,i)}function getRandomIntegerInclusive(e,t){return o.getRandomIntegerInclusive(e,t)}function isError(e){return o.isError(e)}function isObject(e){return o.isObject(e)}function randomUUID(){return o.randomUUID()}t.isBrowser=o.isBrowser;t.isBun=o.isBun;t.isDeno=o.isDeno;t.isNode=o.isNodeLike;t.isNodeLike=o.isNodeLike;t.isNodeRuntime=o.isNodeRuntime;t.isReactNative=o.isReactNative;t.isWebWorker=o.isWebWorker;function uint8ArrayToString(e,t){return o.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return o.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const i of t){if(!objectHasProperty(e,i)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},78756:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{XML_ATTRKEY:()=>_.XML_ATTRKEY,XML_CHARKEY:()=>_.XML_CHARKEY,parseXML:()=>P.parseXML,stringifyXML:()=>P.stringifyXML});e.exports=__toCommonJS(h);var P=i(48133);var _=i(93406);0&&0},93406:e=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var a in i)t(e,a,{get:i[a],enumerable:true})};var __copyProps=(e,d,m,h)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let P of a(d))if(!o.call(e,P)&&P!==m)t(e,P,{get:()=>d[P],enumerable:!(h=i(d,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{XML_ATTRKEY:()=>m,XML_CHARKEY:()=>h});e.exports=__toCommonJS(d);const m="$";const h="_";0&&0},48133:(e,t,i)=>{var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:true})};var __copyProps=(e,t,i,h)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let P of d(t))if(!m.call(e,P)&&P!==i)a(e,P,{get:()=>t[P],enumerable:!(h=o(t,P))||h.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var h={};__export(h,{parseXML:()=>parseXML,stringifyXML:()=>stringifyXML});e.exports=__toCommonJS(h);var P=i(50591);var _=i(93406);function getCommonOptions(e){return{attributesGroupName:_.XML_ATTRKEY,textNodeName:e.xmlCharKey??_.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){return{...getCommonOptions(e),attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:e.rootName??"root",cdataPropName:e.cdataPropName??"__cdata"}}function getParserOptions(e={}){return{...getCommonOptions(e),parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false}}function stringifyXML(e,t={}){const i=getSerializerOptions(t);const a=new P.XMLBuilder(i);const o={[i.rootNodeName]:e};const d=a.build(o);return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${d}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const i=P.XMLValidator.validate(e);if(i!==true){throw i}const a=new P.XMLParser(getParserOptions(t));const o=a.parse(e);if(o["?xml"]){delete o["?xml"]}if(!t.includeRoot){for(const e of Object.keys(o)){const t=o[e];return typeof t==="object"?{...t}:t}}return o}0&&0},26515:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const a=i(82490);const o=(0,a.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=o.logger;function setLogLevel(e){o.setLogLevel(e)}function getLogLevel(){return o.getLogLevel()}function createClientLogger(e){return o.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const a=i(20778);const o=i(61584);const d=i(27323);const m=i(72995);const h=i(46370);const P=": ";const _=" ";const L=-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}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,m.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const i=t.length;if(i!==this.subRequests.size&&i!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const j=new Array(i);let U=0;let H=0;for(let e=0;e<i;e++){const i=t[e];const m={};m.headers=(0,o.toHttpHeadersLike)((0,a.createHttpHeaders)());const V=i.split(`${d.HTTP_LINE_ENDING}`);let K=false;let W=false;let J=false;let X=L;for(const e of V){if(!K){if(e.startsWith(d.HeaderConstants.CONTENT_ID)){X=parseInt(e.split(P)[1])}if(e.startsWith(d.HTTP_VERSION_1_1)){K=true;const t=e.split(_);m.status=parseInt(t[1]);m.statusMessage=t.slice(2).join(_)}continue}if(e.trim()===""){if(!W){W=true}continue}if(!W){if(e.indexOf(P)===-1){throw new Error(`Invalid state: find non-empty line '${e}' without HTTP header delimiter '${P}'.`)}const t=e.split(P);m.headers.set(t[0],t[1]);if(t[0]===d.HeaderConstants.X_MS_ERROR_CODE){m.errorCode=t[1];J=true}}else{if(!m.bodyAsText){m.bodyAsText=""}m.bodyAsText+=e}}if(X!==L&&Number.isInteger(X)&&X>=0&&X<this.subRequests.size&&j[X]===undefined){m._request=this.subRequests.get(X);j[X]=m}else{h.logger.error(`subResponses[${e}] is dropped as the Content-ID is not found or invalid, Content-ID: ${X}`)}if(J){H++}else{U++}}return{subResponses:j,subResponsesSucceededCount:U,subResponsesFailedCount:H}}}t.BatchResponseParser=BatchResponseParser},72995:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const a=i(53563);const o=i(27323);async function getBodyAsText(e){let t=Buffer.alloc(o.BATCH_MAX_PAYLOAD_IN_BYTES);const i=await(0,a.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,i);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const a=i(87779);const o=i(50417);const d=i(20778);const m=i(87779);const h=i(51382);const P=i(90372);const _=i(58913);const L=i(25984);const j=i(47764);const U=i(78756);const H=i(27323);const V=i(53952);const K=i(60160);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,i){let a;let d;if(typeof e==="string"&&(m.isNodeLike&&t instanceof h.StorageSharedKeyCredential||t instanceof h.AnonymousCredential||(0,o.isTokenCredential)(t))){a=e;d=t}else if(e instanceof P.BlobClient){a=e.url;d=e.credential;i=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}return V.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",i,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:a,credential:d},(async()=>{await new P.BlobClient(a,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,i,a){let d;let _;let L;if(typeof e==="string"&&(m.isNodeLike&&t instanceof h.StorageSharedKeyCredential||t instanceof h.AnonymousCredential||(0,o.isTokenCredential)(t))){d=e;_=t;L=i}else if(e instanceof P.BlobClient){d=e.url;_=e.credential;L=t;a=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}return V.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",a,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:_},(async()=>{await new P.BlobClient(d,this.batchRequest.createPipeline(_)).setAccessTier(L,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,a.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${H.HTTP_LINE_ENDING}${H.HeaderConstants.CONTENT_TYPE}: application/http${H.HTTP_LINE_ENDING}${H.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,K.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,o.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:H.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:K.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof h.StorageSharedKeyCredential){t.addPolicy((0,h.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const i=new L.Pipeline([]);i._credential=e;i._corePipeline=t;return i}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${H.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,j.getURLPathAndQuery)(e.url)} ${H.HTTP_VERSION_1_1}${H.HTTP_LINE_ENDING}`].join(H.HTTP_LINE_ENDING);for(const[t,i]of e.headers){this.body+=`${t}: ${i}${H.HTTP_LINE_ENDING}`}this.body+=H.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=H.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${H.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,j.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}${H.HTTP_LINE_ENDING}`}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:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let i="";for(const[t]of e.headers){if((0,j.iEqual)(t,H.HeaderConstants.X_MS_VERSION)){i=t}}if(i!==""){e.headers.delete(i)}return t(e)}}}},12094:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const a=i(41564);const o=i(72995);const d=i(95561);const m=i(53952);const h=i(51382);const P=i(53789);const _=i(25984);const L=i(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,i){let a;if((0,_.isPipelineLike)(t)){a=t}else if(!t){a=(0,_.newPipeline)(new h.AnonymousCredential,i)}else{a=(0,_.newPipeline)(t,i)}const o=new P.StorageContextClient(e,(0,_.getCoreClientOptions)(a));const d=(0,L.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=o.container}else{this.serviceOrContainerContext=o.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,i){const a=new d.BlobBatch;for(const o of e){if(typeof o==="string"){await a.deleteBlob(o,t,i)}else{await a.deleteBlob(o,t)}}return this.submitBatch(a)}async setBlobsAccessTier(e,t,i,a){const o=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await o.setBlobAccessTier(d,t,i,a)}else{await o.setBlobAccessTier(d,t,i)}}return this.submitBatch(o)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return m.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const i=e.getHttpRequestBody();const d=(0,L.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,o.utf8ByteLength)(i),e.getMultiPartContentType(),i,{...t}));const m=new a.BatchResponseParser(d,e.getSubRequests());const h=await m.parseBatchResponse();const P={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:h.subResponses,subResponsesSucceededCount:h.subResponsesSucceededCount,subResponsesFailedCount:h.subResponsesFailedCount};return P}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const a=i(87779);const o=i(98684);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 a.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,i,a,d={}){this.originalResponse=e;this.blobDownloadStream=new o.RetriableReadableStream(this.originalResponse.readableStreamBody,t,i,a,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const a=i(87779);const o=i(27323);const d=i(53952);const m=i(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const i=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=i.container}else{this._isContainer=false;this._containerOrBlobOperation=i.blob}if(!t){t=(0,a.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async i=>(0,m.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async i=>{const a=(0,m.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}));this._leaseId=e;return a}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,m.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!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.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!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||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 d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async i=>{const a={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions};return(0,m.assertResponse)(await this._containerOrBlobOperation.breakLease(a))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const a=i(87779);const o=i(36426);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 a.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new o.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const a=i(50417);const o=i(20778);const d=i(87779);const m=i(25984);const h=i(81884);const P=i(47764);const _=i(51382);const L=i(47764);const j=i(53952);const U=i(12094);const H=i(73542);const V=i(6358);const K=i(85238);const W=i(46940);class BlobServiceClient extends H.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const i=(0,P.extractConnectionStringParts)(e);if(i.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(i.accountName,i.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,o.getDefaultProxySettings)(i.proxyUri)}const a=(0,m.newPipeline)(e,t);return new BlobServiceClient(i.url,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(i.kind==="SASConnString"){const e=(0,m.newPipeline)(new _.AnonymousCredential,t);return new BlobServiceClient(i.url+"?"+i.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,i){let o;if((0,m.isPipelineLike)(t)){o=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,a.isTokenCredential)(t)){o=(0,m.newPipeline)(t,i)}else{o=(0,m.newPipeline)(new _.AnonymousCredential,i)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new h.ContainerClient((0,P.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const i=this.getContainerClient(e);const a=await i.create(t);return{containerClient:i,containerCreateResponse:a}}))}async deleteContainer(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const i=this.getContainerClient(e);return i.delete(t)}))}async undeleteContainer(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-undeleteContainer",i,(async a=>{const o=this.getContainerClient(i.destinationContainerName||e);const d=o["storageClientContext"].container;const m=(0,L.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:a.tracingOptions}));return{containerClient:o,containerUndeleteResponse:m}}))}async getProperties(e={}){return j.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async i=>(0,L.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:i.tracingOptions}))))}async getStatistics(e={}){return j.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return j.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,L.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return j.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async i=>(0,L.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:i.tracingOptions}))))}async findBlobsByTagsSegment(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",i,(async a=>{const o=(0,L.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:i.abortSignal,where:e,marker:t,maxPageSize:i.maxPageSize,tracingOptions:a.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,P.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.findBlobsByTagsSegment(e,t,i);a.blobs=a.blobs||[];t=a.continuationToken;yield a}while(t)}}async*findBlobsByTagsItems(e,t={}){let i;for await(const a of this.findBlobsByTagsSegments(e,i,t)){yield*a.blobs}}findBlobsByTags(e,t={}){const i={...t};const a=this.findBlobsByTagsItems(e,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async*listSegments(e,t={}){let i;if(!!e||e===undefined){do{i=await this.listContainersSegment(e,t);i.containerItems=i.containerItems||[];e=i.continuationToken;yield await i}while(e)}}async*listItems(e={}){let t;for await(const i of this.listSegments(t,e)){yield*i.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 i={...e,...t.length>0?{include:t}:{}};const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...i})}}async getUserDelegationKey(e,t,i={}){return j.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",i,(async a=>{const o=(0,L.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,L.truncatedISO8061Date)(e,false),expiresOn:(0,L.truncatedISO8061Date)(t,false)},{abortSignal:i.abortSignal,tracingOptions:a.tracingOptions}));const d={signedObjectId:o.signedObjectId,signedTenantId:o.signedTenantId,signedStartsOn:new Date(o.signedStartsOn),signedExpiresOn:new Date(o.signedExpiresOn),signedService:o.signedService,signedVersion:o.signedVersion,value:o.value};const m={_response:o._response,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,date:o.date,errorCode:o.errorCode,...d};return m}))}getBlobBatchClient(){return new U.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=V.AccountSASPermissions.parse("r"),i="sco",a={}){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 o=(0,K.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:i,services:W.AccountSASServices.parse("b").toString(),...a},this.credential).toString();return(0,P.appendToURLQuery)(this.url,o)}generateSasStringToSign(e,t=V.AccountSASPermissions.parse("r"),i="sco",a={}){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(0,K.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:i,services:W.AccountSASServices.parse("b").toString(),...a},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const a=i(20778);const o=i(50417);const d=i(87779);const m=i(87779);const h=i(4894);const P=i(95602);const _=i(51382);const L=i(58560);const j=i(95302);const U=i(25984);const H=i(73145);const V=i(52045);const K=i(73542);const W=i(81582);const J=i(51382);const X=i(27323);const Y=i(53952);const Q=i(47764);const Z=i(53563);const ee=i(656);const te=i(23276);class BlobClient extends K.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,i,m){m=m||{};let h;let P;if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;if(i&&typeof i!=="string"){m=i}h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,Q.getURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,Q.getURLParameter)(this.url,X.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.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,i={}){i.conditions=i.conditions||{};i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-download",i,(async a=>{const o=(0,Q.assertResponse)(await this.blobContext.download({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:i.onProgress},range:e===0&&!t?undefined:(0,V.rangeToString)({offset:e,count:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey,tracingOptions:a.tracingOptions}));const m={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Q.parseObjectReplicationRecord)(o.objectReplicationRules)};if(!d.isNodeLike){return m}if(i.maxRetryRequests===undefined||i.maxRetryRequests<0){i.maxRetryRequests=X.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(o.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!o.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new h.BlobDownloadResponse(m,(async t=>{const a={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||o.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({count:e+o.contentLength-t,offset:t}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey};return(await this.blobContext.download({abortSignal:i.abortSignal,...a})).readableStreamBody}),e,o.contentLength,{maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})}))}async exists(e={}){return Y.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,L.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===X.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===X.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const i=(0,Q.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{...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Q.parseObjectReplicationRecord)(i.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return Y.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,Q.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 Y.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,Q.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 Y.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,Q.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-setMetadata",t,(async i=>(0,Q.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:i.tracingOptions}))))}async setTags(e,t={}){return Y.tracingClient.withSpan("BlobClient-setTags",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:i.tracingOptions,tags:(0,Q.toBlobTags)(e)}))))}async getTags(e={}){return Y.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const i=(0,Q.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 a={...i,_response:i._response,tags:(0,Q.toTags)({blobTagSet:i.blobTagSet})||{}};return a}))}getBlobLeaseClient(e){return new te.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,Q.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 i={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const a=new H.BlobBeginCopyFromUrlPoller({blobClient:i,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await a.poll();return a}async abortCopyFromURL(e,t={}){return Y.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async i=>(0,Q.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:i.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return Y.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async i=>(0,Q.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:(0,Q.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async setAccessTier(e,t={}){return Y.tracingClient.withSpan("BlobClient-setAccessTier",t,(async i=>(0,Q.assertResponse)(await this.blobContext.setTier((0,L.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:i.tracingOptions}))))}async downloadToBuffer(e,t,i,a={}){let o;let d=0;let m=0;let h=a;if(e instanceof Buffer){o=e;d=t||0;m=typeof i==="number"?i:0}else{d=typeof e==="number"?e:0;m=typeof t==="number"?t:0;h=i||{}}let P=h.blockSize??0;if(P<0){throw new RangeError("blockSize option must be >= 0")}if(P===0){P=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(m&&m<=0){throw new RangeError("count option must be greater than 0")}if(!h.conditions){h.conditions={}}return Y.tracingClient.withSpan("BlobClient-downloadToBuffer",h,(async e=>{if(!m){const t=await this.getProperties({...h,tracingOptions:e.tracingOptions});m=t.contentLength-d;if(m<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!o){try{o=Buffer.alloc(m)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${m}(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(o.length<m){throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${m}`)}let t=0;const i=new W.Batch(h.concurrency);for(let a=d;a<d+m;a=a+P){i.addOperation((async()=>{let i=d+m;if(a+P<i){i=a+P}const _=await this.download(a,i-a,{abortSignal:h.abortSignal,conditions:h.conditions,maxRetryRequests:h.maxRetryRequestsPerBlock,customerProvidedKey:h.customerProvidedKey,tracingOptions:e.tracingOptions});const L=_.readableStreamBody;await(0,Z.streamToBuffer)(L,o,a-d,i-d);t+=i-a;if(h.onProgress){h.onProgress({loadedBytes:t})}}))}await i.do();return o}))}async downloadToFile(e,t=0,i,a={}){return Y.tracingClient.withSpan("BlobClient-downloadToFile",a,(async o=>{const d=await this.download(t,i,{...a,tracingOptions:o.tracingOptions});if(d.readableStreamBody){await(0,Z.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const i=new URL(this.url);if(i.host.split(".")[1]==="blob"){const a=i.pathname.match("/([^/]*)(/(.*))?");e=a[1];t=a[3]}else if((0,Q.isIpEndpointStyle)(i)){const a=i.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=a[2];t=a[4]}else{const a=i.pathname.match("/([^/]*)(/(.*))?");e=a[1];t=a[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 Y.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async i=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:i.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 i=(0,ee.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,Q.appendToURLQuery)(this.url,i))}))}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(0,ee.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((i=>{const a=(0,ee.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();i((0,Q.appendToURLQuery)(this.url,a))}))}generateUserDelegationSasStringToSign(e,t){return(0,ee.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Y.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,Q.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return Y.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,Q.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return Y.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,Q.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Y.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,Q.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,L.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,Q.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:(0,Q.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:X.ETagAny};return Y.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const i=(0,Q.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...i,_response:i._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 Y.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,Q.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,i={}){i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-appendBlock",i,(async a=>(0,Q.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:i.abortSignal,appendPositionAccessConditions:i.conditions,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async appendBlockFromURL(e,t,i,a={}){a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",a,(async o=>(0,Q.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:a.abortSignal,sourceRange:(0,V.rangeToString)({offset:t,count:i}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions?.ifMatch,sourceIfModifiedSince:a.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,Q.httpAuthorizationToString)(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;if(i&&typeof i!=="string"){m=i}h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return Y.tracingClient.withSpan("BlockBlobClient-query",t,(async i=>{const a=(0,Q.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,Q.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,Q.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:i.tracingOptions}));return new P.BlobQueryResponse(a,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,i={}){i.conditions=i.conditions||{};(0,L.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-upload",i,(async a=>(0,Q.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:i.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:i.immutabilityPolicy?.policyMode,legalHold:i.legalHold,tier:(0,L.toAccessTier)(i.tier),blobTagsString:(0,Q.toBlobTagsString)(i.tags),tracingOptions:a.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async i=>(0,Q.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:(0,Q.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}async stageBlock(e,t,i,a={}){(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-stageBlock",a,(async o=>(0,Q.assertResponse)(await this.blockBlobContext.stageBlock(e,i,t,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))))}async stageBlockFromURL(e,t,i=0,a,o={}){(0,L.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",o,(async d=>(0,Q.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:i===0&&!a?undefined:(0,V.rangeToString)({offset:i,count:a}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,Q.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async i=>(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),tracingOptions:i.tracingOptions}))))}async getBlockList(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async i=>{const a=(0,Q.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}))}async uploadData(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let i;if(e instanceof Buffer){i=e}else if(e instanceof ArrayBuffer){i=Buffer.from(e)}else{e=e;i=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.byteLength,t)}else{const i=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.size,t)}}))}async uploadBrowserData(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const i=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>i.slice(e,e+t)),i.size,t)}))}async uploadSeekableInternal(e,t,i={}){let a=i.blockSize??0;if(a<0||a>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const o=i.maxSingleShotSize??X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(o<0||o>X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(a===0){if(t>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>o){a=Math.ceil(t/X.BLOCK_BLOB_MAX_BLOCKS);if(a<X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES){a=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}}}if(!i.blobHTTPHeaders){i.blobHTTPHeaders={}}if(!i.conditions){i.conditions={}}return Y.tracingClient.withSpan("BlockBlobClient-uploadSeekableInternal",i,(async d=>{if(t<=o){return(0,Q.assertResponse)(await this.upload(e(0,t),t,d))}const h=Math.floor((t-1)/a)+1;if(h>X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${X.BLOCK_BLOB_MAX_BLOCKS}`)}const P=[];const _=(0,m.randomUUID)();let L=0;const j=new W.Batch(i.concurrency);for(let o=0;o<h;o++){j.addOperation((async()=>{const m=(0,Q.generateBlockID)(_,o);const j=a*o;const U=o===h-1?t:j+a;const H=U-j;P.push(m);await this.stageBlock(m,e(j,H),H,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:d.tracingOptions});L+=H;if(i.onProgress){i.onProgress({loadedBytes:L})}}))}await j.do();return this.commitBlockList(P,d)}))}async uploadFile(e,t={}){return Y.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async i=>{const a=(await(0,Z.fsStat)(e)).size;return this.uploadSeekableInternal(((t,i)=>()=>(0,Z.fsCreateReadStream)(e,{autoClose:true,end:i?t+i-1:Infinity,start:t})),a,{...t,tracingOptions:i.tracingOptions})}))}async uploadStream(e,t=X.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,i=5,a={}){if(!a.blobHTTPHeaders){a.blobHTTPHeaders={}}if(!a.conditions){a.conditions={}}return Y.tracingClient.withSpan("BlockBlobClient-uploadStream",a,(async o=>{let d=0;const h=(0,m.randomUUID)();let P=0;const _=[];const L=new J.BufferScheduler(e,t,i,(async(e,t)=>{const i=(0,Q.generateBlockID)(h,d);_.push(i);d++;await this.stageBlock(i,e,t,{customerProvidedKey:a.customerProvidedKey,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions});P+=t;if(a.onProgress){a.onProgress({loadedBytes:P})}}),Math.ceil(i/4*3));await L.do();return(0,Q.assertResponse)(await this.commitBlockList(_,{...a,tracingOptions:o.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,i,m){let h;let P;m=m||{};if((0,U.isPipelineLike)(t)){P=e;h=t}else if(d.isNodeLike&&t instanceof _.StorageSharedKeyCredential||t instanceof _.AnonymousCredential||(0,o.isTokenCredential)(t)){P=e;m=i;h=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){P=e;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}else if(t&&typeof t==="string"&&i&&typeof i==="string"){const o=t;const L=i;const j=(0,Q.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(d.isNodeLike){const e=new _.StorageSharedKeyCredential(j.accountName,j.accountKey);P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L));if(!m.proxyOptions){m.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}h=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){P=(0,Q.appendToURLPath)((0,Q.appendToURLPath)(j.url,encodeURIComponent(o)),encodeURIComponent(L))+"?"+j.accountSas;h=(0,U.newPipeline)(new _.AnonymousCredential,m)}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(P,h);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,Q.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,L.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-create",t,(async i=>(0,Q.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:(0,L.toAccessTier)(t.tier),blobTagsString:(0,Q.toBlobTagsString)(t.tags),tracingOptions:i.tracingOptions}))))}async createIfNotExists(e,t={}){return Y.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async i=>{try{const a={ifNoneMatch:X.ETagAny};const o=(0,Q.assertResponse)(await this.create(e,{...t,conditions:a,tracingOptions:i.tracingOptions}));return{succeeded:true,...o,_response:o._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,i,a={}){a.conditions=a.conditions||{};(0,L.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-uploadPages",a,(async o=>(0,Q.assertResponse)(await this.pageBlobContext.uploadPages(i,e,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},requestOptions:{onUploadProgress:a.onProgress},range:(0,V.rangeToString)({offset:t,count:i}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:o.tracingOptions}))))}async uploadPagesFromURL(e,t,i,a,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,L.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Y.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",o,(async d=>(0,Q.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,V.rangeToString)({offset:t,count:a}),0,(0,V.rangeToString)({offset:i,count:a}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,Q.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-clearPages",i,(async a=>(0,Q.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:i.conditions,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async getPageRanges(e=0,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-getPageRanges",i,(async a=>{const o=(0,Q.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:a.tracingOptions}));return(0,j.rangeResponseFromModel)(o)}))}async listPageRangesSegment(e=0,t,i,a={}){return Y.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",a,(async o=>(0,Q.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},range:(0,V.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:a.maxPageSize,tracingOptions:o.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,i,a={}){let o;if(!!i||i===undefined){do{o=await this.listPageRangesSegment(e,t,i,a);i=o.continuationToken;yield await o}while(i)}}async*listPageRangeItems(e=0,t,i={}){let a;for await(const o of this.listPageRangeItemSegments(e,t,a,i)){yield*(0,Q.ExtractPageRangeInfoItems)(o)}}listPageRanges(e=0,t,i={}){i.conditions=i.conditions||{};const a=this.listPageRangeItems(e,t,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(e,t,a.continuationToken,{maxPageSize:a.maxPageSize,...i})}}async getPageRangesDiff(e,t,i,a={}){a.conditions=a.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",a,(async o=>{const d=(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevsnapshot:i,range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,j.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,i,a,o={}){return Y.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",o,(async d=>(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:i,range:(0,V.rangeToString)({offset:e,count:t}),marker:a,maxPageSize:o?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,i,a,o){let d;if(!!a||a===undefined){do{d=await this.listPageRangesDiffSegment(e,t,i,a,o);a=d.continuationToken;yield await d}while(a)}}async*listPageRangeDiffItems(e,t,i,a){let o;for await(const d of this.listPageRangeDiffItemSegments(e,t,i,o,a)){yield*(0,Q.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,i,a={}){a.conditions=a.conditions||{};const o=this.listPageRangeDiffItems(e,t,i,{...a});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(e,t,i,o.continuationToken,{maxPageSize:o.maxPageSize,...a})}}async getPageRangesDiffForManagedDisks(e,t,i,a={}){a.conditions=a.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",a,(async o=>{const d=(0,Q.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevSnapshotUrl:i,range:(0,V.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,j.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-resize",t,(async i=>(0,Q.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:i.tracingOptions}))))}async updateSequenceNumber(e,t,i={}){i.conditions=i.conditions||{};return Y.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",i,(async a=>(0,Q.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:i.abortSignal,blobSequenceNumber:t,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},tracingOptions:a.tracingOptions}))))}async startCopyIncremental(e,t={}){return Y.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async i=>(0,Q.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const a=i(20778);const o=i(87779);const d=i(50417);const m=i(51382);const h=i(25984);const P=i(73542);const _=i(53952);const L=i(47764);const j=i(656);const U=i(23276);const H=i(90372);const V=i(12094);class ContainerClient extends P.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,i){let P;let _;i=i||{};if((0,h.isPipelineLike)(t)){_=e;P=t}else if(o.isNodeLike&&t instanceof m.StorageSharedKeyCredential||t instanceof m.AnonymousCredential||(0,d.isTokenCredential)(t)){_=e;P=(0,h.newPipeline)(t,i)}else if(!t&&typeof t!=="string"){_=e;P=(0,h.newPipeline)(new m.AnonymousCredential,i)}else if(t&&typeof t==="string"){const d=t;const j=(0,L.extractConnectionStringParts)(e);if(j.kind==="AccountConnString"){if(o.isNodeLike){const e=new m.StorageSharedKeyCredential(j.accountName,j.accountKey);_=(0,L.appendToURLPath)(j.url,encodeURIComponent(d));if(!i.proxyOptions){i.proxyOptions=(0,a.getDefaultProxySettings)(j.proxyUri)}P=(0,h.newPipeline)(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(j.kind==="SASConnString"){_=(0,L.appendToURLPath)(j.url,encodeURIComponent(d))+"?"+j.accountSas;P=(0,h.newPipeline)(new m.AnonymousCredential,i)}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(_,P);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return _.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,L.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return _.tracingClient.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 _.tracingClient.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 H.BlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new H.AppendBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new H.BlockBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new H.PageBlobClient((0,L.appendToURLPath)(this.url,(0,L.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,L.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,L.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return _.tracingClient.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 _.tracingClient.withSpan("ContainerClient-setMetadata",t,(async i=>(0,L.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:i.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return _.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const i=(0,L.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const a={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const e of i){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)}}a.signedIdentifiers.push({accessPolicy:t,id:e.id})}return a}))}async setAccessPolicy(e,t,i={}){i.conditions=i.conditions||{};return _.tracingClient.withSpan("ContainerClient-setAccessPolicy",i,(async a=>{const o=[];for(const e of t||[]){o.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,L.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,L.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,L.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:i.abortSignal,access:e,containerAcl:o,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions,tracingOptions:a.tracingOptions}))}))}getBlobLeaseClient(e){return new U.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,i,a={}){return _.tracingClient.withSpan("ContainerClient-uploadBlockBlob",a,(async a=>{const o=this.getBlockBlobClient(e);const d=await o.upload(t,i,a);return{blockBlobClient:o,response:d}}))}async deleteBlob(e,t={}){return _.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async i=>{let a=this.getBlobClient(e);if(t.versionId){a=a.withVersion(t.versionId)}return a.delete(i)}))}async listBlobFlatSegment(e,t={}){return _.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async i=>{const a=(0,L.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:i.tracingOptions}));const o={...a,_response:{...a._response,parsedBody:(0,L.ConvertInternalResponseOfListBlobFlat)(a._response.parsedBody)},segment:{...a.segment,blobItems:a.segment.blobItems.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name),tags:(0,L.toTags)(e.blobTags),objectReplicationSourceProperties:(0,L.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return o}))}async listBlobHierarchySegment(e,t,i={}){return _.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",i,(async a=>{const o=(0,L.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...i,tracingOptions:a.tracingOptions}));const d={...o,_response:{...o._response,parsedBody:(0,L.ConvertInternalResponseOfListBlobHierarchy)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name),tags:(0,L.toTags)(e.blobTags),objectReplicationSourceProperties:(0,L.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:o.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,L.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let i;if(!!e||e===undefined){do{i=await this.listBlobFlatSegment(e,t);e=i.continuationToken;yield await i}while(e)}}async*listItems(e={}){let t;for await(const i of this.listSegments(t,e)){yield*i.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 i={...e,...t.length>0?{include:t}:{}};const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...i})}}async*listHierarchySegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.listBlobHierarchySegment(e,t,i);t=a.continuationToken;yield await a}while(t)}}async*listItemsByHierarchy(e,t={}){let i;for await(const a of this.listHierarchySegments(e,i,t)){const e=a.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 i=[];if(t.includeCopy){i.push("copy")}if(t.includeDeleted){i.push("deleted")}if(t.includeMetadata){i.push("metadata")}if(t.includeSnapshots){i.push("snapshots")}if(t.includeVersions){i.push("versions")}if(t.includeUncommitedBlobs){i.push("uncommittedblobs")}if(t.includeTags){i.push("tags")}if(t.includeDeletedWithVersions){i.push("deletedwithversions")}if(t.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(t.includeLegalHold){i.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const a={...t,...i.length>0?{include:i}:{}};const o=this.listItemsByHierarchy(e,a);return{async next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...a})}}async findBlobsByTagsSegment(e,t,i={}){return _.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",i,(async a=>{const o=(0,L.assertResponse)(await this.containerContext.filterBlobs({abortSignal:i.abortSignal,where:e,marker:t,maxPageSize:i.maxPageSize,tracingOptions:a.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,L.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,i={}){let a;if(!!t||t===undefined){do{a=await this.findBlobsByTagsSegment(e,t,i);a.blobs=a.blobs||[];t=a.continuationToken;yield a}while(t)}}async*findBlobsByTagsItems(e,t={}){let i;for await(const a of this.findBlobsByTagsSegments(e,i,t)){yield*a.blobs}}findBlobsByTags(e,t={}){const i={...t};const a=this.findBlobsByTagsItems(e,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async getAccountInfo(e={}){return _.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,L.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((0,L.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 m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=(0,j.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,L.appendToURLQuery)(this.url,i))}))}generateSasStringToSign(e){if(!(this.credential instanceof m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,j.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((i=>{const a=(0,j.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();i((0,L.appendToURLQuery)(this.url,a))}))}generateUserDelegationSasStringToSign(e,t){return(0,j.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const i=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:i,_response:{...e._response,parsedBody:{pageRange:t,clearRange:i}}}}},25984:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const a=i(61584);const o=i(20778);const d=i(60160);const m=i(78756);const h=i(50417);const P=i(46370);const _=i(51382);const L=i(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return L.StorageOAuthScopes}});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}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new _.AnonymousCredential}const i=new Pipeline([],t);i._credential=e;return i}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const i=e.factories.filter((e=>!t.some((t=>t(e)))));if(i.length){const e=i.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,a.createRequestPolicyFactoryPolicy)(i),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...i}=e.options;let j=e._coreHttpClient;if(!j){j=t?(0,a.convertHttpClient)(t):(0,_.getCachedDefaultHttpClient)();e._coreHttpClient=j}let U=e._corePipeline;if(!U){const t=`azsdk-js-azure-storage-blob/${L.SDK_VERSION}`;const a=i.userAgentOptions&&i.userAgentOptions.userAgentPrefix?`${i.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;U=(0,d.createClientPipeline)({...i,loggingOptions:{additionalAllowedHeaderNames:L.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:L.StorageBlobLoggingAllowedQueryParameters,logger:P.logger.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:m.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:m.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});U.removePolicy({phase:"Retry"});U.removePolicy({name:o.decompressResponsePolicyName});U.addPolicy((0,_.storageCorrectContentLengthPolicy)());U.addPolicy((0,_.storageRetryPolicy)(i.retryOptions),{phase:"Retry"});U.addPolicy((0,_.storageRequestFailureDetailsParserPolicy)());U.addPolicy((0,_.storageBrowserPolicy)());const j=processDownlevelPipeline(e);if(j){U.addPolicy(j.wrappedPolicies,j.afterRetry?{afterPhase:"Retry"}:undefined)}const H=getCredentialFromPipeline(e);if((0,h.isTokenCredential)(H)){U.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:H,scopes:i.audience??L.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(H instanceof _.StorageSharedKeyCredential){U.addPolicy((0,_.storageSharedKeyCredentialPolicy)({accountName:H.accountName,accountKey:H.accountKey}),{phase:"Sign"})}e._corePipeline=U}return{...i,allowInsecureConnection:true,httpClient:j,pipeline:U}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new _.AnonymousCredential;for(const i of e.factories){if((0,h.isTokenCredential)(i.credential)){t=i.credential}else if(isStorageSharedKeyCredential(i)){return i}}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(0,h.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 i={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const a={log(e,t){},shouldLog(e){return false}};const o=e.create(i,a);const d=o.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;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}-`}},73542:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(53789);const o=i(25984);const d=i(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new a.StorageContextClient(this.url,(0,o.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,o.getCredentialFromPipeline)(t);const i=this.storageClientContext;i.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const a=i(30247);class StorageContextClient extends a.StorageClient{async sendOperationRequest(e,t){const i={...t};if(i.path==="/{containerName}"||i.path==="/{containerName}/{blob}"){i.path=""}return super.sendOperationRequest(e,i)}}t.StorageContextClient=StorageContextClient},30247:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(61860);a.__exportStar(i(12362),t);var o=i(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return o.StorageClient}});a.__exportStar(i(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var i;(function(e){e["AES256"]="AES256"})(i||(t.KnownEncryptionAlgorithmType=i={}));var a;(function(e){e["Backup"]="backup"})(a||(t.KnownFileShareTokenIntent=a={}));var o;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(o||(t.KnownBlobExpiryOptions=o={}));var d;(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"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={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"}}}}};t.Logging={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"}}}}};t.RetentionPolicy={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"}}}}};t.Metrics={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"}}}}};t.CorsRule={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"}}}}};t.StaticWebsite={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"}}}}};t.StorageError={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"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={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"}}}}};t.ListContainersSegmentResponse={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"}}}}};t.ContainerItem={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"}}}}}}};t.ContainerProperties={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"}}}}};t.KeyInfo={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"}}}}};t.UserDelegationKey={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"}}}}};t.FilterBlobSegment={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"}}}}};t.FilterBlobItem={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"}}}}};t.BlobTags={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"}}}}}}};t.BlobTag={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"}}}}};t.SignedIdentifier={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"}}}}};t.AccessPolicy={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"}}}}};t.ListBlobsFlatSegmentResponse={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"}}}}};t.BlobFlatListSegment={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"}}}}}}};t.BlobItemInternal={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"}}}}};t.BlobName={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"}}}}};t.BlobPropertiesInternal={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"}}}}};t.ListBlobsHierarchySegmentResponse={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"}}}}};t.BlobHierarchyListSegment={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"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={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"}}}}}}};t.BlockList={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"}}}}}}};t.Block={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"}}}}};t.PageList={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"}}}}};t.PageRange={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"}}}}};t.ClearRange={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"}}}}};t.QueryRequest={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"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={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"}}}}}}};t.DelimitedTextConfiguration={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"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={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"}}}}}}};t.ArrowField={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"}}}}};t.ServiceSetPropertiesHeaders={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"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={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"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={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"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={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"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={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"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={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"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={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"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={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"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={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"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={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"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={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"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={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"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={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"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={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"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={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"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={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"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={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"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={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"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={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"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={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"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={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"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={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"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={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"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={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"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={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"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={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"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={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"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={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"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={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"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={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"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={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"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={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"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={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"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={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"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={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"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={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"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={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"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={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"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={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"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={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"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={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"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={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"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={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"}}}}};t.BlobStartCopyFromURLExceptionHeaders={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"}}}}};t.BlobCopyFromURLHeaders={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"}}}}};t.BlobCopyFromURLExceptionHeaders={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"}}}}};t.BlobAbortCopyFromURLHeaders={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"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={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"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={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"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={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"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={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"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={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"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={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"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={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"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={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"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={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"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={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"}}}}};t.PageBlobGetPageRangesHeaders={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"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={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"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={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"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={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"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={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"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={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"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={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"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={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"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={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"}}}}};t.AppendBlobSealHeaders={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"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={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"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={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"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={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"}}}}};t.BlockBlobStageBlockHeaders={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"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={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"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={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"}}}}};t.BlockBlobCommitBlockListHeaders={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"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={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"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.startFrom=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.ifNoneMatch1=t.ifMatch1=t.ifUnmodifiedSince1=t.ifModifiedSince1=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=t.fileRequestIntent=void 0;const a=i(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:a.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:a.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={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"};t.startFrom={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={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"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={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"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:a.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.ifModifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.ifMatch1={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};t.ifNoneMatch1={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:a.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:a.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},P)}appendBlock(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},_)}appendBlockFromUrl(e,t,i){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:i},L)}seal(e){return this.client.sendOperationRequest({options:e},j)}}t.AppendBlobImpl=AppendBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.blobTagsString,m.legalHold1,m.blobType1],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.maxSize,m.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.transactionalContentMD5,m.sourceUrl,m.sourceContentCrc64,m.maxSize,m.appendPosition,m.sourceRange1],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp23],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.appendPosition],isXML:true,serializer:h}},57559:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}delete(e){return this.client.sendOperationRequest({options:e},L)}undelete(e){return this.client.sendOperationRequest({options:e},j)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},H)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},V)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},W)}setMetadata(e){return this.client.sendOperationRequest({options:e},J)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}changeLease(e,t,i){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:i},Z)}breakLease(e){return this.client.sendOperationRequest({options:e},ee)}createSnapshot(e){return this.client.sendOperationRequest({options:e},te)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ne)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},re)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},ie)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},oe)}query(e){return this.client.sendOperationRequest({options:e},se)}getTags(e){return this.client.sendOperationRequest({options:e},ce)}setTags(e){return this.client.sendOperationRequest({options:e},le)}}t.BlobImpl=BlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.rangeGetContentMD5,m.rangeGetContentCRC64,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.blobDeleteType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.deleteSnapshots],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp11],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.expiryOptions,m.expiresOn],isXML:true,serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition],isXML:true,serializer:h};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifUnmodifiedSince,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode],isXML:true,serializer:h};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const W={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp13],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.legalHold],isXML:true,serializer:h};const J={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:h};const X={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Q={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const Z={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp14],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:h};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.tier,m.rehydratePriority,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sealBlob,m.legalHold1],isXML:true,serializer:h};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.copySource,m.blobTagsString,m.legalHold1,m.xMsRequiresSync,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent],isXML:true,serializer:h};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp15,m.copyId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.copyActionAbortConstant],isXML:true,serializer:h};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp16],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.rehydratePriority,m.tier1],isXML:true,serializer:h};const oe={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const se={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:m.queryRequest,queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp17],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const ce={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1],isXML:true,serializer:h};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:m.tags,queryParameters:[m.timeoutInSeconds,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h}},95440:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},P)}putBlobFromUrl(e,t,i){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:i},_)}stageBlock(e,t,i,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:i,options:a},L)}stageBlockFromURL(e,t,i,a){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:i,options:a},j)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},H)}}t.BlockBlobImpl=BlockBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent,m.transactionalContentMD5,m.blobType2,m.copySourceBlobProperties],isXML:true,serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.sourceUrl,m.sourceContentCrc64,m.sourceRange1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:m.blocks,queryParameters:[m.timeoutInSeconds,m.comp25],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp25,m.listType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags],isXML:true,serializer:h}},14509:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}delete(e){return this.client.sendOperationRequest({options:e},L)}setMetadata(e){return this.client.sendOperationRequest({options:e},j)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},H)}restore(e){return this.client.sendOperationRequest({options:e},V)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,i,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:i,options:a},W)}filterBlobs(e){return this.client.sendOperationRequest({options:e},J)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}breakLease(e){return this.client.sendOperationRequest({options:e},Z)}changeLease(e,t,i){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:i},ee)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},te)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},ne)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},re)}}t.ContainerImpl=ContainerImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.access,m.defaultEncryptionScope,m.preventEncryptionScopeOverride],isXML:true,serializer:h};const _={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:h};const L={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,serializer:h};const j={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince],isXML:true,serializer:h};const U={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:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:h};const H={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:m.containerAcl,queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.access,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const V={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.deletedContainerName,m.deletedContainerVersion],isXML:true,serializer:h};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp9],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.sourceContainerName,m.sourceLeaseId],isXML:true,serializer:h};const W={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4,m.restype2],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const J={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const X={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId],isXML:true,serializer:h};const Y={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1],isXML:true,serializer:h};const Q={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2],isXML:true,serializer:h};const Z={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod],isXML:true,serializer:h};const ee={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1],isXML:true,serializer:h};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const ne={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom,m.delimiter],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const re={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h}},37878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=i(61860);a.__exportStar(i(44181),t);a.__exportStar(i(14509),t);a.__exportStar(i(57559),t);a.__exportStar(i(69156),t);a.__exportStar(i(40535),t);a.__exportStar(i(95440),t)},69156:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,i){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:i},P)}uploadPages(e,t,i){return this.client.sendOperationRequest({contentLength:e,body:t,options:i},_)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},L)}uploadPagesFromURL(e,t,i,a,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:i,range:a,options:o},j)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},H)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},V)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},W)}}t.PageBlobImpl=PageBlobImpl;const h=o.createSerializer(d,true);const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.blobType,m.blobContentLength,m.blobSequenceNumber],isXML:true,serializer:h};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:h};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.pageWrite1],isXML:true,serializer:h};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.sourceUrl,m.sourceRange,m.sourceContentCrc64,m.range1],isXML:true,serializer:h};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:h};const H={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20,m.prevsnapshot],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags,m.prevSnapshotUrl],isXML:true,serializer:h};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.blobContentLength],isXML:true,serializer:h};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobSequenceNumber,m.sequenceNumberAction],isXML:true,serializer:h};const W={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp21],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.copySource],isXML:true,serializer:h}},44181:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const a=i(61860);const o=a.__importStar(i(60160));const d=a.__importStar(i(84424));const m=a.__importStar(i(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},P)}getProperties(e){return this.client.sendOperationRequest({options:e},_)}getStatistics(e){return this.client.sendOperationRequest({options:e},L)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},j)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},H)}submitBatch(e,t,i,a){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:i,options:a},V)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const h=o.createSerializer(d,true);const P={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:m.blobServiceProperties,queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const _={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const L={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[m.restype,m.timeoutInSeconds,m.comp1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const j={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.include],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:m.keyInfo,queryParameters:[m.restype,m.timeoutInSeconds,m.comp3],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const H={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h};const V={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:h};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:h}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=i(61860);a.__exportStar(i(26865),t);a.__exportStar(i(15337),t);a.__exportStar(i(68355),t);a.__exportStar(i(14400),t);a.__exportStar(i(56635),t);a.__exportStar(i(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const a=i(61860);const o=a.__importStar(i(61584));const d=i(37878);class StorageClient extends o.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const i={requestContentType:"application/json; charset=utf-8"};const a=`azsdk-js-azure-storage-blob/12.30.0`;const o=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${a}`:`${a}`;const m={...i,...t,userAgentOptions:{userAgentPrefix:o},endpoint:t.endpoint??t.baseUri??"{url}"};super(m);this.url=e;this.version=t.version||"2026-02-06";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var i;(function(e){e["AES256"]="AES256"})(i||(t.KnownEncryptionAlgorithmType=i={}))},71400:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=t.StorageSharedKeyCredentialPolicy=t.StorageSharedKeyCredential=t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=t.Credential=t.CredentialPolicy=t.BaseRequestPolicy=t.AnonymousCredentialPolicy=t.AnonymousCredential=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const a=i(61860);const o=i(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return o.RestError}});a.__exportStar(i(96341),t);a.__exportStar(i(90372),t);a.__exportStar(i(81884),t);a.__exportStar(i(23276),t);a.__exportStar(i(6358),t);a.__exportStar(i(91267),t);a.__exportStar(i(46940),t);var d=i(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});a.__exportStar(i(95561),t);a.__exportStar(i(12094),t);a.__exportStar(i(48175),t);a.__exportStar(i(2232),t);var m=i(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return m.generateBlobSASQueryParameters}});a.__exportStar(i(51622),t);var h=i(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return h.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return h.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return h.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return h.getBlobServiceAccountAudience}});var P=i(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return P.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return P.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return P.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return P.StorageOAuthScopes}});var _=i(51382);Object.defineProperty(t,"AnonymousCredential",{enumerable:true,get:function(){return _.AnonymousCredential}});Object.defineProperty(t,"AnonymousCredentialPolicy",{enumerable:true,get:function(){return _.AnonymousCredentialPolicy}});Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return _.BaseRequestPolicy}});Object.defineProperty(t,"CredentialPolicy",{enumerable:true,get:function(){return _.CredentialPolicy}});Object.defineProperty(t,"Credential",{enumerable:true,get:function(){return _.Credential}});Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return _.StorageRetryPolicyType}});Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return _.StorageRetryPolicy}});Object.defineProperty(t,"StorageRetryPolicyFactory",{enumerable:true,get:function(){return _.StorageRetryPolicyFactory}});Object.defineProperty(t,"StorageSharedKeyCredential",{enumerable:true,get:function(){return _.StorageSharedKeyCredential}});Object.defineProperty(t,"StorageSharedKeyCredentialPolicy",{enumerable:true,get:function(){return _.StorageSharedKeyCredentialPolicy}});Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return _.StorageBrowserPolicy}});Object.defineProperty(t,"StorageBrowserPolicyFactory",{enumerable:true,get:function(){return _.StorageBrowserPolicyFactory}});a.__exportStar(i(26823),t);a.__exportStar(i(83627),t);var L=i(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return L.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,i={}){const a=await e.read(t,{abortSignal:i.abortSignal});if(a.length!==t){throw new Error("Hit stream end.")}return a}static async readByte(e,t={}){const i=await AvroParser.readFixedBytes(e,1,t);return i[0]}static async readZigZagLong(e,t={}){let i=0;let a=0;let o,d,m;do{o=await AvroParser.readByte(e,t);d=o&128;i|=(o&127)<<a;a+=7}while(d&&a<28);if(d){i=i;m=268435456;do{o=await AvroParser.readByte(e,t);i+=(o&127)*m;m*=128}while(o&128);const a=(i%2?-(i+1):i)/2;if(a<Number.MIN_SAFE_INTEGER||a>Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return i>>1^-(i&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 i=await AvroParser.readByte(e,t);if(i===1){return true}else if(i===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const i=await AvroParser.readFixedBytes(e,4,t);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat32(0,true)}static async readDouble(e,t={}){const i=await AvroParser.readFixedBytes(e,8,t);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat64(0,true)}static async readBytes(e,t={}){const i=await AvroParser.readLong(e,t);if(i<0){throw new Error("Bytes size was negative.")}return e.read(i,{abortSignal:t.abortSignal})}static async readString(e,t={}){const i=await AvroParser.readBytes(e,t);const a=new TextDecoder;return a.decode(i)}static async readMapPair(e,t,i={}){const a=await AvroParser.readString(e,i);const o=await t(e,i);return{key:a,value:o}}static async readMap(e,t,i={}){const readPairMethod=(e,i={})=>AvroParser.readMapPair(e,t,i);const a=await AvroParser.readArray(e,readPairMethod,i);const o={};for(const e of a){o[e.key]=e.value}return o}static async readArray(e,t,i={}){const a=[];for(let o=await AvroParser.readLong(e,i);o!==0;o=await AvroParser.readLong(e,i)){if(o<0){await AvroParser.readLong(e,i);o=-o}while(o--){const o=await t(e,i);a.push(o)}}return a}}t.AvroParser=AvroParser;var i;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(i||(i={}));var a;(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"})(a||(a={}));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 a.NULL:case a.BOOLEAN:case a.INT:case a.LONG:case a.FLOAT:case a.DOUBLE:case a.BYTES:case a.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 i.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 a={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){a[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(a,e.name);case i.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 i.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case i.ARRAY:case i.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case a.NULL:return AvroParser.readNull();case a.BOOLEAN:return AvroParser.readBoolean(e,t);case a.INT:return AvroParser.readInt(e,t);case a.LONG:return AvroParser.readLong(e,t);case a.FLOAT:return AvroParser.readFloat(e,t);case a.DOUBLE:return AvroParser.readDouble(e,t);case a.BYTES:return AvroParser.readBytes(e,t);case a.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 i=await AvroParser.readInt(e,t);return this._symbols[i]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const i=await AvroParser.readInt(e,t);return this._types[i].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 i={};i["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){i[a]=await this._fields[a].read(e,t)}}return i}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const a=i(41675);const o=i(83134);const d=i(20181);const m=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends a.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.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 m}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 i=this._readable.read(e);if(i){this._position+=i.length;return this.toUint8Array(i)}else{return new Promise(((i,a)=>{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();i(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(m)};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)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const a=i(11326);const o=i(35652);const d=i(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,i,a){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=i||0;this._objectIndex=a||0;this._initialBlockOffset=i||0}async initialize(e={}){const t=await o.AvroParser.readFixedBytes(this._headerStream,a.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,a.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await o.AvroParser.readMap(this._headerStream,o.AvroParser.readString,{abortSignal:e.abortSignal});const i=this._metadata[a.AVRO_CODEC_KEY];if(!(i===undefined||i===null||i==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await o.AvroParser.readFixedBytes(this._headerStream,a.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const m=JSON.parse(this._metadata[a.AVRO_SCHEMA_KEY]);this._itemType=o.AvroType.fromSchema(m);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t<this._objectIndex;t++){await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--}}}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}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 o.AvroParser.readFixedBytes(this._dataStream,a.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var a=i(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return a.AvroReader}});var o=i(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return o.AvroReadable}});var d=i(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;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 i=0;i<e.length;++i){if(e[i]!==t[i])return false}return true}},46370:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("storage-blob")},58560:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const a=i(27323);var o;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(o||(t.BlockBlobTier=o={}));var d;(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"})(d||(t.PremiumPageBlobTier=d={}));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=a.EncryptionAlgorithmAES25}}var m;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(m||(t.StorageBlobAudience=m={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},73145:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const a=i(87779);const o=i(91754);class BlobBeginCopyFromUrlPoller extends o.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:i,intervalInMs:a=15e3,onProgress:o,resumeFrom:d,startCopyFromURLOptions:m}=e;let h;if(d){h=JSON.parse(d).state}const P=makeBlobBeginCopyFromURLPollOperation({...h,blobClient:t,copySource:i,startCopyFromURLOptions:m});super(P);if(typeof o==="function"){this.onProgress(o)}this.intervalInMs=a}delay(){return(0,a.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:i}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!i){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(i,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const m=async function update(e={}){const t=this.state;const{blobClient:i,copySource:a,startCopyFromURLOptions:o}=t;if(!t.isStarted){t.isStarted=true;const e=await i.startCopyFromURL(a,o);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const i=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:a,copyProgress:o}=i;const d=t.copyProgress;if(o){t.copyProgress=o}if(a==="pending"&&o!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(a==="success"){t.result=i;t.isCompleted=true}else if(a==="failed"){t.error=new Error(`Blob copy failed with reason: "${i.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const h=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:h,update:m}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const i of e){switch(i){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: ${i}`)}}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("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const a=i(6358);const o=i(91267);const d=i(46940);const m=i(2977);const h=i(26823);const P=i(27323);const _=i(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const i=e.version?e.version:P.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const L=a.AccountSASPermissions.parse(e.permissions.toString());const j=d.AccountSASServices.parse(e.services).toString();const U=o.AccountSASResourceTypes.parse(e.resourceTypes).toString();let H;if(i>="2020-12-06"){H=[t.accountName,L,j,U,e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",(0,_.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",i,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{H=[t.accountName,L,j,U,e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",(0,_.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",i,""].join("\n")}const V=t.computeHMACSHA256(H);return{sasQueryParameters:new h.SASQueryParameters(i,V,L.toString(),j,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:H}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const i of e){switch(i){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${i}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const a=i(2232);const o=i(51622);const d=i(51382);const m=i(2977);const h=i(26823);const P=i(27323);const _=i(47764);const L=i(51382);function generateBlobSASQueryParameters(e,t,i){return generateBlobSASQueryParametersInternal(e,t,i).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,i){const a=e.version?e.version:P.SERVICE_VERSION;const o=t instanceof d.StorageSharedKeyCredential?t:undefined;let m;if(o===undefined&&i!==undefined){m=new L.UserDelegationKeyCredential(i,t)}if(o===undefined&&m===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(o!==undefined){return generateBlobSASQueryParameters20201206(e,o)}else{if(a>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,m)}else{return generateBlobSASQueryParametersUDK20201206(e,m)}}}if(a>="2018-11-09"){if(o!==undefined){return generateBlobSASQueryParameters20181109(e,o)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,m)}else{return generateBlobSASQueryParametersUDK20181109(e,m)}}}if(a>="2015-04-05"){if(o!==undefined){return generateBlobSASQueryParameters20150405(e,o)}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 i="c";if(e.blobName){i="b"}let d;if(e.permissions){if(e.blobName){d=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const P=[d?d:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.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 L=t.computeHMACSHA256(P);return{sasQueryParameters:new h.SASQueryParameters(e.version,L,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:P}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,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 j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:L}}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 i="c";let d=e.snapshotTime;if(e.blobName){i="b";if(e.snapshotTime){i="bs"}else if(e.versionId){i="bv";d=e.versionId}}let P;if(e.permissions){if(e.blobName){P=a.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{P=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const L=[P?P:"",e.startsOn?(0,_.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,_.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,_.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,i,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const j=t.computeHMACSHA256(L);return{sasQueryParameters:new h.SASQueryParameters(e.version,j,P,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:L}}function getCanonicalName(e,t,i){const a=[`/blob/${e}/${t}`];if(i){a.push(`/${i}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:P.SERVICE_VERSION;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}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const i of e){switch(i){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${i}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const a=i(2977);const o=i(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,i,a,o,d,m,h,P,_,L,j,U,H,V,K,W,J,X,Y,Q){this.version=e;this.signature=t;if(i!==undefined&&typeof i!=="string"){this.permissions=i.permissions;this.services=i.services;this.resourceTypes=i.resourceTypes;this.protocol=i.protocol;this.startsOn=i.startsOn;this.expiresOn=i.expiresOn;this.ipRangeInner=i.ipRange;this.identifier=i.identifier;this.delegatedUserObjectId=i.delegatedUserObjectId;this.encryptionScope=i.encryptionScope;this.resource=i.resource;this.cacheControl=i.cacheControl;this.contentDisposition=i.contentDisposition;this.contentEncoding=i.contentEncoding;this.contentLanguage=i.contentLanguage;this.contentType=i.contentType;if(i.userDelegationKey){this.signedOid=i.userDelegationKey.signedObjectId;this.signedTenantId=i.userDelegationKey.signedTenantId;this.signedStartsOn=i.userDelegationKey.signedStartsOn;this.signedExpiresOn=i.userDelegationKey.signedExpiresOn;this.signedService=i.userDelegationKey.signedService;this.signedVersion=i.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=i.preauthorizedAgentObjectId;this.correlationId=i.correlationId}}else{this.services=a;this.resourceTypes=o;this.expiresOn=h;this.permissions=i;this.protocol=d;this.startsOn=m;this.ipRangeInner=P;this.delegatedUserObjectId=Q;this.encryptionScope=Y;this.identifier=_;this.resource=L;this.cacheControl=j;this.contentDisposition=U;this.contentEncoding=H;this.contentLanguage=V;this.contentType=K;if(W){this.signedOid=W.signedObjectId;this.signedTenantId=W.signedTenantId;this.signedStartsOn=W.signedStartsOn;this.signedExpiresOn=W.signedExpiresOn;this.signedService=W.signedService;this.signedVersion=W.signedVersion;this.preauthorizedAgentObjectId=J;this.correlationId=X}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"];const t=[];for(const i of e){switch(i){case"sv":this.tryAppendQueryParameter(t,i,this.version);break;case"ss":this.tryAppendQueryParameter(t,i,this.services);break;case"srt":this.tryAppendQueryParameter(t,i,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,i,this.protocol);break;case"st":this.tryAppendQueryParameter(t,i,this.startsOn?(0,o.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,i,this.expiresOn?(0,o.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,i,this.ipRange?(0,a.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,i,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,i,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,i,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,i,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,i,this.signedStartsOn?(0,o.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,i,this.signedExpiresOn?(0,o.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,i,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,i,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,i,this.resource);break;case"sp":this.tryAppendQueryParameter(t,i,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,i,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,i,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,i,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,i,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,i,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,i,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,i,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,i,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,i,this.delegatedUserObjectId);break}}return t.join("&")}tryAppendQueryParameter(e,t,i){if(!i){return}t=encodeURIComponent(t);i=encodeURIComponent(i);if(t.length>0&&i.length>0){e.push(`${t}=${i}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const a=i(24434);var o;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(o||(o={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=o.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new a.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=o.Error;t(e)}))}))}nextOperation(){if(this.offset<this.operations.length){return this.operations[this.offset++]}return null}parallelExecute(){if(this.state===o.Error){return}if(this.completed>=this.operations.length){this.emitter.emit("finish");return}while(this.actives<this.concurrency){const e=this.nextOperation();if(e){e()}else{return}}}}t.Batch=Batch},36426:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const a=i(57075);const o=i(96147);class BlobQuickQueryStream extends a.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 o.AvroReader(new o.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 i=t.$schema;if(typeof i!=="string"){throw Error("Missing schema in avro record.")}switch(i){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 i=t.name;if(typeof i!=="string"){throw Error("Invalid name in avro error record.")}const a=t.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const o=t.position;if(typeof o!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:o,name:i,isFatal:e,description:a})}break;default:throw Error(`Unknown schema ${i} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var i;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(i||(i={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===i.UNLOCKED){this.keys[e]=i.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=i.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===i.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)}))}}}t.Mutex=Mutex},98684:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const a=i(83134);const o=i(57075);class RetriableReadableStream extends o.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,i,a,o={}){super({highWaterMark:o.highWaterMark});this.getter=t;this.source=e;this.start=i;this.offset=i;this.end=i+a-1;this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0;this.onProgress=o.onProgress;this.options=o;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 a.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.maxRetryRequests){this.retries+=1;this.getter(this.offset).then((e=>{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)}}t.RetriableReadableStream=RetriableReadableStream},27323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.31.0";t.SERVICE_VERSION="2026-02-06";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={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"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["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"];t.StorageBlobLoggingAllowedQueryParameters=["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"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const a=i(20623);const o=i(27323);t.tracingClient=(0,a.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:o.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const a=i(20778);const o=i(87779);const d=i(27323);function escapeURLPath(e){const t=new URL(e);let i=t.pathname;i=i||"/";i=escape(i);t.pathname=i;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const i=e.split(";");for(const e of i){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const i=e.split(";");for(const e of i){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=d.DevelopmentConnectionString}let i=getValueInConnString(e,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let a="";let o="";let d=Buffer.from("accountKey","base64");let m="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!i){a=getValueInConnString(e,"DefaultEndpointsProtocol");const t=a.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${o}.blob.${m}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let a=getValueInConnString(e,"AccountName");if(!a){a=getAccountNameFromUrl(i)}if(!i){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:i,accountName:a,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const i=new URL(e);let a=i.pathname;a=a?a.endsWith("/")?`${a}${t}`:`${a}/${t}`:t;i.pathname=a;return i.toString()}function setURLParameter(e,t,i){const a=new URL(e);const o=encodeURIComponent(t);const d=i?encodeURIComponent(i):undefined;const m=a.search===""?"?":a.search;const h=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){h.push(e)}}}if(d){h.push(`${o}=${d}`)}a.search=h.length?`?${h.join("&")}`:"";return a.toString()}function getURLParameter(e,t){const i=new URL(e);return i.searchParams.get(t)??undefined}function setURLHost(e,t){const i=new URL(e);i.hostname=t;return i.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 i=t.pathname;if(!i){throw new RangeError("Invalid url without valid path.")}let a=t.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${i}${a}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let i=t.split("&");i=i.filter((e=>{const t=e.indexOf("=");const i=e.lastIndexOf("=");return t>0&&t===i&&i<e.length-1}));const a={};for(const e of i){const t=e.split("=");const i=t[0];const o=t[1];a[i]=o}return a}function appendToURLQuery(e,t){const i=new URL(e);let a=i.search;if(a){a+="&"+t}else{a=t}i.search=a;return i.toString()}function truncatedISO8061Date(e,t=true){const i=e.toISOString();return t?i.substring(0,i.length-1)+"0000"+"Z":i.substring(0,i.length-5)+"Z"}function base64encode(e){return!o.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!o.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const i=48;const a=6;const o=i-a;if(e.length>o){e=e.slice(0,o)}const d=e+padStart(t.toString(),i-e.length,"0");return base64encode(d)}async function delay(e,t,i){return new Promise(((a,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(i)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}a()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,i=" "){if(String.prototype.padStart){return e.padStart(t,i)}i=i||" ";if(e.length>t){return e}else{t=t-e.length;if(t>i.length){i+=i.repeat(t/i.length)}return i.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,a.createHttpHeaders)();for(const[i,a]of e){if(i.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(i,"*****")}else if(i.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(i,sanitizeURL(a))}else{t.set(i,a)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let i;try{if(t.hostname.split(".")[1]==="blob"){i=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){i=t.pathname.split("/")[1]}else{i=""}return i}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)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];t.push(`${encodeURIComponent(i)}=${encodeURIComponent(a)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];t.blobTagSet.push({key:i,value:a})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const i of e.blobTagSet){t[i.key]=i.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 i in e){const a=i.split("_");const o="or-";if(a[0].startsWith(o)){a[0]=a[0].substring(o.length)}const d={ruleId:a[1],replicationStatus:e[i]};const m=t.findIndex((e=>e.policyId===a[0]));if(m>-1){t[m].rules.push(d)}else{t.push({policyId:a[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function 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 i=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)i=e.clearRange;let a=0;let o=0;while(a<t.length&&o<i.length){if(t[a].start<i[o].start){yield{start:t[a].start,end:t[a].end,isClear:false};++a}else{yield{start:i[o].start,end:i[o].end,isClear:true};++o}}for(;a<t.length;++a){yield{start:t[a].start,end:t[a].end,isClear:false}}for(;o<i.length;++o){yield{start:i[o].start,end:i[o].end,isClear:true}}}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},53563:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const a=i(61860);const o=a.__importDefault(i(73024));const d=a.__importDefault(i(57975));const m=i(27323);async function streamToBuffer(e,t,i,a,o){let d=0;const h=a-i;return new Promise(((a,P)=>{const _=setTimeout((()=>P(new Error(`The operation cannot be completed in timeout.`))),m.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=h){clearTimeout(_);a();return}let m=e.read();if(!m){return}if(typeof m==="string"){m=Buffer.from(m,o)}const P=d+m.length>h?h-d:m.length;t.fill(m.slice(0,P),i+d,i+d+P);d+=P}));e.on("end",(()=>{clearTimeout(_);if(d<h){P(new Error(`Stream drains before getting enough data needed. Data read: ${d}, data need: ${h}`))}a()}));e.on("error",(e=>{clearTimeout(_);P(e)}))}))}async function streamToBuffer2(e,t,i){let a=0;const o=t.length;return new Promise(((d,m)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,i)}if(a+d.length>o){m(new Error(`Stream exceeds buffer size. Buffer size: ${o}`));return}t.fill(d,a,a+d.length);a+=d.length}));e.on("end",(()=>{d(a)}));e.on("error",m)}))}async function streamToBuffer3(e,t){return new Promise(((i,a)=>{const o=[];e.on("data",(e=>{o.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{i(Buffer.concat(o))}));e.on("error",a)}))}async function readStreamToLocalFile(e,t){return new Promise(((i,a)=>{const d=o.default.createWriteStream(t);e.on("error",(e=>{a(e)}));d.on("error",(e=>{a(e)}));d.on("close",i);e.pipe(d)}))}t.fsStat=d.default.promisify(o.default.stat);t.fsCreateReadStream=o.default.createReadStream},86381:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const a=i(24434);const o=i(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new a.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,i,a,o,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(i<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${i}`)}if(o<=0){throw new RangeError(`concurrency must be larger than 0, current is ${o}`)}this.bufferSize=t;this.maxBuffers=i;this.readable=e;this.outgoingHandler=a;this.concurrency=o;this.encoding=d}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.unresolvedLength<this.bufferSize){const i=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler((()=>i.getReadableStream()),i.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 o.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.maxBuffers){e=this.shiftBufferFromUnresolvedDataArray();this.numBuffers++}else{return false}}this.outgoing.push(e);this.triggerOutgoingHandlers()}return true}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=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()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const a=i(57075);class BuffersStream extends a.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,i){super(i);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let a=0;for(const e of this.buffers){a+=e.byteLength}if(a<this.byteLength){throw new Error("Data size shouldn't be larger than the total length of buffers.")}}_read(e){if(this.pushedBytesLength>=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let i=0;while(i<e&&this.pushedBytesLength<this.byteLength){const a=this.byteLength-this.pushedBytesLength;const o=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer;const d=Math.min(o,a);if(d>e-i){const a=this.byteOffsetInCurrentBuffer+e-i;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=e-i;this.byteOffsetInCurrentBuffer=a;i=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===o){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;i+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const a=i(61860);const o=i(66093);const d=a.__importDefault(i(4573));const m=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,i){this.capacity=e;this._size=0;const a=Math.ceil(e/m);for(let t=0;t<a;t++){let i=t===a-1?e%m:m;if(i===0){i=m}this.buffers.push(Buffer.allocUnsafe(i))}if(t){this.fill(t,i)}}fill(e,t){this._size=Math.min(this.capacity,t);let i=0,a=0,o=0,d=0,m=0;while(m<this._size){const t=e[i];const h=this.buffers[a];const P=t.copy(h,o,d);m+=P;d+=P;o+=P;if(d===t.length){i++;d=0}if(o===h.length){a++;o=0}}e.splice(0,i);if(e.length>0){e[0]=e[0].slice(d)}}getReadableStream(){return new o.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const a=i(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return a.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new a.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.NewRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const a=i(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return a.StorageRetryPolicy}});Object.defineProperty(t,"NewRetryPolicyFactory",{enumerable:true,get:function(){return a.NewRetryPolicyFactory}});const o=i(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new a.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const a=i(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,a.createDefaultHttpClient)()}return o}},32159:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const a=i(63611);const o=i(450);class AnonymousCredential extends o.Credential{create(e,t){return new a.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const a=i(77598);const o=i(35369);const d=i(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,a.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},3602:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const a=i(77598);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,a.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},51382:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const a=i(61860);a.__exportStar(i(86381),t);var o=i(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return o.getCachedDefaultHttpClient}});a.__exportStar(i(81420),t);a.__exportStar(i(4399),t);a.__exportStar(i(32159),t);a.__exportStar(i(450),t);a.__exportStar(i(30849),t);a.__exportStar(i(77321),t);var d=i(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});a.__exportStar(i(63611),t);a.__exportStar(i(74238),t);a.__exportStar(i(83100),t);a.__exportStar(i(92505),t);a.__exportStar(i(78178),t);a.__exportStar(i(35369),t);a.__exportStar(i(53233),t);a.__exportStar(i(24174),t);a.__exportStar(i(3602),t)},81420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},32780:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const a=i(26515);t.logger=(0,a.createClientLogger)("storage-common")},63611:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const a=i(74238);class AnonymousCredentialPolicy extends a.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const a=i(40590);class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;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)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const a=i(40590);const o=i(87779);const d=i(77925);const m=i(58218);class StorageBrowserPolicy extends a.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,m.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const a=i(87779);const o=i(77925);const d=i(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(a.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const a=i(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(a.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},24174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRequestFailureDetailsParserPolicyName=void 0;t.storageRequestFailureDetailsParserPolicy=storageRequestFailureDetailsParserPolicy;t.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:t.storageRequestFailureDetailsParserPolicyName,async sendRequest(e,t){try{const i=await t(e);return i}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}}}}},27734:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const a=i(83134);const o=i(40590);const d=i(77925);const m=i(58218);const h=i(32780);const P=i(38622);function NewRetryPolicyFactory(e){return{create:(t,i)=>new StorageRetryPolicy(t,i,e)}}const _={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:P.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const L=new a.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,i=_){super(e,t);this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:_.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):_.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:_.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:_.maxRetryDelayInMs):_.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:_.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:_.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,i){const a=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;if(!o){a.url=(0,m.setURLHost)(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=(0,m.setURLParameter)(a.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let P;try{h.logger.info(`RetryPolicy: =====> Try=${i} ${o?"Primary":"Secondary"}`);P=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(o,i,P)){return P}t=t||!o&&P.status===404}catch(e){h.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,i,P,e)){throw e}}await this.delay(o,i,e.abortSignal);return this.attemptSendRequest(e,t,++i)}shouldRetry(e,t,i,a){if(t>=this.retryOptions.maxTries){h.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const e of o){if(a.name.toUpperCase().includes(e)||a.message.toUpperCase().includes(e)||a.code&&a.code.toString().toUpperCase()===e){h.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(i||a){const t=i?i.status:a?a.statusCode:0;if(!e&&t===404){h.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){h.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i){if(i?.status>=400){const e=i.headers.get(d.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(a?.code==="PARSE_ERROR"&&a?.message.startsWith(`Error "Error: Unclosed root tag`)){h.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,i){let a=0;if(e){switch(this.retryOptions.retryPolicyType){case P.StorageRetryPolicyType.EXPONENTIAL:a=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case P.StorageRetryPolicyType.FIXED:a=this.retryOptions.retryDelayInMs;break}}else{a=Math.random()*1e3}h.logger.info(`RetryPolicy: Delay for ${a}ms`);return(0,m.delay)(a,i,L)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var i;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(i||(t.StorageRetryPolicyType=i={}))},78178:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const a=i(83134);const o=i(20778);const d=i(87779);const m=i(77321);const h=i(77925);const P=i(58218);const _=i(32780);t.storageRetryPolicyName="storageRetryPolicy";const L={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:m.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const j=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new a.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const i=e.retryPolicyType??L.retryPolicyType;const a=e.maxTries??L.maxTries;const H=e.retryDelayInMs??L.retryDelayInMs;const V=e.maxRetryDelayInMs??L.maxRetryDelayInMs;const K=e.secondaryHost??L.secondaryHost;const W=e.tryTimeoutInMs??L.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:i,error:o}){if(t>=a){_.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${a}, no further try.`);return false}if(o){for(const e of j){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){_.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){_.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(i||o){const t=i?.status??o?.statusCode??0;if(!e&&t===404){_.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){_.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i){if(i?.status>=400){const e=i.headers.get(h.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,t){let a=0;if(e){switch(i){case m.StorageRetryPolicyType.EXPONENTIAL:a=Math.min((Math.pow(2,t-1)-1)*H,V);break;case m.StorageRetryPolicyType.FIXED:a=H;break}}else{a=Math.random()*1e3}_.logger.info(`RetryPolicy: Delay for ${a}ms`);return a}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(W){e.url=(0,P.setURLParameter)(e.url,h.URLConstants.Parameters.TIMEOUT,String(Math.floor(W/1e3)))}const i=e.url;const a=K?(0,P.setURLHost)(e.url,K):undefined;let m=false;let L=1;let j=true;let H;let V;while(j){const h=m||!a||!["GET","HEAD","OPTIONS"].includes(e.method)||L%2===1;e.url=h?i:a;H=undefined;V=undefined;try{_.logger.info(`RetryPolicy: =====> Try=${L} ${h?"Primary":"Secondary"}`);H=await t(e);m=m||!h&&H.status===404}catch(e){if((0,o.isRestError)(e)){_.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);V=e}else{_.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}j=shouldRetry({isPrimaryRetry:h,attempt:L,response:H,error:V});if(j){await(0,P.delay)(calculateDelay(h,L),e.abortSignal,U)}L++}if(H){return H}throw V??new o.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const a=i(77925);const o=i(58218);const d=i(74238);const m=i(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,i){super(e,t);this.factory=i}signRequest(e){e.headers.set(a.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(a.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,a.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,a.HeaderConstants.DATE),this.getHeaderValueToSign(e,a.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,a.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,a.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,a.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,a.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const i=this.factory.computeHMACSHA256(t);e.headers.set(a.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`);return e}getHeaderValueToSign(e,t){const i=e.headers.get(t);if(!i){return""}if(t===a.HeaderConstants.CONTENT_LENGTH&&i==="0"){return""}return i}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(a.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,i)=>{if(t>0&&e.name.toLowerCase()===i[t-1].name.toLowerCase()){return false}return true}));let i="";t.forEach((e=>{i+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return i}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let i="";i+=`/${this.factory.accountName}${t}`;const a=(0,o.getURLQueries)(e.url);const d={};if(a){const e=[];for(const t in a){if(Object.prototype.hasOwnProperty.call(a,t)){const i=t.toLowerCase();d[i]=a[t];e.push(i)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(d[t])}`}}return i}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const a=i(77598);const o=i(77925);const d=i(58218);const m=i(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const i=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,a.createHmac)("sha256",e.accountKey).update(i,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const i=e.headers.get(t);if(!i){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&i==="0"){return""}return i}function getCanonicalizedHeadersString(e){let t=[];for(const[i,a]of e.headers){if(i.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:i,value:a})}}t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,i)=>{if(t>0&&e.name.toLowerCase()===i[t-1].name.toLowerCase()){return false}return true}));let i="";t.forEach((e=>{i+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return i}function getCanonicalizedResourceString(t){const i=(0,d.getURLPath)(t.url)||"/";let a="";a+=`/${e.accountName}${i}`;const o=(0,d.getURLQueries)(t.url);const m={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const i=t.toLowerCase();m[i]=o[t];e.push(i)}}e.sort();for(const t of e){a+=`\n${t}:${decodeURIComponent(m[t])}`}}return a}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const i=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const a=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);const o=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[i,a,o];let m=0;let h=0;let P=0;while(m<d.length){if(m===d.length-1&&h!==P){return h>P}const i=h<e.length?d[m][e[h].charCodeAt(0)]:1;const a=P<t.length?d[m][t[P].charCodeAt(0)]:1;if(i===1&&a===1){h=0;P=0;++m}else if(i===a){++h;++P}else if(i===0){++h}else if(a===0){++P}else{return i<a}}return false}},77925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={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"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const a=i(20778);const o=i(87779);const d=i(77925);function escapeURLPath(e){const t=new URL(e);let i=t.pathname;i=i||"/";i=escape(i);t.pathname=i;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const i=e.split(";");for(const e of i){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const i=e.split(";");for(const e of i){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=d.DevelopmentConnectionString}let i=getValueInConnString(e,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let a="";let o="";let d=Buffer.from("accountKey","base64");let m="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!i){a=getValueInConnString(e,"DefaultEndpointsProtocol");const t=a.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${o}.blob.${m}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let a=getValueInConnString(e,"AccountName");if(!a){a=getAccountNameFromUrl(i)}if(!i){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:i,accountName:a,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const i=new URL(e);let a=i.pathname;a=a?a.endsWith("/")?`${a}${t}`:`${a}/${t}`:t;i.pathname=a;return i.toString()}function setURLParameter(e,t,i){const a=new URL(e);const o=encodeURIComponent(t);const d=i?encodeURIComponent(i):undefined;const m=a.search===""?"?":a.search;const h=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){h.push(e)}}}if(d){h.push(`${o}=${d}`)}a.search=h.length?`?${h.join("&")}`:"";return a.toString()}function getURLParameter(e,t){const i=new URL(e);return i.searchParams.get(t)??undefined}function setURLHost(e,t){const i=new URL(e);i.hostname=t;return i.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 i=t.pathname;if(!i){throw new RangeError("Invalid url without valid path.")}let a=t.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${i}${a}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let i=t.split("&");i=i.filter((e=>{const t=e.indexOf("=");const i=e.lastIndexOf("=");return t>0&&t===i&&i<e.length-1}));const a={};for(const e of i){const t=e.split("=");const i=t[0];const o=t[1];a[i]=o}return a}function appendToURLQuery(e,t){const i=new URL(e);let a=i.search;if(a){a+="&"+t}else{a=t}i.search=a;return i.toString()}function truncatedISO8061Date(e,t=true){const i=e.toISOString();return t?i.substring(0,i.length-1)+"0000"+"Z":i.substring(0,i.length-5)+"Z"}function base64encode(e){return!o.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!o.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const i=48;const a=6;const o=i-a;if(e.length>o){e=e.slice(0,o)}const d=e+padStart(t.toString(),i-e.length,"0");return base64encode(d)}async function delay(e,t,i){return new Promise(((a,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(i)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}a()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,i=" "){if(String.prototype.padStart){return e.padStart(t,i)}i=i||" ";if(e.length>t){return e}else{t=t-e.length;if(t>i.length){i+=i.repeat(t/i.length)}return i.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,a.createHttpHeaders)();for(const[i,a]of e){if(i.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(i,"*****")}else if(i.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(i,sanitizeURL(a))}else{t.set(i,a)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let i;try{if(t.hostname.split(".")[1]==="blob"){i=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){i=t.pathname.split("/")[1]}else{i=""}return i}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)&&d.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;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},40406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},95331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var i=1e3;var a=1e6;var o=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function durationToMilliseconds(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function addDurations(e,t){var i=+e.seconds+ +t.seconds;var a=e.nanos+t.nanos;if(a>=o){i+=1;a-=o}return{seconds:i,nanos:a}}function toSecondsAndNanos(e){var t=Math.floor(e/i);var o=Math.floor(e%i*a);return{seconds:t,nanos:o}}function toMillis(e,t){var o=+e*i;var d=t/a;return o+d}},76954:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var a=i(50238);var o=i(95331);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:a.TestStepResultStatus.UNKNOWN,duration:(0,o.millisecondsToDuration)(0)}}function ordinal(e){return[a.TestStepResultStatus.UNKNOWN,a.TestStepResultStatus.PASSED,a.TestStepResultStatus.SKIPPED,a.TestStepResultStatus.PENDING,a.TestStepResultStatus.UNDEFINED,a.TestStepResultStatus.AMBIGUOUS,a.TestStepResultStatus.FAILED].indexOf(e)}},96088:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))a(t,e,i)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var h=d(i(95331));t.TimeConversion=h;var P=d(i(40406));t.IdGenerator=P;var _=i(19071);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return _.parseEnvelope}});var L=i(76954);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return L.getWorstTestStepResult}});var j=i(17028);Object.defineProperty(t,"version",{enumerable:true,get:function(){return j.version}});m(i(50238),t)},50238:function(e,t,i){"use strict";var a=this&&this.__decorate||function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.ExternalAttachment=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=t.TestCaseStarted=void 0;var o=i(40451);i(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=He.IDENTITY;this.mediaType=""}a([(0,o.Type)((function(){return ve}))],Attachment.prototype,"source",void 0);a([(0,o.Type)((function(){return qe}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var h=function(){function Envelope(){}a([(0,o.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);a([(0,o.Type)((function(){return _}))],Envelope.prototype,"externalAttachment",void 0);a([(0,o.Type)((function(){return L}))],Envelope.prototype,"gherkinDocument",void 0);a([(0,o.Type)((function(){return re}))],Envelope.prototype,"hook",void 0);a([(0,o.Type)((function(){return ae}))],Envelope.prototype,"meta",void 0);a([(0,o.Type)((function(){return le}))],Envelope.prototype,"parameterType",void 0);a([(0,o.Type)((function(){return ue}))],Envelope.prototype,"parseError",void 0);a([(0,o.Type)((function(){return de}))],Envelope.prototype,"pickle",void 0);a([(0,o.Type)((function(){return Te}))],Envelope.prototype,"suggestion",void 0);a([(0,o.Type)((function(){return ve}))],Envelope.prototype,"source",void 0);a([(0,o.Type)((function(){return we}))],Envelope.prototype,"stepDefinition",void 0);a([(0,o.Type)((function(){return Re}))],Envelope.prototype,"testCase",void 0);a([(0,o.Type)((function(){return ke}))],Envelope.prototype,"testCaseFinished",void 0);a([(0,o.Type)((function(){return Ie}))],Envelope.prototype,"testCaseStarted",void 0);a([(0,o.Type)((function(){return De}))],Envelope.prototype,"testRunFinished",void 0);a([(0,o.Type)((function(){return Me}))],Envelope.prototype,"testRunStarted",void 0);a([(0,o.Type)((function(){return $e}))],Envelope.prototype,"testStepFinished",void 0);a([(0,o.Type)((function(){return Ue}))],Envelope.prototype,"testStepStarted",void 0);a([(0,o.Type)((function(){return Le}))],Envelope.prototype,"testRunHookStarted",void 0);a([(0,o.Type)((function(){return Be}))],Envelope.prototype,"testRunHookFinished",void 0);a([(0,o.Type)((function(){return ze}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=h;var P=function(){function Exception(){this.type=""}return Exception}();t.Exception=P;var _=function(){function ExternalAttachment(){this.url="";this.mediaType=""}a([(0,o.Type)((function(){return qe}))],ExternalAttachment.prototype,"timestamp",void 0);return ExternalAttachment}();t.ExternalAttachment=_;var L=function(){function GherkinDocument(){this.comments=[]}a([(0,o.Type)((function(){return W}))],GherkinDocument.prototype,"feature",void 0);a([(0,o.Type)((function(){return U}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=L;var j=function(){function Background(){this.location=new ie;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Background.prototype,"location",void 0);a([(0,o.Type)((function(){return Z}))],Background.prototype,"steps",void 0);return Background}();t.Background=j;var U=function(){function Comment(){this.location=new ie;this.text=""}a([(0,o.Type)((function(){return ie}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=U;var H=function(){function DataTable(){this.location=new ie;this.rows=[]}a([(0,o.Type)((function(){return ie}))],DataTable.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=H;var V=function(){function DocString(){this.location=new ie;this.content="";this.delimiter=""}a([(0,o.Type)((function(){return ie}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=V;var K=function(){function Examples(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Examples.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Examples.prototype,"tags",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tableHeader",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=K;var W=function(){function Feature(){this.location=new ie;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}a([(0,o.Type)((function(){return ie}))],Feature.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Feature.prototype,"tags",void 0);a([(0,o.Type)((function(){return J}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=W;var J=function(){function FeatureChild(){}a([(0,o.Type)((function(){return X}))],FeatureChild.prototype,"rule",void 0);a([(0,o.Type)((function(){return j}))],FeatureChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Q}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=J;var X=function(){function Rule(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Rule.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Rule.prototype,"tags",void 0);a([(0,o.Type)((function(){return Y}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=X;var Y=function(){function RuleChild(){}a([(0,o.Type)((function(){return j}))],RuleChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Q}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=Y;var Q=function(){function Scenario(){this.location=new ie;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}a([(0,o.Type)((function(){return ie}))],Scenario.prototype,"location",void 0);a([(0,o.Type)((function(){return ne}))],Scenario.prototype,"tags",void 0);a([(0,o.Type)((function(){return Z}))],Scenario.prototype,"steps",void 0);a([(0,o.Type)((function(){return K}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Q;var Z=function(){function Step(){this.location=new ie;this.keyword="";this.text="";this.id=""}a([(0,o.Type)((function(){return ie}))],Step.prototype,"location",void 0);a([(0,o.Type)((function(){return V}))],Step.prototype,"docString",void 0);a([(0,o.Type)((function(){return H}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=Z;var ee=function(){function TableCell(){this.location=new ie;this.value=""}a([(0,o.Type)((function(){return ie}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=ee;var te=function(){function TableRow(){this.location=new ie;this.cells=[];this.id=""}a([(0,o.Type)((function(){return ie}))],TableRow.prototype,"location",void 0);a([(0,o.Type)((function(){return ee}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=te;var ne=function(){function Tag(){this.location=new ie;this.name="";this.id=""}a([(0,o.Type)((function(){return ie}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=ne;var re=function(){function Hook(){this.id="";this.sourceReference=new Se}a([(0,o.Type)((function(){return Se}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=re;var ie=function(){function Location(){this.line=0}return Location}();t.Location=ie;var ae=function(){function Meta(){this.protocolVersion="";this.implementation=new ce;this.runtime=new ce;this.os=new ce;this.cpu=new ce}a([(0,o.Type)((function(){return ce}))],Meta.prototype,"implementation",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"runtime",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"os",void 0);a([(0,o.Type)((function(){return ce}))],Meta.prototype,"cpu",void 0);a([(0,o.Type)((function(){return oe}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=ae;var oe=function(){function Ci(){this.name=""}a([(0,o.Type)((function(){return se}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=oe;var se=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=se;var ce=function(){function Product(){this.name=""}return Product}();t.Product=ce;var le=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}a([(0,o.Type)((function(){return Se}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=le;var ue=function(){function ParseError(){this.source=new Se;this.message=""}a([(0,o.Type)((function(){return Se}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=ue;var de=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}a([(0,o.Type)((function(){return ie}))],Pickle.prototype,"location",void 0);a([(0,o.Type)((function(){return me}))],Pickle.prototype,"steps",void 0);a([(0,o.Type)((function(){return be}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=de;var pe=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=pe;var me=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}a([(0,o.Type)((function(){return fe}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=me;var fe=function(){function PickleStepArgument(){}a([(0,o.Type)((function(){return pe}))],PickleStepArgument.prototype,"docString",void 0);a([(0,o.Type)((function(){return he}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=fe;var he=function(){function PickleTable(){this.rows=[]}a([(0,o.Type)((function(){return ye}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=he;var ge=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=ge;var ye=function(){function PickleTableRow(){this.cells=[]}a([(0,o.Type)((function(){return ge}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=ye;var be=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=be;var ve=function(){function Source(){this.uri="";this.data="";this.mediaType=Ve.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=ve;var Se=function(){function SourceReference(){}a([(0,o.Type)((function(){return Ce}))],SourceReference.prototype,"javaMethod",void 0);a([(0,o.Type)((function(){return Ee}))],SourceReference.prototype,"javaStackTraceElement",void 0);a([(0,o.Type)((function(){return ie}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=Se;var Ce=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Ce;var Ee=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ee;var we=function(){function StepDefinition(){this.id="";this.pattern=new xe;this.sourceReference=new Se}a([(0,o.Type)((function(){return xe}))],StepDefinition.prototype,"pattern",void 0);a([(0,o.Type)((function(){return Se}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=we;var xe=function(){function StepDefinitionPattern(){this.source="";this.type=Ke.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=xe;var Te=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}a([(0,o.Type)((function(){return Pe}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=Te;var Pe=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=Pe;var Re=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}a([(0,o.Type)((function(){return Ae}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Re;var _e=function(){function Group(){}a([(0,o.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=_e;var Oe=function(){function StepMatchArgument(){this.group=new _e}a([(0,o.Type)((function(){return _e}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=Oe;var Ne=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}a([(0,o.Type)((function(){return Oe}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Ne;var Ae=function(){function TestStep(){this.id=""}a([(0,o.Type)((function(){return Ne}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=Ae;var ke=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new qe;this.willBeRetried=false}a([(0,o.Type)((function(){return qe}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=ke;var Ie=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=Ie;var De=function(){function TestRunFinished(){this.success=false;this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunFinished.prototype,"timestamp",void 0);a([(0,o.Type)((function(){return P}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=De;var Be=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new je;this.timestamp=new qe}a([(0,o.Type)((function(){return je}))],TestRunHookFinished.prototype,"result",void 0);a([(0,o.Type)((function(){return qe}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=Be;var Le=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=Le;var Me=function(){function TestRunStarted(){this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=Me;var $e=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new je;this.timestamp=new qe}a([(0,o.Type)((function(){return je}))],TestStepFinished.prototype,"testStepResult",void 0);a([(0,o.Type)((function(){return qe}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=$e;var je=function(){function TestStepResult(){this.duration=new m;this.status=Je.UNKNOWN}a([(0,o.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);a([(0,o.Type)((function(){return P}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=je;var Ue=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new qe}a([(0,o.Type)((function(){return qe}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=Ue;var qe=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=qe;var ze=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=ze;var He;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(He||(t.AttachmentContentEncoding=He={}));var Fe;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(Fe||(t.HookType=Fe={}));var Ge;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(Ge||(t.PickleStepType=Ge={}));var Ve;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Ve||(t.SourceMediaType=Ve={}));var Ke;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ke||(t.StepDefinitionPatternType=Ke={}));var We;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(We||(t.StepKeywordType=We={}));var Je;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(Je||(t.TestStepResultStatus=Je={}))},19071:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var a=i(50238);var o=i(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,o.plainToClass)(a.Envelope,t)}},17028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="32.2.0"},38091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},48024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var i=1e3;var a=1e6;var o=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function durationToMilliseconds(e){var t=e.seconds,i=e.nanos;return toMillis(t,i)}function addDurations(e,t){var i=+e.seconds+ +t.seconds;var a=e.nanos+t.nanos;if(a>=o){i+=1;a-=o}return{seconds:i,nanos:a}}function toSecondsAndNanos(e){var t=Math.floor(e/i);var o=Math.floor(e%i*a);return{seconds:t,nanos:o}}function toMillis(e,t){var o=+e*i;var d=t/a;return o+d}},36809:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var a=i(36849);var o=i(48024);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:a.TestStepResultStatus.UNKNOWN,duration:(0,o.millisecondsToDuration)(0)}}function ordinal(e){return[a.TestStepResultStatus.UNKNOWN,a.TestStepResultStatus.PASSED,a.TestStepResultStatus.SKIPPED,a.TestStepResultStatus.PENDING,a.TestStepResultStatus.UNDEFINED,a.TestStepResultStatus.AMBIGUOUS,a.TestStepResultStatus.FAILED].indexOf(e)}},28569:function(e,t,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){if(a===undefined)a=i;var o=Object.getOwnPropertyDescriptor(t,i);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[i]}}}Object.defineProperty(e,a,o)}:function(e,t,i,a){if(a===undefined)a=i;e[a]=t[i]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[t.length]=i;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i=ownKeys(e),d=0;d<i.length;d++)if(i[d]!=="default")a(t,e,i[d]);o(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var i in e)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))a(t,e,i)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var h=d(i(48024));t.TimeConversion=h;var P=d(i(38091));t.IdGenerator=P;var _=i(49782);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return _.parseEnvelope}});var L=i(36809);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return L.getWorstTestStepResult}});var j=i(32505);Object.defineProperty(t,"version",{enumerable:true,get:function(){return j.version}});m(i(36849),t)},36849:function(e,t,i){"use strict";var a=this&&this.__decorate||function(e,t,i,a){var o=arguments.length,d=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,i,a);else for(var h=e.length-1;h>=0;h--)if(m=e[h])d=(o<3?m(d):o>3?m(t,i,d):m(t,i))||d;return o>3&&d&&Object.defineProperty(t,i,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseStarted=t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=void 0;var o=i(40451);i(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=ze.IDENTITY;this.mediaType=""}a([(0,o.Type)((function(){return be}))],Attachment.prototype,"source",void 0);a([(0,o.Type)((function(){return Ue}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var h=function(){function Envelope(){}a([(0,o.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);a([(0,o.Type)((function(){return _}))],Envelope.prototype,"gherkinDocument",void 0);a([(0,o.Type)((function(){return ne}))],Envelope.prototype,"hook",void 0);a([(0,o.Type)((function(){return ie}))],Envelope.prototype,"meta",void 0);a([(0,o.Type)((function(){return ce}))],Envelope.prototype,"parameterType",void 0);a([(0,o.Type)((function(){return le}))],Envelope.prototype,"parseError",void 0);a([(0,o.Type)((function(){return ue}))],Envelope.prototype,"pickle",void 0);a([(0,o.Type)((function(){return xe}))],Envelope.prototype,"suggestion",void 0);a([(0,o.Type)((function(){return be}))],Envelope.prototype,"source",void 0);a([(0,o.Type)((function(){return Ee}))],Envelope.prototype,"stepDefinition",void 0);a([(0,o.Type)((function(){return Pe}))],Envelope.prototype,"testCase",void 0);a([(0,o.Type)((function(){return Ae}))],Envelope.prototype,"testCaseFinished",void 0);a([(0,o.Type)((function(){return ke}))],Envelope.prototype,"testCaseStarted",void 0);a([(0,o.Type)((function(){return Ie}))],Envelope.prototype,"testRunFinished",void 0);a([(0,o.Type)((function(){return Le}))],Envelope.prototype,"testRunStarted",void 0);a([(0,o.Type)((function(){return Me}))],Envelope.prototype,"testStepFinished",void 0);a([(0,o.Type)((function(){return je}))],Envelope.prototype,"testStepStarted",void 0);a([(0,o.Type)((function(){return Be}))],Envelope.prototype,"testRunHookStarted",void 0);a([(0,o.Type)((function(){return De}))],Envelope.prototype,"testRunHookFinished",void 0);a([(0,o.Type)((function(){return qe}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=h;var P=function(){function Exception(){this.type=""}return Exception}();t.Exception=P;var _=function(){function GherkinDocument(){this.comments=[]}a([(0,o.Type)((function(){return K}))],GherkinDocument.prototype,"feature",void 0);a([(0,o.Type)((function(){return j}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=_;var L=function(){function Background(){this.location=new re;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}a([(0,o.Type)((function(){return re}))],Background.prototype,"location",void 0);a([(0,o.Type)((function(){return Q}))],Background.prototype,"steps",void 0);return Background}();t.Background=L;var j=function(){function Comment(){this.location=new re;this.text=""}a([(0,o.Type)((function(){return re}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=j;var U=function(){function DataTable(){this.location=new re;this.rows=[]}a([(0,o.Type)((function(){return re}))],DataTable.prototype,"location",void 0);a([(0,o.Type)((function(){return ee}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=U;var H=function(){function DocString(){this.location=new re;this.content="";this.delimiter=""}a([(0,o.Type)((function(){return re}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=H;var V=function(){function Examples(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}a([(0,o.Type)((function(){return re}))],Examples.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Examples.prototype,"tags",void 0);a([(0,o.Type)((function(){return ee}))],Examples.prototype,"tableHeader",void 0);a([(0,o.Type)((function(){return ee}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=V;var K=function(){function Feature(){this.location=new re;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}a([(0,o.Type)((function(){return re}))],Feature.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Feature.prototype,"tags",void 0);a([(0,o.Type)((function(){return W}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=K;var W=function(){function FeatureChild(){}a([(0,o.Type)((function(){return J}))],FeatureChild.prototype,"rule",void 0);a([(0,o.Type)((function(){return L}))],FeatureChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Y}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=W;var J=function(){function Rule(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}a([(0,o.Type)((function(){return re}))],Rule.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Rule.prototype,"tags",void 0);a([(0,o.Type)((function(){return X}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=J;var X=function(){function RuleChild(){}a([(0,o.Type)((function(){return L}))],RuleChild.prototype,"background",void 0);a([(0,o.Type)((function(){return Y}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=X;var Y=function(){function Scenario(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}a([(0,o.Type)((function(){return re}))],Scenario.prototype,"location",void 0);a([(0,o.Type)((function(){return te}))],Scenario.prototype,"tags",void 0);a([(0,o.Type)((function(){return Q}))],Scenario.prototype,"steps",void 0);a([(0,o.Type)((function(){return V}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Y;var Q=function(){function Step(){this.location=new re;this.keyword="";this.text="";this.id=""}a([(0,o.Type)((function(){return re}))],Step.prototype,"location",void 0);a([(0,o.Type)((function(){return H}))],Step.prototype,"docString",void 0);a([(0,o.Type)((function(){return U}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=Q;var Z=function(){function TableCell(){this.location=new re;this.value=""}a([(0,o.Type)((function(){return re}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=Z;var ee=function(){function TableRow(){this.location=new re;this.cells=[];this.id=""}a([(0,o.Type)((function(){return re}))],TableRow.prototype,"location",void 0);a([(0,o.Type)((function(){return Z}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=ee;var te=function(){function Tag(){this.location=new re;this.name="";this.id=""}a([(0,o.Type)((function(){return re}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=te;var ne=function(){function Hook(){this.id="";this.sourceReference=new ve}a([(0,o.Type)((function(){return ve}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=ne;var re=function(){function Location(){this.line=0}return Location}();t.Location=re;var ie=function(){function Meta(){this.protocolVersion="";this.implementation=new se;this.runtime=new se;this.os=new se;this.cpu=new se}a([(0,o.Type)((function(){return se}))],Meta.prototype,"implementation",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"runtime",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"os",void 0);a([(0,o.Type)((function(){return se}))],Meta.prototype,"cpu",void 0);a([(0,o.Type)((function(){return ae}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=ie;var ae=function(){function Ci(){this.name=""}a([(0,o.Type)((function(){return oe}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=ae;var oe=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=oe;var se=function(){function Product(){this.name=""}return Product}();t.Product=se;var ce=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}a([(0,o.Type)((function(){return ve}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=ce;var le=function(){function ParseError(){this.source=new ve;this.message=""}a([(0,o.Type)((function(){return ve}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=le;var ue=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}a([(0,o.Type)((function(){return pe}))],Pickle.prototype,"steps",void 0);a([(0,o.Type)((function(){return ye}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=ue;var de=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=de;var pe=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}a([(0,o.Type)((function(){return me}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=pe;var me=function(){function PickleStepArgument(){}a([(0,o.Type)((function(){return de}))],PickleStepArgument.prototype,"docString",void 0);a([(0,o.Type)((function(){return fe}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=me;var fe=function(){function PickleTable(){this.rows=[]}a([(0,o.Type)((function(){return ge}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=fe;var he=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=he;var ge=function(){function PickleTableRow(){this.cells=[]}a([(0,o.Type)((function(){return he}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=ge;var ye=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=ye;var be=function(){function Source(){this.uri="";this.data="";this.mediaType=Ge.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=be;var ve=function(){function SourceReference(){}a([(0,o.Type)((function(){return Se}))],SourceReference.prototype,"javaMethod",void 0);a([(0,o.Type)((function(){return Ce}))],SourceReference.prototype,"javaStackTraceElement",void 0);a([(0,o.Type)((function(){return re}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=ve;var Se=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Se;var Ce=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ce;var Ee=function(){function StepDefinition(){this.id="";this.pattern=new we;this.sourceReference=new ve}a([(0,o.Type)((function(){return we}))],StepDefinition.prototype,"pattern",void 0);a([(0,o.Type)((function(){return ve}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=Ee;var we=function(){function StepDefinitionPattern(){this.source="";this.type=Ve.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=we;var xe=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}a([(0,o.Type)((function(){return Te}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=xe;var Te=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=Te;var Pe=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}a([(0,o.Type)((function(){return Ne}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Pe;var Re=function(){function Group(){this.children=[]}a([(0,o.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=Re;var _e=function(){function StepMatchArgument(){this.group=new Re}a([(0,o.Type)((function(){return Re}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=_e;var Oe=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}a([(0,o.Type)((function(){return _e}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Oe;var Ne=function(){function TestStep(){this.id=""}a([(0,o.Type)((function(){return Oe}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=Ne;var Ae=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new Ue;this.willBeRetried=false}a([(0,o.Type)((function(){return Ue}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=Ae;var ke=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=ke;var Ie=function(){function TestRunFinished(){this.success=false;this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunFinished.prototype,"timestamp",void 0);a([(0,o.Type)((function(){return P}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=Ie;var De=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new $e;this.timestamp=new Ue}a([(0,o.Type)((function(){return $e}))],TestRunHookFinished.prototype,"result",void 0);a([(0,o.Type)((function(){return Ue}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=De;var Be=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=Be;var Le=function(){function TestRunStarted(){this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=Le;var Me=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new $e;this.timestamp=new Ue}a([(0,o.Type)((function(){return $e}))],TestStepFinished.prototype,"testStepResult",void 0);a([(0,o.Type)((function(){return Ue}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=Me;var $e=function(){function TestStepResult(){this.duration=new m;this.status=We.UNKNOWN}a([(0,o.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);a([(0,o.Type)((function(){return P}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=$e;var je=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new Ue}a([(0,o.Type)((function(){return Ue}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=je;var Ue=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=Ue;var qe=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=qe;var ze;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(ze||(t.AttachmentContentEncoding=ze={}));var He;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(He||(t.HookType=He={}));var Fe;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(Fe||(t.PickleStepType=Fe={}));var Ge;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Ge||(t.SourceMediaType=Ge={}));var Ve;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ve||(t.StepDefinitionPatternType=Ve={}));var Ke;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(Ke||(t.StepKeywordType=Ke={}));var We;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(We||(t.TestStepResultStatus=We={}))},49782:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var a=i(36849);var o=i(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,o.plainToClass)(a.Envelope,t)}},32505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="30.1.0"},76637:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AclRoleAccessorMethods=t.Acl=void 0;const a=i(60206);class AclRoleAccessorMethods{constructor(){this.owners={};this.readers={};this.writers={};this.owners={};this.readers={};this.writers={};AclRoleAccessorMethods.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(e){const t=AclRoleAccessorMethods.accessMethods;const i=AclRoleAccessorMethods.entities;const a=e.toLowerCase()+"s";this[a]=i.reduce(((i,a)=>{const o=a.charAt(a.length-1)==="-";t.forEach((t=>{let d=t+a[0].toUpperCase()+a.substring(1);if(o){d=d.replace("-","")}i[d]=(i,d,m)=>{let h;if(typeof d==="function"){m=d;d={}}if(o){h=a+i}else{h=a;m=i}d=Object.assign({entity:h,role:e},d);const P=[d];if(typeof m==="function"){P.push(m)}return this[t].apply(this,P)}}));return i}),{})}}t.AclRoleAccessorMethods=AclRoleAccessorMethods;AclRoleAccessorMethods.accessMethods=["add","delete"];AclRoleAccessorMethods.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];AclRoleAccessorMethods.roles=["OWNER","READER","WRITER"];class Acl extends AclRoleAccessorMethods{constructor(e){super();this.pathPrefix=e.pathPrefix;this.request_=e.request}add(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"POST",uri:"",qs:i,maxRetries:0,json:{entity:e.entity,role:e.role.toUpperCase()}},((e,i)=>{if(e){t(e,null,i);return}t(null,this.makeAclObject_(i),i)}))}delete(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"DELETE",uri:"/"+encodeURIComponent(e.entity),qs:i},((e,i)=>{t(e,i)}))}get(e,t){const i=typeof e==="object"?e:null;const a=typeof e==="function"?e:t;let o="";const d={};if(i){o="/"+encodeURIComponent(i.entity);if(i.generation){d.generation=i.generation}if(i.userProject){d.userProject=i.userProject}}this.request({uri:o,qs:d},((e,t)=>{if(e){a(e,null,t);return}let i;if(t.items){i=t.items.map(this.makeAclObject_)}else{i=this.makeAclObject_(t)}a(null,i,t)}))}update(e,t){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"PUT",uri:"/"+encodeURIComponent(e.entity),qs:i,json:{role:e.role.toUpperCase()}},((e,i)=>{if(e){t(e,null,i);return}t(null,this.makeAclObject_(i),i)}))}makeAclObject_(e){const t={entity:e.entity,role:e.role};if(e.projectTeam){t.projectTeam=e.projectTeam}return t}request(e,t){e.uri=this.pathPrefix+e.uri;this.request_(e,t)}}t.Acl=Acl;
|
|
109
109
|
/*! Developer Documentation
|
|
110
110
|
*
|
|
111
111
|
* All async methods (except for streams) will return a Promise in the event
|